Skip to content

Commit 21d242b

Browse files
committed
Making publicKeyChainForTrust() private.
To Fixing issue when attempting to build for a objective-c project. Exposed API won’t compile so hiding internal method.
1 parent 10d24c4 commit 21d242b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/SSLSecurity.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ public class SSLSecurity : NSObject {
241241

242242
- returns: the public keys from the certifcate chain for the trust
243243
*/
244-
func publicKeyChainForTrust(trust: SecTrustRef) -> [SecKeyRef] {
244+
private 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)