MCPcopy Create free account
hub / github.com/apache/trafficserver / ssl_client_cert_callback

Function ssl_client_cert_callback

src/iocore/net/SSLClientUtils.cc:154–167  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152}
153
154static int
155ssl_client_cert_callback(SSL *ssl, void * /*arg*/)
156{
157 SSLNetVConnection *netvc = SSLNetVCAccess(ssl);
158 SSL_CTX *ctx = SSL_get_SSL_CTX(ssl);
159 if (ctx) {
160 // Do not need to free either the cert or the ssl_ctx
161 // both are internal pointers
162 X509 *cert = SSL_CTX_get0_certificate(ctx);
163 netvc->set_sent_cert(cert != nullptr ? 2 : 1);
164 Dbg(dbg_ctl_ssl_verify, "sent cert: %d", cert != nullptr ? 2 : 1);
165 }
166 return 1;
167}
168
169static int
170ssl_new_session_callback(SSL *ssl, SSL_SESSION *sess)

Callers

nothing calls this directly

Calls 2

SSLNetVCAccessFunction · 0.85
set_sent_certMethod · 0.80

Tested by

no test coverage detected