tls_record

Types


tls_atom_version() = sslv3 | tlsv1 | 'tlsv1.1' | 'tlsv1.2'

tls_version() = ssl_record:ssl_version()

Functions


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

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

decode_cipher_text(Ssl_tls::#ssl_tls{}, Connection_states::#connection_states{}, PaddingCheck::boolean()) -> {#ssl_tls{}, #connection_states{}} | #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()

is_higher(X1, X2) -> term()

supported_protocol_versions() -> [tls_version()]

is_acceptable_version(X1::tls_version()) -> boolean()

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