@@ -93,7 +93,7 @@ public struct GRPCTLSConfiguration {
93
93
94
94
#if canImport(Network)
95
95
case var . network( config) :
96
- if #available( macOS 10 . 14 , iOS 12 . 0 , watchOS 5 . 0 , tvOS 12 . 0 , * ) {
96
+ if #available( macOS 10 . 14 , iOS 12 . 0 , watchOS 6 . 0 , tvOS 12 . 0 , * ) {
97
97
if let hostnameOverride = newValue {
98
98
config. updateHostnameOverride ( to: hostnameOverride)
99
99
} else {
@@ -403,7 +403,7 @@ extension GRPCTLSConfiguration {
403
403
#if canImport(Network)
404
404
extension GRPCTLSConfiguration {
405
405
internal struct NetworkConfiguration {
406
- @available ( macOS 10 . 14 , iOS 12 . 0 , watchOS 5 . 0 , tvOS 12 . 0 , * )
406
+ @available ( macOS 10 . 14 , iOS 12 . 0 , watchOS 6 . 0 , tvOS 12 . 0 , * )
407
407
internal var options : NWProtocolTLS . Options {
408
408
get {
409
409
return self . _options as! NWProtocolTLS . Options
@@ -424,13 +424,13 @@ extension GRPCTLSConfiguration {
424
424
// guards to update the value in the underlying `sec_protocol_options`.
425
425
internal private( set) var hostnameOverride : String ?
426
426
427
- @available ( macOS 10 . 14 , iOS 12 . 0 , watchOS 5 . 0 , tvOS 12 . 0 , * )
427
+ @available ( macOS 10 . 14 , iOS 12 . 0 , watchOS 6 . 0 , tvOS 12 . 0 , * )
428
428
init ( options: NWProtocolTLS . Options , hostnameOverride: String ? ) {
429
429
self . _options = options
430
430
self . hostnameOverride = hostnameOverride
431
431
}
432
432
433
- @available ( macOS 10 . 14 , iOS 12 . 0 , watchOS 5 . 0 , tvOS 12 . 0 , * )
433
+ @available ( macOS 10 . 14 , iOS 12 . 0 , watchOS 6 . 0 , tvOS 12 . 0 , * )
434
434
internal mutating func updateHostnameOverride( to hostnameOverride: String ) {
435
435
self . hostnameOverride = hostnameOverride
436
436
sec_protocol_options_set_tls_server_name (
@@ -440,7 +440,7 @@ extension GRPCTLSConfiguration {
440
440
}
441
441
}
442
442
443
- @available ( macOS 10 . 14 , iOS 12 . 0 , watchOS 5 . 0 , tvOS 12 . 0 , * )
443
+ @available ( macOS 10 . 14 , iOS 12 . 0 , watchOS 6 . 0 , tvOS 12 . 0 , * )
444
444
public static func makeClientConfigurationBackedByNetworkFramework(
445
445
identity: SecIdentity ? = nil ,
446
446
hostnameOverride: String ? = nil ,
@@ -489,7 +489,7 @@ extension GRPCTLSConfiguration {
489
489
)
490
490
}
491
491
492
- @available ( macOS 10 . 14 , iOS 12 . 0 , watchOS 5 . 0 , tvOS 12 . 0 , * )
492
+ @available ( macOS 10 . 14 , iOS 12 . 0 , watchOS 6 . 0 , tvOS 12 . 0 , * )
493
493
public static func makeClientConfigurationBackedByNetworkFramework(
494
494
options: NWProtocolTLS . Options ,
495
495
hostnameOverride: String ? = nil
@@ -498,7 +498,7 @@ extension GRPCTLSConfiguration {
498
498
return GRPCTLSConfiguration ( backend: . network( network) )
499
499
}
500
500
501
- @available ( macOS 10 . 14 , iOS 12 . 0 , watchOS 5 . 0 , tvOS 12 . 0 , * )
501
+ @available ( macOS 10 . 14 , iOS 12 . 0 , watchOS 6 . 0 , tvOS 12 . 0 , * )
502
502
public static func makeServerConfigurationBackedByNetworkFramework(
503
503
identity: SecIdentity
504
504
) -> GRPCTLSConfiguration {
@@ -525,15 +525,15 @@ extension GRPCTLSConfiguration {
525
525
return GRPCTLSConfiguration . makeServerConfigurationBackedByNetworkFramework ( options: options)
526
526
}
527
527
528
- @available ( macOS 10 . 14 , iOS 12 . 0 , watchOS 5 . 0 , tvOS 12 . 0 , * )
528
+ @available ( macOS 10 . 14 , iOS 12 . 0 , watchOS 6 . 0 , tvOS 12 . 0 , * )
529
529
public static func makeServerConfigurationBackedByNetworkFramework(
530
530
options: NWProtocolTLS . Options
531
531
) -> GRPCTLSConfiguration {
532
532
let network = NetworkConfiguration ( options: options, hostnameOverride: nil )
533
533
return GRPCTLSConfiguration ( backend: . network( network) )
534
534
}
535
535
536
- @available ( macOS 10 . 14 , iOS 12 . 0 , watchOS 5 . 0 , tvOS 12 . 0 , * )
536
+ @available ( macOS 10 . 14 , iOS 12 . 0 , watchOS 6 . 0 , tvOS 12 . 0 , * )
537
537
internal mutating func updateNetworkLocalIdentity( to identity: SecIdentity ) {
538
538
self . modifyingNetworkConfiguration {
539
539
sec_protocol_options_set_local_identity (
@@ -543,7 +543,7 @@ extension GRPCTLSConfiguration {
543
543
}
544
544
}
545
545
546
- @available ( macOS 10 . 14 , iOS 12 . 0 , watchOS 5 . 0 , tvOS 12 . 0 , * )
546
+ @available ( macOS 10 . 14 , iOS 12 . 0 , watchOS 6 . 0 , tvOS 12 . 0 , * )
547
547
internal mutating func updateNetworkVerifyCallbackWithQueue(
548
548
callback: @escaping sec_protocol_verify_t ,
549
549
queue: DispatchQueue
@@ -573,7 +573,7 @@ extension GRPCTLSConfiguration {
573
573
574
574
#if canImport(Network)
575
575
extension GRPCTLSConfiguration {
576
- @available ( macOS 10 . 14 , iOS 12 . 0 , watchOS 5 . 0 , tvOS 12 . 0 , * )
576
+ @available ( macOS 10 . 14 , iOS 12 . 0 , watchOS 6 . 0 , tvOS 12 . 0 , * )
577
577
internal func applyNetworkTLSOptions(
578
578
to bootstrap: NIOTSConnectionBootstrap
579
579
) -> NIOTSConnectionBootstrap {
@@ -588,7 +588,7 @@ extension GRPCTLSConfiguration {
588
588
}
589
589
}
590
590
591
- @available ( macOS 10 . 14 , iOS 12 . 0 , watchOS 5 . 0 , tvOS 12 . 0 , * )
591
+ @available ( macOS 10 . 14 , iOS 12 . 0 , watchOS 6 . 0 , tvOS 12 . 0 , * )
592
592
internal func applyNetworkTLSOptions(
593
593
to bootstrap: NIOTSListenerBootstrap
594
594
) -> NIOTSListenerBootstrap {
@@ -604,7 +604,7 @@ extension GRPCTLSConfiguration {
604
604
}
605
605
}
606
606
607
- @available ( macOS 10 . 14 , iOS 12 . 0 , watchOS 5 . 0 , tvOS 12 . 0 , * )
607
+ @available ( macOS 10 . 14 , iOS 12 . 0 , watchOS 6 . 0 , tvOS 12 . 0 , * )
608
608
extension NIOTSConnectionBootstrap {
609
609
internal func tlsOptions(
610
610
from configuration: GRPCTLSConfiguration
@@ -613,7 +613,7 @@ extension NIOTSConnectionBootstrap {
613
613
}
614
614
}
615
615
616
- @available ( macOS 10 . 14 , iOS 12 . 0 , watchOS 5 . 0 , tvOS 12 . 0 , * )
616
+ @available ( macOS 10 . 14 , iOS 12 . 0 , watchOS 6 . 0 , tvOS 12 . 0 , * )
617
617
extension NIOTSListenerBootstrap {
618
618
internal func tlsOptions(
619
619
from configuration: GRPCTLSConfiguration
0 commit comments