]> git.saurik.com Git - apple/security.git/blobdiff - OSX/sec/Security/SecServerEncryptionSupport.c
Security-59754.80.3.tar.gz
[apple/security.git] / OSX / sec / Security / SecServerEncryptionSupport.c
index 507a181b8f9e3f1a4fae96afd1c2e1e840d341cb..e43f0f6b7756dd0828fe7fbb51245b220dab60d1 100644 (file)
@@ -327,11 +327,7 @@ CFDataRef SecCopyDecryptedForServer(SecKeyRef serverFullKey, CFDataRef blob, CFE
 CFDataRef SecCopyEncryptedToServer(SecTrustRef trustedEvaluation, CFDataRef dataToEncrypt, CFErrorRef *error)
 {
     CFDataRef result = NULL;
-#if TARGET_OS_OSX
-    SecKeyRef trustKey = SecTrustCopyPublicKey_ios(trustedEvaluation);
-#else
-    SecKeyRef trustKey = SecTrustCopyPublicKey(trustedEvaluation);
-#endif
+    SecKeyRef trustKey = SecTrustCopyKey(trustedEvaluation);
 
     require_action_quiet(trustKey, fail,
                          SecError(errSecInteractionNotAllowed, error, CFSTR("Failed to get key out of trust ref, was it evaluated?")));