diff options
author | Daiki Ueno <dueno@redhat.com> | 2020-02-02 08:13:50 +0100 |
---|---|---|
committer | Daiki Ueno <dueno@redhat.com> | 2020-02-07 18:03:45 +0100 |
commit | 9711755641cd9b6de323676abeab6cc80ea13e4b (patch) | |
tree | 95b303ea614c67994905ee5e18d4c9d2bcd0bcbe /lib/gnutls_int.h | |
parent | ee43a212b6bde870bf0800329972f3cab24715ec (diff) | |
download | gnutls-tmp-keylog-hook.tar.gz |
keylogfile: generalize with a callbacktmp-keylog-hook
This refactors the keylogfile mechanism by adding a callback to get
notified when a new secret is derived and installed. That way,
consumers can implement custom logging feature per session, which is
particularly useful in QUIC implementation.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Diffstat (limited to 'lib/gnutls_int.h')
-rw-r--r-- | lib/gnutls_int.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/gnutls_int.h b/lib/gnutls_int.h index b48805190a..cd2adc103d 100644 --- a/lib/gnutls_int.h +++ b/lib/gnutls_int.h @@ -1243,6 +1243,8 @@ typedef struct { unsigned int h_type; /* the hooked type */ int16_t h_post; /* whether post-generation/receive */ + gnutls_handshake_secret_func secret_func; + /* holds the selected certificate and key. * use _gnutls_selected_certs_deinit() and _gnutls_selected_certs_set() * to change them. |