diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2018-02-22 14:42:43 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2018-03-08 12:45:50 +0100 |
commit | b2fccff200c236958cc3173c390e50460e1628be (patch) | |
tree | ce02862cfb6a3e5a41aa4fd041188ce553f5593a /lib | |
parent | 659adce03edaf71538e9d61fb5092e393f8867f4 (diff) | |
download | gnutls-b2fccff200c236958cc3173c390e50460e1628be.tar.gz |
record: send 0x0303 under TLS1.3
This is a draft-ietf-tls-tls13-22 change.
Resolves #396
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/record.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/record.c b/lib/record.c index 577a15aef8..20dff2b3a7 100644 --- a/lib/record.c +++ b/lib/record.c @@ -1,6 +1,7 @@ /* - * Copyright (C) 2000-2016 Free Software Foundation, Inc. - * Copyright (C) 2012-2016 Nikos Mavrogiannopoulos + * Copyright (C) 2000-2018 Free Software Foundation, Inc. + * Copyright (C) 2012-2018 Nikos Mavrogiannopoulos + * Copyright (C) 2018 Red Hat, Inc. * * Author: Nikos Mavrogiannopoulos * @@ -372,7 +373,7 @@ copy_record_version(gnutls_session_t session, if (lver->tls13_sem) { version[0] = 0x03; - version[1] = 0x01; + version[1] = 0x03; } else { version[0] = lver->major; version[1] = lver->minor; @@ -687,8 +688,8 @@ record_check_version(gnutls_session_t session, int diff = 0; if (vers->tls13_sem) { - /* TLS 1.3 requires version to be 0x0301 */ - if (version[0] != 0x03 || version[1] != 0x01) + /* TLS 1.3 requires version to be 0x0303 */ + if (version[0] != 0x03 || version[1] != 0x03) diff = 1; } else { if (vers->major != version[0] || vers->minor != version[1]) |