diff options
author | Ingela Anderton Andin <[email protected]> | 2017-11-17 15:15:54 +0100 |
---|---|---|
committer | Ingela Anderton Andin <[email protected]> | 2017-11-24 11:45:59 +0100 |
commit | 17fdd07785c08fb2c0241df1c5ee4fc9cd1f83c5 (patch) | |
tree | 6f3cefa69722b499bfa78b0b425182e455305abf /lib/ssl/src | |
parent | 7a9037b9f796912cce1b04910fcf90b3e474f612 (diff) | |
download | otp-17fdd07785c08fb2c0241df1c5ee4fc9cd1f83c5.tar.gz otp-17fdd07785c08fb2c0241df1c5ee4fc9cd1f83c5.tar.bz2 otp-17fdd07785c08fb2c0241df1c5ee4fc9cd1f83c5.zip |
ssl: Remove old softupgrade code
This code is only relevant in version is was written in.
Diffstat (limited to 'lib/ssl/src')
-rw-r--r-- | lib/ssl/src/tls_connection.erl | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/lib/ssl/src/tls_connection.erl b/lib/ssl/src/tls_connection.erl index a8b6ea63af..a4cdce3902 100644 --- a/lib/ssl/src/tls_connection.erl +++ b/lib/ssl/src/tls_connection.erl @@ -587,9 +587,6 @@ terminate(Reason, StateName, State) -> format_status(Type, Data) -> ssl_connection:format_status(Type, Data). -code_change(_OldVsn, StateName, State0, {Direction, From, To}) -> - State = convert_state(State0, Direction, From, To), - {ok, StateName, State}; code_change(_OldVsn, StateName, State, _) -> {ok, StateName, State}. @@ -781,14 +778,3 @@ assert_buffer_sanity(Bin, _) -> throw(?ALERT_REC(?FATAL, ?HANDSHAKE_FAILURE, malformed_handshake_data)) end. - -convert_state(#state{ssl_options = Options} = State, up, "5.3.5", "5.3.6") -> - State#state{ssl_options = convert_options_partial_chain(Options, up)}; -convert_state(#state{ssl_options = Options} = State, down, "5.3.6", "5.3.5") -> - State#state{ssl_options = convert_options_partial_chain(Options, down)}. - -convert_options_partial_chain(Options, up) -> - {Head, Tail} = lists:split(5, tuple_to_list(Options)), - list_to_tuple(Head ++ [{partial_chain, fun(_) -> unknown_ca end}] ++ Tail); -convert_options_partial_chain(Options, down) -> - list_to_tuple(proplists:delete(partial_chain, tuple_to_list(Options))). |