From: Nikos Mavrogiannopoulos Date: Wed, 11 Nov 2015 10:15:51 +0000 (+0100) Subject: Allow switching a ciphersuite to DHE and ECDHE on a rehandshake X-Git-Tag: gnutls_3_5_0~578 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4639441dc6f4c45b0ba806bc708fb928bb8a64ae;p=thirdparty%2Fgnutls.git Allow switching a ciphersuite to DHE and ECDHE on a rehandshake --- diff --git a/lib/auth/dhe.c b/lib/auth/dhe.c index 16b16bd2a0..31b4bc1158 100644 --- a/lib/auth/dhe.c +++ b/lib/auth/dhe.c @@ -100,7 +100,7 @@ gen_dhe_server_kx(gnutls_session_t session, gnutls_buffer_st * data) if ((ret = _gnutls_auth_info_set(session, GNUTLS_CRD_CERTIFICATE, sizeof(cert_auth_info_st), - 0)) < 0) { + 1)) < 0) { gnutls_assert(); return ret; } diff --git a/lib/auth/ecdhe.c b/lib/auth/ecdhe.c index 9376c0b67e..60340dd97a 100644 --- a/lib/auth/ecdhe.c +++ b/lib/auth/ecdhe.c @@ -385,7 +385,7 @@ gen_ecdhe_server_kx(gnutls_session_t session, gnutls_buffer_st * data) if ((ret = _gnutls_auth_info_set(session, GNUTLS_CRD_CERTIFICATE, sizeof(cert_auth_info_st), - 0)) < 0) { + 1)) < 0) { gnutls_assert(); return ret; }