ssl_socket

DATA TYPES

cipher() = null | rc4_128 | idea_cbc | des40_cbc | des_cbc | '3des_ede_cbc' | aes_128_cbc | aes_256_cbc
ciphers() = [erl_cipher_suite()] | string()
connect_option() = socket_connect_option() | ssl_option() | transport_option()
erl_cipher_suite() = {key_algo(), cipher(), hash()}
hash() = null | sha | md5 | sha224 | sha256 | sha384 | sha512
key_algo() = null | rsa | dhe_rsa | dhe_dss | ecdhe_ecdsa | ecdh_ecdsa | ecdh_rsa | srp_rsa | srp_dss | psk | dhe_psk | rsa_psk | dh_anon | ecdh_anon | srp_anon
listen_option() = socket_listen_option() | ssl_option() | transport_option()
path() = string()
prf_random() = client_random | server_random
socket_connect_option() = connect_option() (see module gen_tcp)
socket_listen_option() = listen_option() (see module gen_tcp)
ssl_imp() = new | old
ssl_option() = {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{}
tls_atom_version() = sslv3 | tlsv1 | 'tlsv1.1' | 'tlsv1.2'
transport_option() = {cb_info, {CallbackModule::atom(), DataTag::atom(), ClosedTag::atom(), ErrTag::atom()}}
verify_type() = verify_none | verify_peer

Functions


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

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

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

peername(Transport, Socket) -> term()

sockname(Transport, Socket) -> term()

port(Transport, Socket) -> term()