|
Botan 3.13.0
Crypto and TLS for C&
|
#include <tls_extensions.h>
Public Member Functions | |
| bool | empty () const override |
| virtual bool | is_implemented () const |
| uint16_t | limit () const |
| Record_Size_Limit (TLS_Data_Reader &reader, uint16_t extension_size, Connection_Side from) | |
| Record_Size_Limit (uint16_t limit) | |
| std::vector< uint8_t > | serialize (Connection_Side whoami) const override |
| Extension_Code | type () const override |
Static Public Member Functions | |
| static Extension_Code | static_type () |
Record Size Limit (RFC 8449)
TODO: the record size limit is currently not honored by the TLS 1.2 stack
Definition at line 428 of file tls_extensions.h.
|
explicit |
Definition at line 871 of file tls_extensions.cpp.
References BOTAN_ARG_CHECK, limit(), and Botan::TLS::MAX_PLAINTEXT_SIZE.
| Botan::TLS::Record_Size_Limit::Record_Size_Limit | ( | TLS_Data_Reader & | reader, |
| uint16_t | extension_size, | ||
| Connection_Side | from ) |
Definition at line 877 of file tls_extensions.cpp.
References Botan::TLS::TLS_Data_Reader::get_uint16_t(), Botan::TLS::MAX_PLAINTEXT_SIZE, and Botan::TLS::Server.
|
inlineoverridevirtual |
Predicate if a TLS extension should be included or not
Implements Botan::TLS::Extension.
Definition at line 442 of file tls_extensions.h.
|
inlinevirtualinherited |
Predicate if the extension is known/implemented
Reimplemented in Botan::TLS::Unknown_Extension.
Definition at line 113 of file tls_extensions.h.
|
inline |
Definition at line 438 of file tls_extensions.h.
Referenced by Record_Size_Limit().
|
overridevirtual |
Serialize a TLS extension
| whoami | which peer we are acting as in the protocol |
Implements Botan::TLS::Extension.
Definition at line 911 of file tls_extensions.cpp.
References Botan::get_byte().
|
inlinestatic |
Definition at line 430 of file tls_extensions.h.
References Botan::TLS::RecordSizeLimit.
Referenced by type().
|
inlineoverridevirtual |
Return TLS extension code
Implements Botan::TLS::Extension.
Definition at line 432 of file tls_extensions.h.
References static_type().