diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2017-10-19 16:27:30 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2018-02-19 15:29:36 +0100 |
commit | 2a786c5ebda576b484ee8d7ffbf52eee82106f85 (patch) | |
tree | c5cf6648845d335cfc2a4856753d4df5161eea90 /lib/state.c | |
parent | d98473341430849984ff7354cee811e1d9b7842c (diff) | |
download | gnutls-2a786c5ebda576b484ee8d7ffbf52eee82106f85.tar.gz |
handshake: introduced gnutls_session_key_update()
This function allows updating keys of the session and notifying
the peer.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Diffstat (limited to 'lib/state.c')
-rw-r--r-- | lib/state.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/state.c b/lib/state.c index 1aeddc01ac..d48b311347 100644 --- a/lib/state.c +++ b/lib/state.c @@ -294,6 +294,7 @@ int gnutls_init(gnutls_session_t * session, unsigned int flags) _gnutls_buffer_init(&(*session)->internals.hb_remote_data); _gnutls_buffer_init(&(*session)->internals.hb_local_data); _gnutls_buffer_init(&(*session)->internals.record_presend_buffer); + _gnutls_buffer_init(&(*session)->internals.record_key_update_buffer); _mbuffer_head_init(&(*session)->internals.record_buffer); _mbuffer_head_init(&(*session)->internals.record_send_buffer); @@ -412,6 +413,7 @@ void gnutls_deinit(gnutls_session_t session) _gnutls_buffer_clear(&session->internals.hb_remote_data); _gnutls_buffer_clear(&session->internals.hb_local_data); _gnutls_buffer_clear(&session->internals.record_presend_buffer); + _gnutls_buffer_clear(&session->internals.record_key_update_buffer); _mbuffer_head_clear(&session->internals.record_buffer); _mbuffer_head_clear(&session->internals.record_recv_buffer); |