summaryrefslogtreecommitdiff
path: root/lib/handshake.c
diff options
context:
space:
mode:
authorTom Vrancken <dev@tomvrancken.nl>2018-08-15 18:29:32 +0200
committerTom Vrancken <dev@tomvrancken.nl>2018-08-20 17:08:01 +0200
commit07180a416731749883234f931ac18831ff38abbb (patch)
tree0b9d13b9ad394477d566f01ba8e279c33711cc7c /lib/handshake.c
parenta42db538c3f01aa76e2c1a2affc39237840c2522 (diff)
downloadgnutls-07180a416731749883234f931ac18831ff38abbb.tar.gz
Implemented RFC7250 certificate type negotiation extensions.
Signed-off-by: Tom Vrancken <dev@tomvrancken.nl>
Diffstat (limited to 'lib/handshake.c')
-rw-r--r--lib/handshake.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/handshake.c b/lib/handshake.c
index ebea926aa5..914f8ecacc 100644
--- a/lib/handshake.c
+++ b/lib/handshake.c
@@ -198,8 +198,10 @@ static int tls12_resume_copy_required_vals(gnutls_session_t session, unsigned ti
id) < 0)
return gnutls_assert_val(GNUTLS_E_UNSUPPORTED_VERSION_PACKET);
- session->security_parameters.cert_type =
- session->internals.resumed_security_parameters.cert_type;
+ session->security_parameters.client_ctype =
+ session->internals.resumed_security_parameters.client_ctype;
+ session->security_parameters.server_ctype =
+ session->internals.resumed_security_parameters.server_ctype;
if (!ticket) {
memcpy(session->security_parameters.session_id,