| 152 | } |
| 153 | |
| 154 | static int |
| 155 | ssl_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 | |
| 169 | static int |
| 170 | ssl_new_session_callback(SSL *ssl, SSL_SESSION *sess) |
nothing calls this directly
no test coverage detected