diff options
author | Ingela Anderton Andin <[email protected]> | 2018-06-14 16:21:58 +0200 |
---|---|---|
committer | Ingela Anderton Andin <[email protected]> | 2018-06-14 16:21:58 +0200 |
commit | 115b0fa6d1374de08789a9431dc34c633663f598 (patch) | |
tree | 4ace8b631bda699f5da39a90dead8853e015565b /lib/ssl/src/ssl.erl | |
parent | 766b968d89e3cf0b2715ba4784887b1ae8c4181d (diff) | |
parent | e91b2afc41716557bad662e346e9f978ee3156ba (diff) | |
download | otp-115b0fa6d1374de08789a9431dc34c633663f598.tar.gz otp-115b0fa6d1374de08789a9431dc34c633663f598.tar.bz2 otp-115b0fa6d1374de08789a9431dc34c633663f598.zip |
Merge branch 'ingela/ssl/21-enhanchment'
* ingela/ssl/21-enhanchment:
ssl: Add handle_continue/2 and document enhancements
Diffstat (limited to 'lib/ssl/src/ssl.erl')
-rw-r--r-- | lib/ssl/src/ssl.erl | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/lib/ssl/src/ssl.erl b/lib/ssl/src/ssl.erl index eb5b351dd3..f5e5336f81 100644 --- a/lib/ssl/src/ssl.erl +++ b/lib/ssl/src/ssl.erl @@ -40,7 +40,7 @@ %% Socket handling -export([connect/3, connect/2, connect/4, listen/2, transport_accept/1, transport_accept/2, - handshake/1, handshake/2, handshake/3, + handshake/1, handshake/2, handshake/3, handshake_continue/2, handshake_continue/3, handshake_cancel/1, ssl_accept/1, ssl_accept/2, ssl_accept/3, controlling_process/2, peername/1, peercert/1, sockname/1, @@ -259,6 +259,16 @@ handshake(Socket, SslOptions, Timeout) when is_port(Socket), Error = {error, _Reason} -> Error end. + +%%-------------------------------------------------------------------- +-spec handshake_continue(#sslsocket{}, [ssl_option()]) -> + {ok, #sslsocket{}} | {error, reason()}. +%% +%% +%% Description: Continues the handshke possible with newly supplied options. +%%-------------------------------------------------------------------- +handshake_continue(Socket, SSLOptions) -> + handshake_continue(Socket, SSLOptions, infinity). %%-------------------------------------------------------------------- -spec handshake_continue(#sslsocket{}, [ssl_option()], timeout()) -> {ok, #sslsocket{}} | {error, reason()}. |