Lines Matching refs:peer_certs
319 StackOfX509 peer_certs(sk_X509_new(nullptr)); in CloneSSLCerts() local
320 if (!peer_certs) return StackOfX509(); in CloneSSLCerts()
321 if (cert && !sk_X509_push(peer_certs.get(), cert.release())) in CloneSSLCerts()
325 if (!cert || !sk_X509_push(peer_certs.get(), cert.get())) in CloneSSLCerts()
330 return peer_certs; in CloneSSLCerts()
336 StackOfX509&& peer_certs, in AddIssuerChainToObject() argument
339 cert->reset(sk_X509_delete(peer_certs.get(), 0)); in AddIssuerChainToObject()
342 for (i = 0; i < sk_X509_num(peer_certs.get()); i++) { in AddIssuerChainToObject()
343 X509* ca = sk_X509_value(peer_certs.get(), i); in AddIssuerChainToObject()
358 cert->reset(sk_X509_delete(peer_certs.get(), i)); in AddIssuerChainToObject()
363 if (i == sk_X509_num(peer_certs.get())) in AddIssuerChainToObject()
1213 StackOfX509 peer_certs = CloneSSLCerts(std::move(cert), ssl_certs); in GetPeerCert() local
1214 if (peer_certs == nullptr) in GetPeerCert()
1218 X509Pointer first_cert(sk_X509_value(peer_certs.get(), 0)); in GetPeerCert()
1231 std::move(peer_certs), in GetPeerCert()