Botan 3.11.0
Crypto and TLS for C&
Botan::TLS::Hello_Request Class Referencefinal

#include <tls_messages_12.h>

Inheritance diagram for Botan::TLS::Hello_Request:
Botan::TLS::Handshake_Message

Public Member Functions

 Hello_Request (const std::vector< uint8_t > &buf)
 Hello_Request (Handshake_IO &io)
Handshake_Type type () const override
std::string type_string () const
virtual Handshake_Type wire_type () const

Detailed Description

Hello Request Message

Definition at line 308 of file tls_messages_12.h.

Constructor & Destructor Documentation

◆ Hello_Request() [1/2]

Botan::TLS::Hello_Request::Hello_Request ( Handshake_IO & io)
explicit

Definition at line 282 of file msg_client_hello_12.cpp.

282 {
283 io.send(*this);
284}

References Botan::TLS::Handshake_IO::send().

◆ Hello_Request() [2/2]

Botan::TLS::Hello_Request::Hello_Request ( const std::vector< uint8_t > & buf)
explicit

Definition at line 286 of file msg_client_hello_12.cpp.

286 {
287 if(!buf.empty()) {
288 throw Decoding_Error("Bad Hello_Request, has non-zero size");
289 }
290}

Member Function Documentation

◆ type()

Handshake_Type Botan::TLS::Hello_Request::type ( ) const
inlineoverridevirtual
Returns
the message type

Implements Botan::TLS::Handshake_Message.

Definition at line 310 of file tls_messages_12.h.

References Botan::TLS::HelloRequest.

◆ type_string()

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

Definition at line 21 of file tls_handshake_state.cpp.

21 {
23}
virtual Handshake_Type type() const =0
const char * handshake_type_to_string(Handshake_Type type)
Definition tls_magic.cpp:15

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

◆ wire_type()

virtual Handshake_Type Botan::TLS::Handshake_Message::wire_type ( ) const
inlinevirtualinherited
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 }

References type().

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


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