make nonobjc

This commit is contained in:
Erik Little 2016-07-27 11:50:44 -04:00
parent 99adb49736
commit a9aa28ae77
No known key found for this signature in database
GPG Key ID: 62F837E56F4E9320

View File

@ -55,7 +55,7 @@ public class SSLSecurity : NSObject {
var isReady = false //is the key processing done? var isReady = false //is the key processing done?
var certificates: [NSData]? //the certificates var certificates: [NSData]? //the certificates
private var pubKeys: [SecKeyRef]? //the public keys @nonobjc var pubKeys: [SecKeyRef]? //the public keys
var usePublicKeys = false //use public keys or certificate validation? var usePublicKeys = false //use public keys or certificate validation?
/** /**
@ -241,7 +241,7 @@ public class SSLSecurity : NSObject {
- returns: the public keys from the certifcate chain for the trust - returns: the public keys from the certifcate chain for the trust
*/ */
private func publicKeyChainForTrust(trust: SecTrustRef) -> [SecKeyRef] { @nonobjc func publicKeyChainForTrust(trust: SecTrustRef) -> [SecKeyRef] {
let policy = SecPolicyCreateBasicX509() let policy = SecPolicyCreateBasicX509()
let keys = (0..<SecTrustGetCertificateCount(trust)).reduce([SecKeyRef]()) { (keys: [SecKeyRef], index: Int) -> [SecKeyRef] in let keys = (0..<SecTrustGetCertificateCount(trust)).reduce([SecKeyRef]()) { (keys: [SecKeyRef], index: Int) -> [SecKeyRef] in
var keys = keys var keys = keys