File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ public class SSLSecurity : NSObject {
55
55
56
56
var isReady = false //is the key processing done?
57
57
var certificates : [ Data ] ? //the certificates
58
- var pubKeys : [ SecKey ] ? //the public keys
58
+ @ nonobjc var pubKeys : [ SecKey ] ? //the public keys
59
59
var usePublicKeys = false //use public keys or certificate validation?
60
60
61
61
/**
@@ -239,7 +239,7 @@ public class SSLSecurity : NSObject {
239
239
240
240
- returns: the public keys from the certifcate chain for the trust
241
241
*/
242
- func publicKeyChain( _ trust: SecTrust ) -> [ SecKey ] {
242
+ @ nonobjc func publicKeyChain( _ trust: SecTrust ) -> [ SecKey ] {
243
243
let policy = SecPolicyCreateBasicX509 ( )
244
244
let keys = ( 0 ..< SecTrustGetCertificateCount ( trust) ) . reduce ( [ SecKey] ( ) ) { ( keys: [ SecKey ] , index: Int ) -> [ SecKey ] in
245
245
var keys = keys
You can’t perform that action at this time.
0 commit comments