Botan 3.13.0
Crypto and TLS for C&
Botan::TLS::Server_Hello_Done Class Referencefinal

#include <tls_messages_12.h>

Inheritance diagram for Botan::TLS::Server_Hello_Done:
Botan::TLS::Handshake_Message

Public Member Functions

 Server_Hello_Done (Handshake_IO &io, Handshake_Hash &hash)
 Server_Hello_Done (std::span< const uint8_t > buf)
Handshake_Type type () const override
std::string type_string () const
virtual Handshake_Type wire_type () const

Detailed Description

Server Hello Done Message

Definition at line 385 of file tls_messages_12.h.

Constructor & Destructor Documentation

◆ Server_Hello_Done() [1/2]

Botan::TLS::Server_Hello_Done::Server_Hello_Done ( Handshake_IO & io,
Handshake_Hash & hash )
explicit

Definition at line 209 of file msg_server_hello_12.cpp.

209 {
210 hash.update(io.send(*this));
211}

References Botan::TLS::Handshake_IO::send(), and Botan::TLS::Handshake_Hash::update().

◆ Server_Hello_Done() [2/2]

Botan::TLS::Server_Hello_Done::Server_Hello_Done ( std::span< const uint8_t > buf)
explicit

Definition at line 216 of file msg_server_hello_12.cpp.

216 {
217 if(!buf.empty()) {
218 throw Decoding_Error("Server_Hello_Done: Must be empty, and is not");
219 }
220}

Member Function Documentation

◆ type()

Handshake_Type Botan::TLS::Server_Hello_Done::type ( ) const
inlineoverridevirtual

Return the TLS handshake type code

Returns
the message type

Implements Botan::TLS::Handshake_Message.

Definition at line 387 of file tls_messages_12.h.

References Botan::TLS::ServerHelloDone.

◆ type_string()

std::string Botan::TLS::Handshake_Message::type_string ( ) const
inherited

Return a free-form string describing this message type

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

Return the wire encoding of the message type code

Note
This is usually equal to type with the exception of a TLS 1.3 Helloy Retry Request.
Returns
the wire representation of the message's type

Reimplemented in Botan::TLS::Hello_Retry_Request.

Definition at line 47 of file tls_handshake_msg.h.

47{ return type(); }

References type().

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


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