aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssl/src/dtls_handshake.hrl
diff options
context:
space:
mode:
authorIngela Anderton Andin <[email protected]>2017-06-13 17:58:52 +0200
committerIngela Anderton Andin <[email protected]>2017-06-13 17:58:52 +0200
commit478205d32667dd7575d70d412d96c8c695168c46 (patch)
treee5c97d54672d96c814ccaf8435d3abe574a9d819 /lib/ssl/src/dtls_handshake.hrl
parent698068c2322d6032f46487f56802246198e576f2 (diff)
downloadotp-478205d32667dd7575d70d412d96c8c695168c46.tar.gz
otp-478205d32667dd7575d70d412d96c8c695168c46.tar.bz2
otp-478205d32667dd7575d70d412d96c8c695168c46.zip
dtls: Make HelloVerifyRequest version adhere to RFC
ERL-434 RFC6347 says about hello_verify_request version field as follow https://tools.ietf.org/html/rfc6347#page-16 The server_version field has the same syntax as in TLS. However, in order to avoid the requirement to do version negotiation in the initial handshake, DTLS 1.2 server implementations SHOULD use DTLS version 1.0 regardless of the version of TLS that is expected to be negotiated. But current DTLS server responses DTLS1.2 instead of DTLS1.0.
Diffstat (limited to 'lib/ssl/src/dtls_handshake.hrl')
-rw-r--r--lib/ssl/src/dtls_handshake.hrl1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/ssl/src/dtls_handshake.hrl b/lib/ssl/src/dtls_handshake.hrl
index 0a980c5f31..24678cba0e 100644
--- a/lib/ssl/src/dtls_handshake.hrl
+++ b/lib/ssl/src/dtls_handshake.hrl
@@ -29,6 +29,7 @@
-include("ssl_handshake.hrl"). %% Common TLS and DTLS records and Constantes
-define(HELLO_VERIFY_REQUEST, 3).
+-define(HELLO_VERIFY_REQUEST_VERSION, {254, 255}).
-record(client_hello, {
client_version,