diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2017-07-13 09:44:28 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2018-02-19 15:29:33 +0100 |
commit | 6adf2b0772fe3b70264f226f39bc20ba4987c2e4 (patch) | |
tree | df8d35edfcb2dcc959223df11d3546ee6ab99ad4 /lib/session_pack.c | |
parent | 6deed540c7db8b50a04bc0d62cd4c6d4bd166eb0 (diff) | |
download | gnutls-6adf2b0772fe3b70264f226f39bc20ba4987c2e4.tar.gz |
Added support for post handshake auth extension
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Diffstat (limited to 'lib/session_pack.c')
-rw-r--r-- | lib/session_pack.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/session_pack.c b/lib/session_pack.c index 25f44d04fd..d20601a831 100644 --- a/lib/session_pack.c +++ b/lib/session_pack.c @@ -772,6 +772,8 @@ pack_security_parameters(gnutls_session_t session, gnutls_buffer_st * ps) BUFFER_APPEND_NUM(ps, 0); } + BUFFER_APPEND_NUM(ps, session->security_parameters.post_handshake_auth); + BUFFER_APPEND_NUM(ps, session->security_parameters.server_sign_algo); BUFFER_APPEND_NUM(ps, @@ -859,6 +861,8 @@ unpack_security_parameters(gnutls_session_t session, gnutls_buffer_st * ps) session->internals.resumed_security_parameters.grp = _gnutls_id_to_group(ret); /* it can be null */ + BUFFER_POP_NUM(ps, session->security_parameters.post_handshake_auth); + BUFFER_POP_NUM(ps, session->internals.resumed_security_parameters. server_sign_algo); @@ -974,6 +978,8 @@ gnutls_session_set_premaster(gnutls_session_t session, unsigned int entity, session->internals.resumed_security_parameters.grp = 0; + session->internals.resumed_security_parameters.post_handshake_auth = 0; + session->internals.premaster_set = 1; return 0; |