summaryrefslogtreecommitdiff
path: root/lib/gnutls_int.h
diff options
context:
space:
mode:
authorAniketh01 <anikethgireesh@gmail.com>2019-10-03 12:12:10 +0530
committerDaiki Ueno <dueno@redhat.com>2019-12-01 18:32:33 +0100
commit51eed2631d3e216b0fe4a56a713f4665dbfe1c5c (patch)
tree4c0293c452bddb5b7dcc46c81b24ad5879841ace /lib/gnutls_int.h
parent25ae05fdc0e5627b6e53c17c2c55a987117d9cfb (diff)
downloadgnutls-tmp-secret-hook.tar.gz
gnutls_session_set_secret_hook_function: new functiontmp-secret-hook
This adds a callback to get notified when a new traffic secret is set. This is particularly useful with QUIC, where the QUIC implementations calculate actual traffic keys from the TLS secrets. Signed-off-by: Aniketh01 <anikethgireesh@gmail.com> Signed-off-by: Daiki Ueno <dueno@redhat.com>
Diffstat (limited to 'lib/gnutls_int.h')
-rw-r--r--lib/gnutls_int.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/gnutls_int.h b/lib/gnutls_int.h
index 3b683a1de1..617757d8e8 100644
--- a/lib/gnutls_int.h
+++ b/lib/gnutls_int.h
@@ -1246,6 +1246,8 @@ typedef struct {
unsigned int h_type; /* the hooked type */
int16_t h_post; /* whether post-generation/receive */
+ gnutls_secret_hook_func secret_hook;
+
/* holds the selected certificate and key.
* use _gnutls_selected_certs_deinit() and _gnutls_selected_certs_set()
* to change them.