dtls_handshake

DATA TYPES

der_cert() = binary()
dtls_handshake() = #client_hello{} | #hello_verify_request{} | ssl_handshake()
host() = ip_address() (see module inet) | hostname() (see module inet)
ssl_handshake() = #server_hello{} | #server_hello_done{} | #certificate{} | #certificate_request{} | #client_key_exchange{} | #finished{} | #certificate_verify{} | #hello_request{} | #next_protocol{}

Functions


client_hello(Host::host(), Port::port_number() (see module inet), Cookie::term(), Connection_states::#connection_states{}, Ssl_options::#ssl_options{}, Cache::integer(), CacheCb::atom(), Renegotiation::boolean(), OwnCert::der_cert()) -> #client_hello{}

hello(Address, Port, Ssl_tls) -> term()

encode_handshake(Package, Version, MsgSeq, Mss) -> term()

get_dtls_handshake(Ssl_tls::#ssl_tls{}, HsState::#dtls_hs_state{} | binary()) -> {[dtls_handshake()], #ssl_tls{}}

dtls_handshake_new_epoch(Dtls_hs_state::#dtls_hs_state{}) -> #dtls_hs_state{}

dtls_handshake_new_flight(ExpectedReadReq::integer() | undefined) -> #dtls_hs_state{}

View Functions