Botan 3.6.1
Crypto and TLS for C&
Botan::TLS::Handshake_Message Class Referenceabstract

#include <tls_handshake_msg.h>

Inheritance diagram for Botan::TLS::Handshake_Message:
Botan::TLS::Certificate_12 Botan::TLS::Certificate_13 Botan::TLS::Certificate_Request_12 Botan::TLS::Certificate_Request_13 Botan::TLS::Certificate_Status Botan::TLS::Certificate_Verify Botan::TLS::Change_Cipher_Spec Botan::TLS::Client_Hello Botan::TLS::Client_Key_Exchange Botan::TLS::Encrypted_Extensions Botan::TLS::Finished Botan::TLS::Hello_Request Botan::TLS::Hello_Verify_Request Botan::TLS::Key_Update Botan::TLS::New_Session_Ticket_12 Botan::TLS::New_Session_Ticket_13 Botan::TLS::Server_Hello Botan::TLS::Server_Hello_Done Botan::TLS::Server_Key_Exchange

Public Member Functions

 Handshake_Message ()=default
 
 Handshake_Message (const Handshake_Message &)=delete
 
 Handshake_Message (Handshake_Message &&)=default
 
Handshake_Messageoperator= (const Handshake_Message &)=delete
 
Handshake_Messageoperator= (Handshake_Message &&)=default
 
virtual std::vector< uint8_t > serialize () const =0
 
virtual Handshake_Type type () const =0
 
std::string type_string () const
 
virtual Handshake_Type wire_type () const
 
virtual ~Handshake_Message ()=default
 

Detailed Description

TLS Handshake Message Base Class

Definition at line 24 of file tls_handshake_msg.h.

Constructor & Destructor Documentation

◆ ~Handshake_Message()

virtual Botan::TLS::Handshake_Message::~Handshake_Message ( )
virtualdefault

◆ Handshake_Message() [1/3]

Botan::TLS::Handshake_Message::Handshake_Message ( )
default

◆ Handshake_Message() [2/3]

Botan::TLS::Handshake_Message::Handshake_Message ( const Handshake_Message & )
delete

◆ Handshake_Message() [3/3]

Botan::TLS::Handshake_Message::Handshake_Message ( Handshake_Message && )
default

Member Function Documentation

◆ operator=() [1/2]

Handshake_Message & Botan::TLS::Handshake_Message::operator= ( const Handshake_Message & )
delete

◆ operator=() [2/2]

Handshake_Message & Botan::TLS::Handshake_Message::operator= ( Handshake_Message && )
default

◆ serialize()

◆ type()

◆ type_string()

std::string Botan::TLS::Handshake_Message::type_string ( ) const
Returns
string representation of this message type

Definition at line 19 of file tls_handshake_state.cpp.

19 {
21}
virtual Handshake_Type type() const =0
const char * handshake_type_to_string(Handshake_Type type)

References Botan::TLS::handshake_type_to_string(), and type().

◆ wire_type()

virtual Handshake_Type Botan::TLS::Handshake_Message::wire_type ( ) const
inlinevirtual
Returns
the wire representation of the message's type

Reimplemented in Botan::TLS::Hello_Retry_Request.

Definition at line 39 of file tls_handshake_msg.h.

39 {
40 // Usually equal to the Handshake_Type enum value,
41 // with the exception of TLS 1.3 Hello Retry Request.
42 return type();
43 }

Referenced by Botan::TLS::Stream_Handshake_IO::send().


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