From 2332347ca13b472fe3d7746d89da91ee265e9e20 Mon Sep 17 00:00:00 2001 From: effbiae Date: Thu, 11 Sep 2025 11:54:40 +1000 Subject: [PATCH] refactor SessionSecret_callback* --- src/internal.c | 198 ++++++++++++++++++++----------------------------- 1 file changed, 82 insertions(+), 116 deletions(-) diff --git a/src/internal.c b/src/internal.c index b7fb88256..4608839eb 100644 --- a/src/internal.c +++ b/src/internal.c @@ -315,6 +315,82 @@ void wolfssl_priv_der_unblind(DerBuffer* key, DerBuffer* mask) const unsigned char* secret, int secretSz, void* ctx); #endif + /* + * This function builds up string for key-logging then call user's + * key-log-callback to pass the string. + * The user's key-logging callback has been set via + * wolfSSL_CTX_set_keylog_callback function. The logging string format is: + * "