tls_connection
DATA TYPES
ciphers() = [erl_cipher_suite() (see module ssl_cipher)] | string()
connect_option() = socket_connect_option() | ssl_option() | transport_option()
host() = ip_address() (see module inet) | hostname() (see module inet)
listen_option() = socket_listen_option() | ssl_option() | transport_option()
path() = string()
prf_random() = client_random | server_random
reason() = term()
socket_connect_option() = connect_option() (see module gen_tcp)
socket_listen_option() = listen_option() (see module gen_tcp)
ssl_imp() = new | old
ssl_option() = {versions, ssl_atom_version() (see module ssl_record)} | {verify, verify_type()} | {verify_fun, {function(), InitialUserState::term()}} | {fail_if_no_peer_cert, boolean()} | {depth, integer()} | {cert, Der::binary()} | {certfile, path()} | {key, Der::binary()} | {keyfile, path()} | {password, string()} | {cacerts, [Der::binary()]} | {cacertfile, path()} | {dh, Der::binary()} | {dhfile, path()} | {user_lookup_fun, {function(), InitialUserState::term()}} | {psk_identity, string()} | {srp_identity, {string(), string()}} | {ciphers, ciphers()} | {ssl_imp, ssl_imp()} | {reuse_sessions, boolean()} | {reuse_session, function()} | {hibernate_after, integer() | undefined} | {next_protocols_advertised, [binary()]} | {client_preferred_next_protocols, binary(), client | server, [binary()]}
sslsocket() = #sslsocket{}
transport_option() = {cb_info, {CallbackModule::atom(), DataTag::atom(), ClosedTag::atom(), ErrTag::atom()}}
verify_type() = verify_none | verify_peer
Functions
start_fsm(Role, Host, Port, Socket, Opts, User, CbInfo, Timeout) -> term()
send_handshake(Handshake, State) -> term()
send_alert(Alert, State) -> term()
send_change_cipher(Msg, State) -> term()
start_link(Role::atom(), Host::host(), Port::port_number() (see module inet), Socket::port(), Options::list(), User::pid(), CbInfo::tuple()) -> {ok, pid()} | ignore | {error, reason()}
init(X1) -> term()
hello(Hello, State) -> term()
abbreviated(Msg, State) -> term()
certify(Msg, State) -> term()
cipher(Msg, State) -> term()
connection(Hello_request, State) -> term()
handle_event(Event, StateName, State) -> term()
handle_sync_event(Event, From, StateName, State) -> term()
handle_info(Msg, StateName, State) -> term()
terminate(Reason, StateName, State) -> term()
code_change(OldVsn, StateName, State, Extra) -> term()
format_status(Type, Data) -> term()
next_state(Current, Next, Alert, State) -> term()
next_record(State) -> term()
next_record_if_active(State) -> term()
next_state_connection(StateName, State) -> term()
passive_receive(State0, StateName) -> term()
read_application_data(Data, State) -> term()
write_application_data(Data0, From, State) -> term()
renegotiate(State) -> term()
alert_user(Transport, Tracker, Socket, X4, Opts, Pid, From, Alert, Role) -> term()
alert_user(Transport, Tracker, Socket, From, Alert, Role) -> term()
handle_own_alert(Alert, Version, StateName, State) -> term()
handle_normal_shutdown(Alert, StateName, State) -> term()
handle_unexpected_message(Msg, Info, State) -> term()
handle_close_alert(Data, StateName, State0) -> term()
workaround_transport_delivery_problems(Socket, Transport) -> term()
View Functions
- start_fsm/8
- send_handshake/2
- send_alert/2
- send_change_cipher/2
- start_link/1
- init/1
- hello/2
- abbreviated/2
- certify/2
- cipher/2
- connection/2
- handle_event/3
- handle_sync_event/4
- handle_info/3
- terminate/3
- code_change/4
- format_status/2
- next_state/4
- next_record/1
- next_record_if_active/1
- next_state_connection/2
- passive_receive/2
- read_application_data/2
- write_application_data/3
- renegotiate/1
- alert_user/9
- alert_user/6
- handle_own_alert/4
- handle_normal_shutdown/3
- handle_unexpected_message/3
- handle_close_alert/3
- workaround_transport_delivery_problems/2