SSL_CTX_set_client_cert_cb

Install a callback that supplies a client certificate during handshake.

Synopsis

Declared in <openssl/ssl.h>

void
SSL_CTX_set_client_cert_cb(
    SSL_CTX* ctx,
    int(* client_cert_cb)(SSL*, X509**, EVP_PKEY**));

Parameters

NameDescription
ctxSSL context whose connections inherit client_cert_cb.
client_cert_cbCallback that sets *x509 and *pkey, or NULL to clear.