summaryrefslogtreecommitdiff
path: root/lib/constate.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/constate.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/constate.c')
-rw-r--r--lib/constate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/constate.c b/lib/constate.c
index a11577d7ba..a650997c1c 100644
--- a/lib/constate.c
+++ b/lib/constate.c
@@ -197,7 +197,7 @@ _tls13_update_keys(gnutls_session_t session, hs_stage_t stage,
char buf[65];
record_state_st *upd_state;
record_parameters_st *prev = NULL;
- gnutls_handshake_secret_type_t secret_type;
+ gnutls_secret_type_t secret_type;
int ret;
/* generate new keys for direction needed and copy old from previous epoch */
@@ -396,7 +396,7 @@ _tls13_set_keys(gnutls_session_t session, hs_stage_t stage,
record_state_st *client_write, *server_write;
const char *label;
unsigned label_size, hsk_len;
- gnutls_handshake_secret_type_t secret_type;
+ gnutls_secret_type_t secret_type;
void *ckey, *skey;
int ret;