Botan  2.8.0
Crypto and TLS for C++11
Public Member Functions | Static Public Member Functions | List of all members
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)
 
std::vector< uint8_t > serialize () const override
 
Handshake_Extension_Type type () const override
 

Static Public Member Functions

static Handshake_Extension_Type static_type ()
 

Detailed Description

Extended Master Secret Extension (RFC 7627)

Definition at line 347 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 478 of file tls_extensions.cpp.

480  {
481  if(extension_size != 0)
482  throw Decoding_Error("Invalid extended_master_secret extension");
483  }

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 357 of file tls_extensions.h.

357 { return false; }

◆ serialize()

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

Implements Botan::TLS::Extension.

Definition at line 485 of file tls_extensions.cpp.

486  {
487  return std::vector<uint8_t>();
488  }

◆ static_type()

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

◆ type()

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

Implements Botan::TLS::Extension.

Definition at line 353 of file tls_extensions.h.

References static_type().

353 { return static_type(); }
static Handshake_Extension_Type static_type()

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