diff options
author | Anders Svensson <[email protected]> | 2018-06-07 11:13:54 +0200 |
---|---|---|
committer | Anders Svensson <[email protected]> | 2018-06-07 12:28:42 +0200 |
commit | 79455556827bd02697d34a8ae307c543d6d93b09 (patch) | |
tree | 4502d6d625ff2f36d73503229ae49db2ce3d7476 /lib/diameter/src/transport/diameter_tcp.erl | |
parent | 928eca9c694f098d65873f4ac6ceb19b6ba13d6b (diff) | |
download | otp-79455556827bd02697d34a8ae307c543d6d93b09.tar.gz otp-79455556827bd02697d34a8ae307c543d6d93b09.tar.bz2 otp-79455556827bd02697d34a8ae307c543d6d93b09.zip |
Don't use deprecated ssl:ssl_accept/1-3
Diffstat (limited to 'lib/diameter/src/transport/diameter_tcp.erl')
-rw-r--r-- | lib/diameter/src/transport/diameter_tcp.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/diameter/src/transport/diameter_tcp.erl b/lib/diameter/src/transport/diameter_tcp.erl index a8639baa11..681d273d07 100644 --- a/lib/diameter/src/transport/diameter_tcp.erl +++ b/lib/diameter/src/transport/diameter_tcp.erl @@ -716,7 +716,7 @@ tls_handshake(_, false, S) -> tls(connect, Sock, Opts) -> ssl:connect(Sock, Opts); tls(accept, Sock, Opts) -> - ssl:ssl_accept(Sock, Opts). + ssl:handshake(Sock, Opts). %% assume no handshake option %% recv/2 %% @@ -839,7 +839,7 @@ start_fragment_timer(#transport{timeout = Tmo} = S) -> accept(ssl, LSock) -> case ssl:transport_accept(LSock) of {ok, Sock} -> - {ssl:ssl_accept(Sock), Sock}; + ssl:handshake(Sock); {error, _} = No -> No end; |