dtls_record

DATA TYPES

tls_atom_version() = sslv3 | tlsv1 | 'tlsv1.1' | 'tlsv1.2'
tls_version() = {integer(), integer()}

Functions


get_dtls_records(Data::binary(), Buffer::binary()) -> {[binary()], binary()} | #alert{}

encode_plain_text(Type, Version, Data, Connection_states) -> term()

decode_cipher_text(Ssl_tls, Connection_states) -> term()

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(Vers::[tls_version()]) -> tls_version()

supported_protocol_versions() -> [tls_version()]

is_acceptable_version(Version::tls_version(), Supported::[tls_version()]) -> boolean()

init_connection_state_seq(X1::tls_version(), Connection_states::#connection_states{}) -> #connection_state{}

current_connection_state_epoch(Connection_states::#connection_states{}, X2::read | write) -> integer()

connection_state_by_epoch(Connection_states::#connection_states{}, Epoch::integer(), X3::read | write) -> #connection_state{}

set_connection_state_by_epoch(Connection_states::#connection_states{}, Connection_state::#connection_state{}, X3::read | write) -> #connection_states{}