Botan 3.8.1
Crypto and TLS for C&
|
#include <tls_extensions.h>
Public Member Functions | |
EarlyDataIndication (std::optional< uint32_t > max_early_data_size=std::nullopt) | |
EarlyDataIndication (TLS_Data_Reader &reader, uint16_t extension_size, Handshake_Type message_type) | |
bool | empty () const override |
virtual bool | is_implemented () const |
std::optional< uint32_t > | max_early_data_size () const |
std::vector< uint8_t > | serialize (Connection_Side whoami) const override |
Extension_Code | type () const override |
Static Public Member Functions | |
static Extension_Code | static_type () |
Indicates usage or support of early data as described in RFC 8446 4.2.10.
Definition at line 854 of file tls_extensions.h.
Botan::TLS::EarlyDataIndication::EarlyDataIndication | ( | TLS_Data_Reader & | reader, |
uint16_t | extension_size, | ||
Handshake_Type | message_type ) |
Definition at line 951 of file tls_extensions.cpp.
References Botan::TLS::TLS_Data_Reader::get_uint32_t(), and Botan::TLS::NewSessionTicket.
|
inline |
The max_early_data_size is exclusively provided by servers when using this extension in the NewSessionTicket message! Otherwise it stays std::nullopt and results in an empty extension. (RFC 8446 4.2.10).
Definition at line 873 of file tls_extensions.h.
References max_early_data_size().
|
overridevirtual |
Implements Botan::TLS::Extension.
Definition at line 969 of file tls_extensions.cpp.
|
inlinevirtualinherited |
Reimplemented in Botan::TLS::Unknown_Extension.
Definition at line 115 of file tls_extensions.h.
|
inline |
Definition at line 864 of file tls_extensions.h.
Referenced by Botan::TLS::New_Session_Ticket_13::early_data_byte_limit(), and EarlyDataIndication().
|
overridevirtual |
Implements Botan::TLS::Extension.
Definition at line 939 of file tls_extensions.cpp.
References Botan::get_byte().
|
inlinestatic |
Definition at line 856 of file tls_extensions.h.
References Botan::TLS::EarlyData.
Referenced by type(), and Botan::TLS::Client_Hello_13::validate_updates().
|
inlineoverridevirtual |
Implements Botan::TLS::Extension.
Definition at line 858 of file tls_extensions.h.
References static_type().