Botan 3.5.0
Crypto and TLS for C&
Botan::TLS::Unknown_Extension Class Referencefinal

#include <tls_extensions.h>

Inheritance diagram for Botan::TLS::Unknown_Extension:
Botan::TLS::Extension

Public Member Functions

bool empty () const override
 
bool is_implemented () const override
 
std::vector< uint8_t > serialize (Connection_Side whoami) const override
 
Extension_Code type () const override
 
 Unknown_Extension (Extension_Code type, TLS_Data_Reader &reader, uint16_t extension_size)
 
const std::vector< uint8_t > & value ()
 

Detailed Description

Unknown extensions are deserialized as this type

Definition at line 886 of file tls_extensions.h.

Constructor & Destructor Documentation

◆ Unknown_Extension()

Botan::TLS::Unknown_Extension::Unknown_Extension ( Extension_Code type,
TLS_Data_Reader & reader,
uint16_t extension_size )

Definition at line 226 of file tls_extensions.cpp.

226 :
227 m_type(type), m_value(reader.get_fixed<uint8_t>(extension_size)) {}
Extension_Code type() const override

Member Function Documentation

◆ empty()

bool Botan::TLS::Unknown_Extension::empty ( ) const
inlineoverridevirtual
Returns
if we should encode this extension or not

Implements Botan::TLS::Extension.

Definition at line 894 of file tls_extensions.h.

894{ return false; }

◆ is_implemented()

bool Botan::TLS::Unknown_Extension::is_implemented ( ) const
inlineoverridevirtual
Returns
true if this extension is known and implemented by Botan

Reimplemented from Botan::TLS::Extension.

Definition at line 898 of file tls_extensions.h.

898{ return false; }

◆ serialize()

std::vector< uint8_t > Botan::TLS::Unknown_Extension::serialize ( Connection_Side whoami) const
overridevirtual
Returns
serialized binary for the extension

Implements Botan::TLS::Extension.

Definition at line 229 of file tls_extensions.cpp.

229 {
230 return m_value;
231}

◆ type()

Extension_Code Botan::TLS::Unknown_Extension::type ( ) const
inlineoverridevirtual
Returns
code number of the extension

Implements Botan::TLS::Extension.

Definition at line 896 of file tls_extensions.h.

896{ return m_type; }

◆ value()

const std::vector< uint8_t > & Botan::TLS::Unknown_Extension::value ( )
inline

Definition at line 892 of file tls_extensions.h.

892{ return m_value; }

The documentation for this class was generated from the following files: