Skip to content

Conversation

schveiguy
Copy link
Contributor

Please review, trying to access some undeclared prototypes. I'm not sure if I did this right.

C headers are defined here:

/*
* A callback for logging out TLS key material. This callback should log out
* |line| followed by a newline.
*/
typedef void (*SSL_CTX_keylog_cb_func)(const SSL *ssl, const char *line);
/*
* SSL_CTX_set_keylog_callback configures a callback to log key material. This
* is intended for debugging use with tools like Wireshark. The cb function
* should log line followed by a newline.
*/
void SSL_CTX_set_keylog_callback(SSL_CTX *ctx, SSL_CTX_keylog_cb_func cb);
/*
* SSL_CTX_get_keylog_callback returns the callback configured by
* SSL_CTX_set_keylog_callback.
*/
SSL_CTX_keylog_cb_func SSL_CTX_get_keylog_callback(const SSL_CTX *ctx);

@schveiguy
Copy link
Contributor Author

ping @Geod24

@schveiguy schveiguy force-pushed the add-keylog-callback branch from 1a9a46e to 913e759 Compare August 8, 2025 04:00
@Geod24
Copy link
Collaborator

Geod24 commented Aug 8, 2025

Looks right

@Geod24 Geod24 merged commit fb3565f into D-Programming-Deimos:master Aug 8, 2025
12 checks passed
@schveiguy schveiguy deleted the add-keylog-callback branch August 8, 2025 13:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants