From 21d242ba6ae0560fa4477c04e377dc9b41c362ae Mon Sep 17 00:00:00 2001 From: Derek Clarkson Date: Mon, 25 Jul 2016 13:41:26 +1000 Subject: [PATCH] Making publicKeyChainForTrust() private. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit To Fixing issue when attempting to build for a objective-c project. Exposed API won’t compile so hiding internal method. --- Source/SSLSecurity.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/SSLSecurity.swift b/Source/SSLSecurity.swift index 968e4eb..b3257e4 100644 --- a/Source/SSLSecurity.swift +++ b/Source/SSLSecurity.swift @@ -241,7 +241,7 @@ public class SSLSecurity : NSObject { - returns: the public keys from the certifcate chain for the trust */ - func publicKeyChainForTrust(trust: SecTrustRef) -> [SecKeyRef] { + private func publicKeyChainForTrust(trust: SecTrustRef) -> [SecKeyRef] { let policy = SecPolicyCreateBasicX509() let keys = (0.. [SecKeyRef] in var keys = keys