Skip to content

Commit 04011a0

Browse files
committed
Merge branch 'development'
* development: fix objective-c
2 parents 0849a75 + 8ba3518 commit 04011a0

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: [Data]? //the certificates
58-
var pubKeys: [SecKey]? //the public keys
58+
@nonobjc var pubKeys: [SecKey]? //the public keys
5959
var usePublicKeys = false //use public keys or certificate validation?
6060

6161
/**
@@ -239,7 +239,7 @@ public class SSLSecurity : NSObject {
239239

240240
- returns: the public keys from the certifcate chain for the trust
241241
*/
242-
func publicKeyChain(_ trust: SecTrust) -> [SecKey] {
242+
@nonobjc func publicKeyChain(_ trust: SecTrust) -> [SecKey] {
243243
let policy = SecPolicyCreateBasicX509()
244244
let keys = (0..<SecTrustGetCertificateCount(trust)).reduce([SecKey]()) { (keys: [SecKey], index: Int) -> [SecKey] in
245245
var keys = keys

0 commit comments

Comments
 (0)