summaryrefslogtreecommitdiff
path: root/lib/sslv2_compat.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2018-02-28 12:41:40 +0100
committerNikos Mavrogiannopoulos <nmav@redhat.com>2018-03-08 12:56:32 +0100
commit02354f173e66df3dad4ac9447e4965aecfad65e8 (patch)
treef608358522d46cd12484f0a0fa71e19ad4f6acef /lib/sslv2_compat.c
parent90c4f5c1c4a4ec7bce1db01447df2727407cba3f (diff)
downloadgnutls-02354f173e66df3dad4ac9447e4965aecfad65e8.tar.gz
Server hello format follows TLS1.2 format
Also version negotiation was moved to supported_versions extension, and session ID is set by client following appendix D.4. This is a draft-ietf-tls-tls13-22 change. Resolves #393, #389, #397 Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Diffstat (limited to 'lib/sslv2_compat.c')
-rw-r--r--lib/sslv2_compat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sslv2_compat.c b/lib/sslv2_compat.c
index 882cbd628d..d466cc30f1 100644
--- a/lib/sslv2_compat.c
+++ b/lib/sslv2_compat.c
@@ -112,7 +112,7 @@ _gnutls_read_client_hello_v2(gnutls_session_t session, uint8_t * data,
adv_version = _gnutls_version_get(major, minor);
- ret = _gnutls_negotiate_legacy_version(session, adv_version, major, minor);
+ ret = _gnutls_negotiate_version(session, adv_version, major, minor);
if (ret < 0) {
gnutls_assert();
return ret;