Lines Matching refs:trust
1533 SecTrustRef trust = NULL; local
1592 ret = SSLCopyPeerTrust(ctx, &trust);
1593 if(!trust) {
1603 ret = SecTrustSetAnchorCertificates(trust, array);
1608 ret = SecTrustSetAnchorCertificatesOnly(trust, TRUE);
1615 ret = SecTrustEvaluate(trust, &trust_eval);
1644 if(trust)
1645 CFRelease(trust);
1706 SecTrustRef trust; local
1710 ret = SSLCopyPeerTrust(ctx, &trust);
1711 if(ret != noErr || !trust)
1714 keyRef = SecTrustCopyPublicKey(trust);
1715 CFRelease(trust);
2184 SecTrustRef trust = NULL; local
2197 err = SSLCopyPeerTrust(backend->ssl_ctx, &trust);
2200 if(err == noErr && trust) {
2201 count = SecTrustGetCertificateCount(trust);
2205 server_cert = SecTrustGetCertificateAtIndex(trust, i);
2208 CFRelease(trust);
2219 err = SSLCopyPeerTrust(backend->ssl_ctx, &trust);
2222 if(err == noErr && trust) {
2223 count = SecTrustGetCertificateCount(trust);
2227 server_cert = SecTrustGetCertificateAtIndex(trust, i);
2230 CFRelease(trust);
2252 #pragma unused(trust)