diff options
author | Ingela Anderton Andin <[email protected]> | 2018-09-10 11:19:42 +0200 |
---|---|---|
committer | Ingela Anderton Andin <[email protected]> | 2019-02-05 14:43:48 +0100 |
commit | e042afe54727ae490d47eae47c6d9a210f04dd47 (patch) | |
tree | 7999d1adfd7226d276903737cce6104a7230f4d2 /lib/ssl/src/ssl_connection.erl | |
parent | 949c725abcc649e508d971cbc82f5278e050db2c (diff) | |
download | otp-e042afe54727ae490d47eae47c6d9a210f04dd47.tar.gz otp-e042afe54727ae490d47eae47c6d9a210f04dd47.tar.bz2 otp-e042afe54727ae490d47eae47c6d9a210f04dd47.zip |
ssl: Use specs to generate type documentation
Diffstat (limited to 'lib/ssl/src/ssl_connection.erl')
-rw-r--r-- | lib/ssl/src/ssl_connection.erl | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/ssl/src/ssl_connection.erl b/lib/ssl/src/ssl_connection.erl index 2bfa9a52cd..41a45089d0 100644 --- a/lib/ssl/src/ssl_connection.erl +++ b/lib/ssl/src/ssl_connection.erl @@ -77,7 +77,7 @@ %%==================================================================== %%-------------------------------------------------------------------- -spec connect(tls_connection | dtls_connection, - host(), inet:port_number(), + ssl:host(), inet:port_number(), port() | {tuple(), port()}, %% TLS | DTLS {#ssl_options{}, #socket_options{}, %% Tracker only needed on server side @@ -143,7 +143,7 @@ handshake(#sslsocket{pid = [Pid|_]} = Socket, SslOptions, Timeout) -> end. %%-------------------------------------------------------------------- --spec handshake_continue(#sslsocket{}, [ssl_option()], +-spec handshake_continue(#sslsocket{}, [ssl:tls_server_option()], timeout()) -> {ok, #sslsocket{}}| {error, reason()}. %% %% Description: Continues handshake with new options @@ -2753,10 +2753,10 @@ handle_sni_extension(#sni{hostname = Hostname}, #state{static_env = #static_env{ session_cache = CacheHandle }, private_key = Key, - diffie_hellman_params = DHParams, - ssl_options = NewOptions, - sni_hostname = Hostname - } + diffie_hellman_params = DHParams, + ssl_options = NewOptions, + sni_hostname = Hostname + } end. update_ssl_options_from_sni(OrigSSLOptions, SNIHostname) -> |