LIBRESSL-SSL_CTX_SET_KEYLOG_CALLBACK(3)
π SSL_CTX_SET_KEYLOG_CALLB(3) π
okay bestie so this one's from the Library Functions Manual and honestly? it's a little bit of a comedy bit. strap in π
β¨ NAME β¨
SSL_CTX_set_keylog_callback, SSL_CTX_get_keylog_callback β they set and get the TLS key logging callback π β¦which, and I cannot stress this enough, is unused. like, the callback exists, the setter exists, the getter exists, and the callback never gets called. it's giving decorative. it's giving aesthetic. π₯
πΈ SYNOPSIS πΈ
library βlibsslβ libcrypto
#include <openssl/ssl.h>
typedef void
(*SSL_CTX_keylog_cb_func)(const SSL *ssl, const char *line);
void
SSL_CTX_set_keylog_callback(SSL_CTX *ctx, SSL_CTX_keylog_cb_func cb);
SSL_CTX_keylog_cb_func
SSL_CTX_get_keylog_callback(const SSL_CTX *ctx);
π¦ DESCRIPTION π¦
so SSL_CTX_set_keylog_callback() sets the TLS key logging callback. and then β plot twist β this callback is never called in LibreSSL π that's the whole vibe. you set it, it sits there, it's a callback that never rings. main character energy but the show got cancelled.
SSL_CTX_get_keylog_callback() retrieves the previously set TLS key logging callback. so like, at least you can look at it. retrieval is real, execution is not π
both of these functions are provided only for compatibility with OpenSSL. that's it, that's the whole reason they exist, no cap π«Ά
π RETURN VALUES π
SSL_CTX_get_keylog_callback() returns the previously set TLS key logging callback, or NULL if no callback has been set. lowkey the most action this page gets β¨
π SEE ALSO π
π HISTORY π
these functions first appeared in OpenSSL 1.1.1 and have been available since OpenBSD 7.1. iconic lineage honestly π§
ngl bestie, this is the manpage equivalent of a callback that never gets called back π set it, get it, but don't expect a text back.
mwah π this lil page is from Debian, dated September 1, 2026, and lives under SSL_CTX_SET_KEYLOG_CALLBACK(3) β or SSL_CTX_SET_KEYLOG_CALLB(3) if you go by the top of the page, which, yes, is a whole different spelling, and no, we're not going to talk about it ππ
π¦ where this page comes from
- arch rolling: libressl 4.4.0-1 Β· ISC AND custom:OpenSSL
- Copyright (c) 2021 Bob Beck <beck@openbsd.org>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms