diff options
author | Ingela Anderton Andin <[email protected]> | 2017-03-10 10:46:56 +0100 |
---|---|---|
committer | Ingela Anderton Andin <[email protected]> | 2017-03-10 11:13:52 +0100 |
commit | 6b91fe9f46381c65f2786d014626a0df81fc802f (patch) | |
tree | e5615d07a7bc0f7a2005f7d5b08b261e4e1b9e4d /lib | |
parent | e7f5271f8f990b0a49a8ec8da08f1fc49f36bec6 (diff) | |
download | otp-6b91fe9f46381c65f2786d014626a0df81fc802f.tar.gz otp-6b91fe9f46381c65f2786d014626a0df81fc802f.tar.bz2 otp-6b91fe9f46381c65f2786d014626a0df81fc802f.zip |
dtls: Correct version check
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ssl/src/ssl.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ssl/src/ssl.erl b/lib/ssl/src/ssl.erl index ed04c7e67b..45fc29723f 100644 --- a/lib/ssl/src/ssl.erl +++ b/lib/ssl/src/ssl.erl @@ -1118,7 +1118,7 @@ validate_versions([Version | Rest], Versions) when Version == 'tlsv1.2'; Version == sslv3 -> tls_validate_versions(Rest, Versions); validate_versions([Version | Rest], Versions) when Version == 'dtlsv1'; - Version == 'dtlsv2'-> + Version == 'dtlsv1.2'-> dtls_validate_versions(Rest, Versions); validate_versions([Ver| _], Versions) -> throw({error, {options, {Ver, {versions, Versions}}}}). @@ -1136,7 +1136,7 @@ tls_validate_versions([Ver| _], Versions) -> dtls_validate_versions([], Versions) -> Versions; dtls_validate_versions([Version | Rest], Versions) when Version == 'dtlsv1'; - Version == 'dtlsv2'-> + Version == 'dtlsv1.2'-> dtls_validate_versions(Rest, Versions); dtls_validate_versions([Ver| _], Versions) -> throw({error, {options, {Ver, {versions, Versions}}}}). |