Skip to content

Commit a9aa28a

Browse files
committed
make nonobjc
1 parent 99adb49 commit a9aa28a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Source/SSLSecurity.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public class SSLSecurity : NSObject {
5555

5656
var isReady = false //is the key processing done?
5757
var certificates: [NSData]? //the certificates
58-
private var pubKeys: [SecKeyRef]? //the public keys
58+
@nonobjc var pubKeys: [SecKeyRef]? //the public keys
5959
var usePublicKeys = false //use public keys or certificate validation?
6060

6161
/**
@@ -241,7 +241,7 @@ public class SSLSecurity : NSObject {
241241

242242
- returns: the public keys from the certifcate chain for the trust
243243
*/
244-
private func publicKeyChainForTrust(trust: SecTrustRef) -> [SecKeyRef] {
244+
@nonobjc func publicKeyChainForTrust(trust: SecTrustRef) -> [SecKeyRef] {
245245
let policy = SecPolicyCreateBasicX509()
246246
let keys = (0..<SecTrustGetCertificateCount(trust)).reduce([SecKeyRef]()) { (keys: [SecKeyRef], index: Int) -> [SecKeyRef] in
247247
var keys = keys

0 commit comments

Comments
 (0)