ssl_socket

Types


ciphers() = [ssl_cipher:erl_cipher_suite()] | string()

connect_option() = socket_connect_option()
                         | ssl_option()
                         | transport_option()

from() = term()

listen_option() = socket_listen_option()
                        | ssl_option()
                        | transport_option()

msg() = term()

path() = string()

prf_random() = client_random | server_random

reason() = term()

reply() = term()

socket_connect_option() = gen_tcp:connect_option()

socket_listen_option() = gen_tcp:listen_option()

ssl_imp() = new | old

ssl_option() = {versions, ssl_record:ssl_atom_version()}
                     | {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


socket(Pid, Transport, Socket, ConnectionCb, Tracker) -> term()

setopts(Transport, Sslsocket, Options) -> term()

getopts(Transport, Sslsocket, Options) -> term()

peername(Transport, Socket) -> term()

sockname(Transport, Socket) -> term()

port(Transport, Socket) -> term()

emulated_options() -> term()

internal_inet_values() -> term()

default_inet_values() -> term()

inherit_tracker(ListenSocket, EmOpts, Ssl_options) -> term()

get_emulated_opts(TrackerPid) -> term()

set_emulated_opts(TrackerPid, InetValues) -> term()

get_all_opts(TrackerPid) -> term()

start_link(Port, SockOpts, SslOpts) -> term()

init(X1::list()) -> {ok, #state{}}

handle_call(X1::msg(), From::from(), State::#state{}) -> {reply, reply(), #state{}}

handle_cast(X1::msg(), State::#state{}) -> {noreply, #state{}}

handle_info(X1::msg(), State::#state{}) -> {stop, reason(), #state{}}

terminate(Reason::reason(), State::#state{}) -> ok

code_change(OldVsn::term(), State::#state{}, Extra::list()) -> {ok, #state{}}