diff options
author | Ingela Anderton Andin <[email protected]> | 2013-09-17 15:28:20 +0200 |
---|---|---|
committer | Ingela Anderton Andin <[email protected]> | 2013-12-02 09:44:49 +0100 |
commit | b3d5f82bd3baf5b63ea97c017cb83674ca703c66 (patch) | |
tree | 9e69018308dd59d9224129fe81e718fdeb78e341 /lib/ssl/src/dtls_handshake.erl | |
parent | 810c34a7991f2b6edd5e9f41e3c667958a5b2bc8 (diff) | |
download | otp-b3d5f82bd3baf5b63ea97c017cb83674ca703c66.tar.gz otp-b3d5f82bd3baf5b63ea97c017cb83674ca703c66.tar.bz2 otp-b3d5f82bd3baf5b63ea97c017cb83674ca703c66.zip |
ssl: Refactor connection and handshake handling
Diffstat (limited to 'lib/ssl/src/dtls_handshake.erl')
-rw-r--r-- | lib/ssl/src/dtls_handshake.erl | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/lib/ssl/src/dtls_handshake.erl b/lib/ssl/src/dtls_handshake.erl index d898da65fb..6a54c5a305 100644 --- a/lib/ssl/src/dtls_handshake.erl +++ b/lib/ssl/src/dtls_handshake.erl @@ -21,13 +21,26 @@ -include("dtls_record.hrl"). -include("ssl_internal.hrl"). --export([client_hello/9, hello/3, get_dtls_handshake/2, +-export([client_hello/8, client_hello/9, hello/3, + get_dtls_handshake/2, dtls_handshake_new_flight/1, dtls_handshake_new_epoch/1, encode_handshake/4]). %%==================================================================== %% Internal application API %%==================================================================== +%%-------------------------------------------------------------------- +-spec client_hello(host(), inet:port_number(), #connection_states{}, + #ssl_options{}, integer(), atom(), boolean(), der_cert()) -> + #client_hello{}. +%% +%% Description: Creates a client hello message. +%%-------------------------------------------------------------------- +client_hello(Host, Port, ConnectionStates, SslOpts, + Cache, CacheCb, Renegotiation, OwnCert) -> + %% First client hello (two sent in DTLS ) uses empty Cookie + client_hello(Host, Port, <<>>, ConnectionStates, SslOpts, + Cache, CacheCb, Renegotiation, OwnCert). %%-------------------------------------------------------------------- -spec client_hello(host(), inet:port_number(), term(), #connection_states{}, |