Botan 3.0.0-alpha0
Crypto and TLS for C&
Public Member Functions | List of all members
Botan::TLS::Server_Hello_Done Class Referencefinal

#include <tls_messages.h>

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

Public Member Functions

 Server_Hello_Done (const std::vector< uint8_t > &buf)
 
 Server_Hello_Done (Handshake_IO &io, Handshake_Hash &hash)
 
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 833 of file tls_messages.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 452 of file msg_server_hello.cpp.

454 {
455 hash.update(io.send(*this));
456 }
MechanismType hash

References hash, and Botan::TLS::Handshake_IO::send().

◆ Server_Hello_Done() [2/2]

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

Definition at line 461 of file msg_server_hello.cpp.

462 {
463 if(!buf.empty())
464 { throw Decoding_Error("Server_Hello_Done: Must be empty, and is not"); }
465 }

Member Function Documentation

◆ type()

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

Implements Botan::TLS::Handshake_Message.

Definition at line 836 of file tls_messages.h.

836{ return SERVER_HELLO_DONE; }
@ SERVER_HELLO_DONE
Definition: tls_magic.h:76

References Botan::TLS::SERVER_HELLO_DONE.

◆ type_string()

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

Definition at line 18 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 Botan::TLS::Handshake_Message::type().

◆ wire_type()

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

Definition at line 42 of file tls_handshake_msg.h.

43 {
44 // Usually equal to the Handshake_Type enum value,
45 // with the exception of TLS 1.3 Hello Retry Request.
46 return type();
47 }

References type.

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


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