diff options
author | Daiki Ueno <dueno@redhat.com> | 2020-03-22 10:44:51 +0100 |
---|---|---|
committer | Daiki Ueno <dueno@redhat.com> | 2020-03-22 17:30:58 +0100 |
commit | 313f58a4772b905091e1506b0880e2c2014eeb28 (patch) | |
tree | 9096537932761bcdf4611763c4be4ddd2124bd75 /tests | |
parent | 2bc4d444a309278a3aaea6eaeb05ce48ac99d3c1 (diff) | |
download | gnutls-313f58a4772b905091e1506b0880e2c2014eeb28.tar.gz |
gnutls_session_get_keylog_function: new functiontmp-get-keylog-func
This adds a way to retrieve the keylog function set by
gnutls_session_set_keylog_function() to allow application protocols to
implement custom logging facility.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/keylog-func.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/keylog-func.c b/tests/keylog-func.c index 8c4d321142..4350698e6b 100644 --- a/tests/keylog-func.c +++ b/tests/keylog-func.c @@ -26,6 +26,7 @@ #include <stdio.h> #include <stdlib.h> +#include <assert.h> #if !defined(__linux__) || !defined(__GNUC__) @@ -141,6 +142,7 @@ static void client(int fd, const char *prio, unsigned int exp_call_count) gnutls_transport_set_int(session, fd); gnutls_session_set_keylog_function(session, keylog_func); + assert(gnutls_session_get_keylog_function(session) == keylog_func); /* Perform the TLS handshake */ |