aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssl/src/tls_connection.erl
diff options
context:
space:
mode:
authorIngela Anderton Andin <[email protected]>2017-11-17 11:31:08 +0100
committerIngela Anderton Andin <[email protected]>2017-11-24 11:45:59 +0100
commit7a9037b9f796912cce1b04910fcf90b3e474f612 (patch)
tree769ac2c82dd23fffe21c594cd3fcc3e608d43aeb /lib/ssl/src/tls_connection.erl
parenteb2da85bf1f29000cd3c1b2f6dfbfcb5d6aec016 (diff)
downloadotp-7a9037b9f796912cce1b04910fcf90b3e474f612.tar.gz
otp-7a9037b9f796912cce1b04910fcf90b3e474f612.tar.bz2
otp-7a9037b9f796912cce1b04910fcf90b3e474f612.zip
ssl: Use genstamtem properly
Diffstat (limited to 'lib/ssl/src/tls_connection.erl')
-rw-r--r--lib/ssl/src/tls_connection.erl11
1 files changed, 4 insertions, 7 deletions
diff --git a/lib/ssl/src/tls_connection.erl b/lib/ssl/src/tls_connection.erl
index 96243db4ae..a8b6ea63af 100644
--- a/lib/ssl/src/tls_connection.erl
+++ b/lib/ssl/src/tls_connection.erl
@@ -441,8 +441,8 @@ init(Type, Event, State) ->
error({call, From}, {start, _Timeout}, {Error, State}) ->
{stop_and_reply, normal, {reply, From, {error, Error}}, State};
-error({call, From}, Msg, State) ->
- handle_call(Msg, From, ?FUNCTION_NAME, State);
+error({call, _} = Call, Msg, State) ->
+ ssl_connection:?FUNCTION_NAME(Call, Msg, State, ?MODULE);
error(_, _, _) ->
{keep_state_and_data, [postpone]}.
@@ -651,10 +651,7 @@ tls_handshake_events(Packets) ->
{next_event, internal, {handshake, Packet}}
end, Packets).
-handle_call(Event, From, StateName, State) ->
- ssl_connection:handle_call(Event, From, StateName, State, ?MODULE).
-
-%% raw data from socket, unpack records
+%% raw data from socket, upack records
handle_info({Protocol, _, Data}, StateName,
#state{data_tag = Protocol} = State0) ->
case next_tls_record(Data, State0) of
@@ -697,7 +694,7 @@ handle_info({CloseTag, Socket}, StateName,
next_event(StateName, no_record, State)
end;
handle_info(Msg, StateName, State) ->
- ssl_connection:handle_info(Msg, StateName, State).
+ ssl_connection:StateName(info, Msg, State, ?MODULE).
handle_alerts([], Result) ->
Result;