Make checksEKU optional to fall back on decoding

This commit is contained in:
Davide De Rosa 2019-02-23 11:57:58 +01:00
parent 010da904fa
commit d6076b045a
2 changed files with 3 additions and 3 deletions

View File

@ -466,7 +466,7 @@ extension TunnelKitProvider {
} else {
log.info("\tClient verification: disabled")
}
if sessionConfiguration.checksEKU {
if sessionConfiguration.checksEKU ?? false {
log.info("\tServer EKU verification: enabled")
} else {
log.info("\tServer EKU verification: disabled")

View File

@ -151,7 +151,7 @@ extension SessionProxy {
public var clientKey: CryptoContainer?
/// If true, checks EKU of server certificate.
public var checksEKU: Bool
public var checksEKU: Bool?
/// Sets compression framing, disabled by default.
public var compressionFraming: CompressionFraming
@ -229,7 +229,7 @@ extension SessionProxy {
public let clientKey: CryptoContainer?
/// - Seealso: `SessionProxy.ConfigurationBuilder.checksEKU`
public let checksEKU: Bool
public let checksEKU: Bool?
/// - Seealso: `SessionProxy.ConfigurationBuilder.compressionFraming`
public let compressionFraming: CompressionFraming