Lines Matching defs:trust
2247 SecTrustRef trust = NULL;
2306 ret = SSLCopyPeerTrust(ctx, &trust);
2307 if(!trust) {
2316 CURL_TRC_CF(data, cf, "setting %d trust anchors", n);
2317 ret = SecTrustSetAnchorCertificates(trust, array);
2322 ret = SecTrustSetAnchorCertificatesOnly(trust, true);
2329 ret = SecTrustEvaluate(trust, &trust_eval);
2338 CURL_TRC_CF(data, cf, "trust result: Unspecified");
2342 CURL_TRC_CF(data, cf, "trust result: Proceed");
2358 if(trust)
2359 CFRelease(trust);
2420 SecTrustRef trust;
2424 ret = SSLCopyPeerTrust(ctx, &trust);
2425 if(ret != noErr || !trust)
2428 keyRef = SecTrustCopyPublicKey(trust);
2429 CFRelease(trust);
2903 SecTrustRef trust = NULL;
2916 err = SSLCopyPeerTrust(backend->ssl_ctx, &trust);
2918 a null trust, so be on guard for that: */
2919 if(err == noErr && trust) {
2920 count = SecTrustGetCertificateCount(trust);
2924 server_cert = SecTrustGetCertificateAtIndex(trust, i);
2927 CFRelease(trust);
2938 err = SSLCopyPeerTrust(backend->ssl_ctx, &trust);
2940 a null trust, so be on guard for that: */
2941 if(err == noErr && trust) {
2942 count = SecTrustGetCertificateCount(trust);
2946 server_cert = SecTrustGetCertificateAtIndex(trust, i);
2949 CFRelease(trust);
2971 #pragma unused(trust)