diff options
author | Ingela Anderton Andin <[email protected]> | 2018-12-10 21:37:49 +0100 |
---|---|---|
committer | Ingela Anderton Andin <[email protected]> | 2018-12-20 11:56:43 +0100 |
commit | c4594c28af456b009068a461017e893d1714576a (patch) | |
tree | 7bdf50d16b9d8f099e26b4c6bb18e4f5f8e707b2 /lib/ssl/src/tls_connection.erl | |
parent | 2b373141a4d35fb8c8acf4031446c0769b399980 (diff) | |
download | otp-c4594c28af456b009068a461017e893d1714576a.tar.gz otp-c4594c28af456b009068a461017e893d1714576a.tar.bz2 otp-c4594c28af456b009068a461017e893d1714576a.zip |
ssl: Remove checks and conversions not needed
Diffstat (limited to 'lib/ssl/src/tls_connection.erl')
-rw-r--r-- | lib/ssl/src/tls_connection.erl | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/ssl/src/tls_connection.erl b/lib/ssl/src/tls_connection.erl index 5ba1f7a1b7..5864b86cbc 100644 --- a/lib/ssl/src/tls_connection.erl +++ b/lib/ssl/src/tls_connection.erl @@ -765,10 +765,11 @@ next_tls_record(Data, StateName, #state{protocol_buffers = end. +acceptable_record_versions(StateName, #state{negotiated_version = Version}) when StateName =/= hello-> + Version; acceptable_record_versions(hello, _) -> - [tls_record:protocol_version(Vsn) || Vsn <- ?ALL_AVAILABLE_VERSIONS]; -acceptable_record_versions(_, #state{negotiated_version = Version}) -> - [Version]. + [tls_record:protocol_version(Vsn) || Vsn <- ?ALL_AVAILABLE_VERSIONS]. + handle_record_alert(Alert, _) -> Alert. |