diff options
author | Ingela Anderton Andin <[email protected]> | 2016-04-28 15:09:08 +0200 |
---|---|---|
committer | Ingela Anderton Andin <[email protected]> | 2016-04-29 12:26:18 +0200 |
commit | 7a3abea5ed893338e5691f87a782a0320e5ce270 (patch) | |
tree | 07127b39ff779af587662a4e3d33578aeb396964 /lib/ssl/src | |
parent | 2608cf7a3abeb7ee194dd376b6b72b250a396aac (diff) | |
download | otp-7a3abea5ed893338e5691f87a782a0320e5ce270.tar.gz otp-7a3abea5ed893338e5691f87a782a0320e5ce270.tar.bz2 otp-7a3abea5ed893338e5691f87a782a0320e5ce270.zip |
ssl: Correct guard expression
The guard should check that the TLS version is at least TLS-1.2.
Diffstat (limited to 'lib/ssl/src')
-rw-r--r-- | lib/ssl/src/tls_handshake.erl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/ssl/src/tls_handshake.erl b/lib/ssl/src/tls_handshake.erl index ef718c13df..102dbba198 100644 --- a/lib/ssl/src/tls_handshake.erl +++ b/lib/ssl/src/tls_handshake.erl @@ -278,10 +278,11 @@ handle_server_hello_extensions(Version, SessionId, Random, CipherSuite, {Version, SessionId, ConnectionStates, ProtoExt, Protocol} end. -available_signature_algs(undefined, SupportedHashSigns, _, {Major, Minor}) when (Major < 3) andalso (Minor < 3) -> +available_signature_algs(undefined, SupportedHashSigns, _, {Major, Minor}) when + (Major >= 3) andalso (Minor >= 3) -> SupportedHashSigns; available_signature_algs(#hash_sign_algos{hash_sign_algos = ClientHashSigns}, SupportedHashSigns, - _, {Major, Minor}) when (Major < 3) andalso (Minor < 3) -> + _, {Major, Minor}) when (Major >= 3) andalso (Minor >= 3) -> ordsets:intersection(ClientHashSigns, SupportedHashSigns); available_signature_algs(_, _, _, _) -> undefined. |