Searched refs:ssl_certs (Results 1 – 2 of 2) sorted by relevance
157 STACK_OF(X509)* ssl_certs = SSL_get_peer_cert_chain(ssl.get()); in GetPeerCert()158 if (!cert && (ssl_certs == nullptr || sk_X509_num(ssl_certs) == 0)) in GetPeerCert()164 cert.reset(sk_X509_value(ssl_certs, 0)); in GetPeerCert()165 sk_X509_delete(ssl_certs, 0); in GetPeerCert()168 return sk_X509_num(ssl_certs) in GetPeerCert()169 ? New(env, std::move(cert), ssl_certs) in GetPeerCert()
318 const STACK_OF(X509)* const ssl_certs) { in CloneSSLCerts() argument323 for (int i = 0; i < sk_X509_num(ssl_certs); i++) { in CloneSSLCerts()324 X509Pointer cert(X509_dup(sk_X509_value(ssl_certs, i))); in CloneSSLCerts()1202 STACK_OF(X509)* ssl_certs = SSL_get_peer_cert_chain(ssl.get()); in GetPeerCert()1203 if (!cert && (ssl_certs == nullptr || sk_X509_num(ssl_certs) == 0)) in GetPeerCert()1209 X509ToObject(env, cert ? cert.get() : sk_X509_value(ssl_certs, 0)); in GetPeerCert()1213 StackOfX509 peer_certs = CloneSSLCerts(std::move(cert), ssl_certs); in GetPeerCert()