diff --git a/lib/vtls/sectransp.c b/lib/vtls/sectransp.c index 2e57d83785..f0f457a5ac 100644 --- a/lib/vtls/sectransp.c +++ b/lib/vtls/sectransp.c @@ -2964,7 +2964,7 @@ collect_server_cert(struct Curl_easy *data, private API and doesn't work as expected. So we have to look for a different symbol to make sure this code is only executed under Lion or later. */ - if(SecTrustEvaluateAsync) { + if(SecTrustCopyPublicKey) { #pragma unused(server_certs) err = SSLCopyPeerTrust(backend->ssl_ctx, &trust); /* For some reason, SSLCopyPeerTrust() can return noErr and yet return