summaryrefslogtreecommitdiff
path: root/lib/state.c
diff options
context:
space:
mode:
authorDaiki Ueno <dueno@redhat.com>2020-02-17 16:13:35 +0100
committerDaiki Ueno <dueno@redhat.com>2020-02-17 17:51:43 +0100
commitd5f0a8662e843bd3070f4d8653326a40ae9b7932 (patch)
tree60a2cb98e21c9c852c9ea71aeecf83487b61ab3b /lib/state.c
parent8ab75b3cf7130ad7594b68c6ecba79b6e0c082d9 (diff)
downloadgnutls-tmp-rename-secret-hook.tar.gz
gnutls_session_set_secret_function: rename from gnutls_handshake_*tmp-rename-secret-hook
As some of the secrets can be used after the handshake is completed, the gnutls_session_ namespace is more appropriate for the function. The names of enum/callback are also shortened. Signed-off-by: Daiki Ueno <dueno@redhat.com>
Diffstat (limited to 'lib/state.c')
-rw-r--r--lib/state.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/state.c b/lib/state.c
index f33cd5a8bc..8f02abdf79 100644
--- a/lib/state.c
+++ b/lib/state.c
@@ -589,7 +589,7 @@ int gnutls_init(gnutls_session_t * session, unsigned int flags)
(*session)->internals.flags |= INT_FLAG_NO_TLS13;
/* Install the default secret function */
- gnutls_handshake_set_secret_function(*session,
+ gnutls_session_set_secret_function(*session,
_gnutls_nss_keylog_secret_func);
return 0;