Botan 3.6.1
Crypto and TLS for C&
Botan::TLS::Extended_Master_Secret Class Referencefinal

#include <tls_extensions.h>

Inheritance diagram for Botan::TLS::Extended_Master_Secret:
Botan::TLS::Extension

Public Member Functions

bool empty () const override
 
 Extended_Master_Secret ()=default
 
 Extended_Master_Secret (TLS_Data_Reader &reader, uint16_t extension_size)
 
virtual bool is_implemented () 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 ()
 

Detailed Description

Extended Master Secret Extension (RFC 7627)

Definition at line 460 of file tls_extensions.h.

Constructor & Destructor Documentation

◆ Extended_Master_Secret() [1/2]

Botan::TLS::Extended_Master_Secret::Extended_Master_Secret ( )
default

◆ Extended_Master_Secret() [2/2]

Botan::TLS::Extended_Master_Secret::Extended_Master_Secret ( TLS_Data_Reader & reader,
uint16_t extension_size )

Definition at line 687 of file tls_extensions.cpp.

687 {
688 if(extension_size != 0) {
689 throw Decoding_Error("Invalid extended_master_secret extension");
690 }
691}

Member Function Documentation

◆ empty()

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

Implements Botan::TLS::Extension.

Definition at line 468 of file tls_extensions.h.

468{ return false; }

◆ is_implemented()

virtual bool Botan::TLS::Extension::is_implemented ( ) const
inlinevirtualinherited
Returns
true if this extension is known and implemented by Botan

Reimplemented in Botan::TLS::Unknown_Extension.

Definition at line 116 of file tls_extensions.h.

116{ return true; }

◆ serialize()

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

Implements Botan::TLS::Extension.

Definition at line 693 of file tls_extensions.cpp.

693 {
694 return std::vector<uint8_t>();
695}

◆ static_type()

static Extension_Code Botan::TLS::Extended_Master_Secret::static_type ( )
inlinestatic

Definition at line 462 of file tls_extensions.h.

◆ type()

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

Implements Botan::TLS::Extension.

Definition at line 464 of file tls_extensions.h.

464{ return static_type(); }
static Extension_Code static_type()

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