Configure a callback that logs TLS key material for debugging (e.g. Wireshark).
Declared in <openssl/ssl.h>
void
SSL_CTX_set_keylog_callback(
SSL_CTX* ctx,
SSL_CTX_keylog_cb_func cb);
| Name | Description |
|---|---|
| ctx | SSL context whose connections invoke cb when keys are generated or received. |
| cb | Callback that should write line followed by a newline, or NULL to disable logging. |