X-Git-Url: https://git.saurik.com/apple/security.git/blobdiff_plain/fa7225c82381bac4432a6edf16f53b5370238d85..84aacf34eae6543be9f0280b2015385f91e5c2c6:/OSX/libsecurity_ssl/lib/sslCrypto.c diff --git a/OSX/libsecurity_ssl/lib/sslCrypto.c b/OSX/libsecurity_ssl/lib/sslCrypto.c index 1142c7f9..60362e4a 100644 --- a/OSX/libsecurity_ssl/lib/sslCrypto.c +++ b/OSX/libsecurity_ssl/lib/sslCrypto.c @@ -53,11 +53,7 @@ */ CFIndex sslPubKeyGetAlgorithmID(SecKeyRef pubKey) { -#if TARGET_OS_IPHONE - return SecKeyGetAlgorithmID(pubKey); -#else return SecKeyGetAlgorithmId(pubKey); -#endif } /* @@ -65,11 +61,7 @@ CFIndex sslPubKeyGetAlgorithmID(SecKeyRef pubKey) */ CFIndex sslPrivKeyGetAlgorithmID(SecKeyRef privKey) { -#if TARGET_OS_IPHONE - return SecKeyGetAlgorithmID(privKey); -#else return SecKeyGetAlgorithmId(privKey); -#endif } @@ -118,21 +110,14 @@ sslGetMatchingCertInArray( return NULL; } - CFDataRef certData = SecCertificateCopyData(certRef); - if (certData) { - CFIndex idx, count = CFArrayGetCount(certArray); - for(idx=0; idxallowAnyRoot) {