Making publicKeyChainForTrust() private.

To Fixing issue when attempting to build for a objective-c project. Exposed API won’t compile so hiding internal method.
This commit is contained in:
Derek Clarkson 2016-07-25 13:41:26 +10:00
parent 10d24c47ec
commit 21d242ba6a

View File

@ -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..<SecTrustGetCertificateCount(trust)).reduce([SecKeyRef]()) { (keys: [SecKeyRef], index: Int) -> [SecKeyRef] in
var keys = keys