Install a certificate-selection callback invoked during handshake certificate setup.
Declared in <openssl/ssl.h>
void
SSL_CTX_set_cert_cb(
SSL_CTX* c,
int(* cb)(SSL*, void*),
void* arg);
| Name | Description |
|---|---|
| c | SSL_CTX that owns the callback. |
| cb | Callback that should install certs/keys on ssl and return 1 on success, 0 to defer, or <0 on error. |
| arg | Opaque pointer passed to cb. |