|
Botan 3.11.0
Crypto and TLS for C&
|
#include <tls_messages.h>
Public Member Functions | |
| uint16_t | ciphersuite () const |
| const Extensions & | extensions () const |
| std::optional< Protocol_Version > | random_signals_downgrade () const |
| Protocol_Version | selected_version () const final |
| std::vector< uint8_t > | serialize () const override |
| Server_Hello_12_Shim (const std::vector< uint8_t > &buf) | |
| const Session_ID & | session_id () const |
| Handshake_Type | type () const override |
| std::string | type_string () const |
| virtual Handshake_Type | wire_type () const |
Protected Member Functions | |
| uint8_t | compression_method () const |
| std::set< Extension_Code > | extension_types () const |
| Protocol_Version | legacy_version () const |
| const std::vector< uint8_t > & | random () const |
| Server_Hello_12_Shim (std::unique_ptr< Server_Hello_Internal > data) | |
Protected Attributes | |
| std::unique_ptr< Server_Hello_Internal > | m_data |
Friends | |
| class | Server_Hello_13 |
Basic implementation of Server_Hello from TLS 1.2. The full implementation is in Server_Hello_12 in the tls12 module. This is meant to be used by the TLS 1.3 implementation to parse, validate and understand a downgrade request.
Definition at line 210 of file tls_messages.h.
|
explicit |
Definition at line 157 of file msg_server_hello.cpp.
References Server_Hello_12_Shim().
Referenced by Server_Hello_12_Shim(), and Server_Hello_13.
|
explicitprotected |
Definition at line 160 of file msg_server_hello.cpp.
References Botan::TLS::Server_Hello::m_data, and Botan::TLS::Server_Hello::Server_Hello().
|
inherited |
Definition at line 145 of file msg_server_hello.cpp.
References m_data.
Referenced by Botan::TLS::Client_Hello_13::retry(), Botan::TLS::Server_Hello_12::Server_Hello_12(), and ~Server_Hello().
|
protectedinherited |
Definition at line 137 of file msg_server_hello.cpp.
References m_data.
Referenced by Botan::TLS::Server_Hello_13::basic_validation(), and selected_version().
|
protectedinherited |
Definition at line 149 of file msg_server_hello.cpp.
References m_data.
Referenced by selected_version().
|
inherited |
Definition at line 153 of file msg_server_hello.cpp.
References m_data.
Referenced by Botan::TLS::Server_Hello_13::basic_validation(), Botan::TLS::Client_Hello_13::retry(), Botan::TLS::Server_Hello_13::Server_Hello_13(), Botan::TLS::Server_Hello_13::Server_Hello_13(), and ~Server_Hello().
|
protectedinherited |
Definition at line 129 of file msg_server_hello.cpp.
References m_data.
Referenced by Botan::TLS::Server_Hello_13::basic_validation(), selected_version(), and Botan::TLS::Server_Hello_12_Shim::selected_version().
|
protectedinherited |
Definition at line 133 of file msg_server_hello.cpp.
References m_data.
Referenced by selected_version().
| std::optional< Protocol_Version > Botan::TLS::Server_Hello_12_Shim::random_signals_downgrade | ( | ) | const |
Return desired downgrade version indicated by hello random, if any.
Definition at line 171 of file msg_server_hello.cpp.
References Botan::TLS::DOWNGRADE_TLS11, Botan::TLS::DOWNGRADE_TLS12, Botan::load_be(), and Botan::TLS::Server_Hello::m_data.
Referenced by Server_Hello_13.
|
finalvirtual |
Implements Botan::TLS::Server_Hello.
Definition at line 167 of file msg_server_hello.cpp.
References Botan::TLS::Server_Hello::legacy_version().
Referenced by Server_Hello_13.
|
overridevirtualinherited |
Implements Botan::TLS::Handshake_Message.
Definition at line 105 of file msg_server_hello.cpp.
References Botan::TLS::append_tls_length_value(), Botan::get_byte(), m_data, serialize(), Botan::TLS::Server, and Server_Hello().
Referenced by serialize(), and ~Server_Hello().
|
inherited |
Definition at line 141 of file msg_server_hello.cpp.
References m_data.
Referenced by Botan::TLS::Hello_Retry_Request::Hello_Retry_Request(), Botan::TLS::Server_Hello_12::Server_Hello_12(), Botan::TLS::Server_Hello_12::Server_Hello_12(), Botan::TLS::Server_Hello_13::Server_Hello_13(), and ~Server_Hello().
|
overridevirtualinherited |
Implements Botan::TLS::Handshake_Message.
Definition at line 125 of file msg_server_hello.cpp.
References Botan::TLS::ServerHello.
Referenced by ~Server_Hello().
|
inherited |
Definition at line 21 of file tls_handshake_state.cpp.
References Botan::TLS::handshake_type_to_string(), and type().
|
inlinevirtualinherited |
Reimplemented in Botan::TLS::Hello_Retry_Request.
Definition at line 39 of file tls_handshake_msg.h.
References type().
Referenced by Botan::TLS::Stream_Handshake_IO::send().
|
friend |
Definition at line 215 of file tls_messages.h.
References random_signals_downgrade(), selected_version(), Server_Hello_12_Shim(), and Server_Hello_13.
Referenced by Server_Hello_13.
|
protectedinherited |
Definition at line 202 of file tls_messages.h.
Referenced by Botan::TLS::Server_Hello_13::basic_validation(), ciphersuite(), compression_method(), extension_types(), extensions(), Botan::TLS::Hello_Retry_Request::Hello_Retry_Request(), legacy_version(), Botan::TLS::Server_Hello_12::next_protocol(), Botan::TLS::Server_Hello_12::prefers_compressed_ec_points(), random(), Botan::TLS::Server_Hello_12_Shim::random_signals_downgrade(), Botan::TLS::Server_Hello_13::random_signals_downgrade(), Botan::TLS::Server_Hello_12::renegotiation_info(), Botan::TLS::Server_Hello_12::secure_renegotiation(), Botan::TLS::Server_Hello_13::selected_version(), serialize(), Server_Hello(), Botan::TLS::Server_Hello_12::Server_Hello_12(), Botan::TLS::Server_Hello_12_Shim::Server_Hello_12_Shim(), Botan::TLS::Server_Hello_13::Server_Hello_13(), Botan::TLS::Server_Hello_13::Server_Hello_13(), Botan::TLS::Server_Hello_13::Server_Hello_13(), session_id(), Botan::TLS::Server_Hello_12::srtp_profile(), Botan::TLS::Server_Hello_12::supports_certificate_status_message(), Botan::TLS::Server_Hello_12::supports_encrypt_then_mac(), Botan::TLS::Server_Hello_12::supports_extended_master_secret(), and Botan::TLS::Server_Hello_12::supports_session_ticket().