aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssl/src/tls_connection.erl
diff options
context:
space:
mode:
authorIngela Anderton Andin <[email protected]>2018-12-10 21:37:49 +0100
committerIngela Anderton Andin <[email protected]>2018-12-12 23:45:29 +0100
commitba6534bb5b86ec4a5de3054f97dce8597ce96b0c (patch)
tree7bdf50d16b9d8f099e26b4c6bb18e4f5f8e707b2 /lib/ssl/src/tls_connection.erl
parent4a03901ed227a95bcd8a8d4e48088688f20dedb0 (diff)
downloadotp-ba6534bb5b86ec4a5de3054f97dce8597ce96b0c.tar.gz
otp-ba6534bb5b86ec4a5de3054f97dce8597ce96b0c.tar.bz2
otp-ba6534bb5b86ec4a5de3054f97dce8597ce96b0c.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.erl7
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.