Botan 3.6.1
Crypto and TLS for C&
|
#include <tls_extensions.h>
Public Member Functions | |
Application_Layer_Protocol_Notification (const std::vector< std::string > &protocols) | |
Application_Layer_Protocol_Notification (std::string_view protocol) | |
Application_Layer_Protocol_Notification (TLS_Data_Reader &reader, uint16_t extension_size, Connection_Side from) | |
bool | empty () const override |
virtual bool | is_implemented () const |
const std::vector< std::string > & | protocols () const |
std::vector< uint8_t > | serialize (Connection_Side whoami) const override |
std::string | single_protocol () const |
Extension_Code | type () const override |
Static Public Member Functions | |
static Extension_Code | static_type () |
ALPN (RFC 7301)
Definition at line 172 of file tls_extensions.h.
|
inlineexplicit |
Single protocol, used by server
Definition at line 185 of file tls_extensions.h.
|
inlineexplicit |
List of protocols, used by client
Definition at line 191 of file tls_extensions.h.
Botan::TLS::Application_Layer_Protocol_Notification::Application_Layer_Protocol_Notification | ( | TLS_Data_Reader & | reader, |
uint16_t | extension_size, | ||
Connection_Side | from ) |
Definition at line 301 of file tls_extensions.cpp.
References Botan::TLS::TLS_Data_Reader::get_string(), Botan::TLS::TLS_Data_Reader::get_uint16_t(), and Botan::TLS::Server.
|
inlineoverridevirtual |
Implements Botan::TLS::Extension.
Definition at line 198 of file tls_extensions.h.
|
inlinevirtualinherited |
Reimplemented in Botan::TLS::Unknown_Extension.
Definition at line 116 of file tls_extensions.h.
|
inline |
Definition at line 178 of file tls_extensions.h.
|
overridevirtual |
Implements Botan::TLS::Extension.
Definition at line 348 of file tls_extensions.cpp.
References Botan::TLS::append_tls_length_value(), Botan::cast_char_ptr_to_uint8(), and Botan::get_byte().
std::string Botan::TLS::Application_Layer_Protocol_Notification::single_protocol | ( | ) | const |
Definition at line 343 of file tls_extensions.cpp.
References BOTAN_STATE_CHECK.
|
inlinestatic |
Definition at line 174 of file tls_extensions.h.
|
inlineoverridevirtual |
Implements Botan::TLS::Extension.
Definition at line 176 of file tls_extensions.h.