tls_handshake

DATA TYPES

db_handle() = term()
der_cert() = binary()
host() = ip_address() (see module inet) | hostname() (see module inet)
oid() = tuple()
session_id() = 0 | binary()
ssl_handshake() = #server_hello{} | #server_hello_done{} | #certificate{} | #certificate_request{} | #client_key_exchange{} | #finished{} | #certificate_verify{} | #hello_request{} | #next_protocol{}
tls_handshake() = #client_hello{} | ssl_handshake()
tls_handshake_history() = {[binary()], [binary()]}
tls_version() = {integer(), integer()}

Functions


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

server_hello(Session::#session{}, Version::tls_version(), Connection_states::#connection_states{}, Hello_extensions::#hello_extensions{}) -> #server_hello{}

hello(Server_hello::#server_hello{} | #client_hello{}, Ssl_options::#ssl_options{}, ConnectionStates0::#connection_states{} | {port_number() (see module inet), #session{}, db_handle(), atom(), #connection_states{}, binary() | undefined}, Renegotiation::boolean()) -> {tls_version(), session_id(), #connection_states{}, binary() | undefined} | {tls_version(), {resumed | new, #session{}}, #connection_states{}, [binary()] | undefined, [oid()] | undefined, [oid()] | undefined} | #alert{}

encode_handshake(Package::tls_handshake(), Version::tls_version()) -> iolist()

get_tls_handshake(Version::tls_version(), Data::binary(), Buffer::binary() | iolist()) -> {[tls_handshake()], binary()}

init_handshake_history() -> tls_handshake_history()

update_handshake_history(Handshake::tls_handshake_history(), Data::term()) -> tls_handshake_history()

decode_handshake(Version, Tag, Msg) -> term()

View Functions