22//
33// This source file is part of the AsyncHTTPClient open source project
44//
5- // Copyright (c) 2018- 2020 Apple Inc. and the AsyncHTTPClient project authors
5+ // Copyright (c) 2020 Apple Inc. and the AsyncHTTPClient project authors
66// Licensed under Apache License v2.0
77//
88// See LICENSE.txt for license information
@@ -94,16 +94,17 @@ internal extension TLSConfiguration {
9494
9595 // cipher suites
9696 if self . cipherSuites. count > 0 {
97- //preconditionFailure("TLSConfiguration.cipherSuites is not supported")
97+ // TODO: Requires NIOSSL to provide list of cipher values before we can continue
98+ // https://github.com/apple/swift-nio-ssl/issues/207
9899 }
99100
100101 // key log callback
101- if let _ = self . keyLogCallback {
102+ if self . keyLogCallback != nil {
102103 preconditionFailure ( " TLSConfiguration.keyLogCallback is not supported " )
103104 }
104105
105106 // private key
106- if let _ = self . privateKey {
107+ if self . privateKey != nil {
107108 preconditionFailure ( " TLSConfiguration.privateKey is not supported " )
108109 }
109110
@@ -120,9 +121,6 @@ internal extension TLSConfiguration {
120121 case . none:
121122 // add verify block to control certificate verification
122123 sec_protocol_options_set_verify_block ( options. securityProtocolOptions, { ( sec_protocol_metadata, sec_trust, sec_protocol_verify_complete) in
123- //let trust = sec_trust_copy_ref(sec_trust).takeRetainedValue()
124- //var error: CFError?
125- //if SecTrustEvaluateWithError(trust, &error) {
126124 sec_protocol_verify_complete ( true )
127125 } , TLSConfiguration . tlsDispatchQueue)
128126
0 commit comments