ssl_record
(ssl)
Functions
init_connection_states(Role::client | server) -> #connection_states{}
current_connection_state(Connection_states::#connection_states{}, X2::read | write) -> #connection_state{}
pending_connection_state(Connection_states::#connection_states{}, X2::read | write) -> #connection_state{}
update_security_params(Security_parameters::#security_parameters{}, Security_parameters::#security_parameters{}, Connection_states::#connection_states{}) -> #connection_states{}
set_mac_secret(ClientWriteMacSecret::binary(), ServerWriteMacSecret::binary(), X3::client | server, Connection_states::#connection_states{}) -> #connection_states{}
set_master_secret(MasterSecret::binary(), Connection_states::#connection_states{}) -> #connection_states{}
set_renegotiation_flag(Flag::boolean(), Connection_states::#connection_states{}) -> #connection_states{}
set_client_verify_data(X1::current_read | current_write | current_both, Data::binary(), Connection_states::#connection_states{}) -> #connection_states{}
set_server_verify_data(X1::current_read | current_write | current_both, Data::binary(), Connection_states::#connection_states{}) -> #connection_states{}
activate_pending_connection_state(Connection_states::#connection_states{}, X2::read | write) -> #connection_states{}
set_pending_cipher_state(Connection_states::#connection_states{}, Cipher_state::#cipher_state{}, Cipher_state::#cipher_state{}, X4::client | server) -> #connection_states{}
get_tls_records(Data::binary(), Buffer::binary()) -> {[binary()], binary()} | #alert{}
protocol_version(X1::tls_atom_version() | tls_version()) -> tls_version() | tls_atom_version()
lowest_protocol_version(Version::tls_version(), X2::tls_version()) -> tls_version()
highest_protocol_version(Versions::[tls_version()]) -> tls_version()
supported_protocol_versions() -> [tls_version()]
is_acceptable_version(X1::tls_version()) -> boolean()
compressions() -> [binary()]
decode_cipher_text(Ssl_tls::#ssl_tls{}, Connection_states::#connection_states{}) -> {#ssl_tls{}, #connection_states{}} | #alert{}
encode_data(Frag::binary(), Version::tls_version(), Connection_states::#connection_states{}) -> {iolist(), #connection_states{}}
encode_handshake(Frag::iolist(), Version::tls_version(), Connection_states::#connection_states{}) -> {iolist(), #connection_states{}}
encode_alert_record(Alert::#alert{}, Version::tls_version(), Connection_states::#connection_states{}) -> {iolist(), #connection_states{}}
encode_change_cipher_spec(Version::tls_version(), Connection_states::#connection_states{}) -> {iolist(), #connection_states{}}
Functions
init_connection_states(Role::client | server) -> #connection_states{}
current_connection_state(Connection_states::#connection_states{}, X2::read | write) -> #connection_state{}
pending_connection_state(Connection_states::#connection_states{}, X2::read | write) -> #connection_state{}
update_security_params(Security_parameters::#security_parameters{}, Security_parameters::#security_parameters{}, Connection_states::#connection_states{}) -> #connection_states{}
set_mac_secret(ClientWriteMacSecret::binary(), ServerWriteMacSecret::binary(), X3::client | server, Connection_states::#connection_states{}) -> #connection_states{}
set_master_secret(MasterSecret::binary(), Connection_states::#connection_states{}) -> #connection_states{}
set_renegotiation_flag(Flag::boolean(), Connection_states::#connection_states{}) -> #connection_states{}
set_client_verify_data(X1::current_read | current_write | current_both, Data::binary(), Connection_states::#connection_states{}) -> #connection_states{}
set_server_verify_data(X1::current_read | current_write | current_both, Data::binary(), Connection_states::#connection_states{}) -> #connection_states{}
activate_pending_connection_state(Connection_states::#connection_states{}, X2::read | write) -> #connection_states{}
set_pending_cipher_state(Connection_states::#connection_states{}, Cipher_state::#cipher_state{}, Cipher_state::#cipher_state{}, X4::client | server) -> #connection_states{}
get_tls_records(Data::binary(), Buffer::binary()) -> {[binary()], binary()} | #alert{}
protocol_version(X1::tls_atom_version() | tls_version()) -> tls_version() | tls_atom_version()
lowest_protocol_version(Version::tls_version(), X2::tls_version()) -> tls_version()
highest_protocol_version(Versions::[tls_version()]) -> tls_version()
supported_protocol_versions() -> [tls_version()]
is_acceptable_version(X1::tls_version()) -> boolean()
compressions() -> [binary()]
decode_cipher_text(Ssl_tls::#ssl_tls{}, Connection_states::#connection_states{}) -> {#ssl_tls{}, #connection_states{}} | #alert{}
encode_data(Frag::binary(), Version::tls_version(), Connection_states::#connection_states{}) -> {iolist(), #connection_states{}}
encode_handshake(Frag::iolist(), Version::tls_version(), Connection_states::#connection_states{}) -> {iolist(), #connection_states{}}
encode_alert_record(Alert::#alert{}, Version::tls_version(), Connection_states::#connection_states{}) -> {iolist(), #connection_states{}}
encode_change_cipher_spec(Version::tls_version(), Connection_states::#connection_states{}) -> {iolist(), #connection_states{}}
View Functions
- init_connection_states/1
- current_connection_state/2
- pending_connection_state/2
- update_security_params/3
- set_mac_secret/1
- set_master_secret/1
- set_renegotiation_flag/1
- set_client_verify_data/2
- set_server_verify_data/2
- activate_pending_connection_state/2
- set_pending_cipher_state/4
- get_tls_records/1
- protocol_version/1
- lowest_protocol_version/1
- highest_protocol_version/1
- supported_protocol_versions/0
- is_acceptable_version/1
- compressions/0
- decode_cipher_text/2
- encode_data/1
- encode_handshake/1
- encode_alert_record/2
- encode_change_cipher_spec/1