Botan 3.6.1
Crypto and TLS for C&
|
#include <tls_messages.h>
Classes | |
class | Settings |
Public Member Functions | |
uint16_t | ciphersuite () const |
uint8_t | compression_method () const |
std::set< Extension_Code > | extension_types () const |
const Extensions & | extensions () const |
Protocol_Version | legacy_version () const |
std::string | next_protocol () const |
bool | prefers_compressed_ec_points () const |
const std::vector< uint8_t > & | random () const |
std::optional< Protocol_Version > | random_signals_downgrade () const |
std::vector< uint8_t > | renegotiation_info () const |
bool | secure_renegotiation () const |
Protocol_Version | selected_version () const override |
std::vector< uint8_t > | serialize () const override |
Server_Hello_12 (const std::vector< uint8_t > &buf) | |
Server_Hello_12 (Handshake_IO &io, Handshake_Hash &hash, const Policy &policy, Callbacks &cb, RandomNumberGenerator &rng, const std::vector< uint8_t > &secure_reneg_info, const Client_Hello_12 &client_hello, const Session &resumed_session, bool offer_session_ticket, std::string_view next_protocol) | |
Server_Hello_12 (Handshake_IO &io, Handshake_Hash &hash, const Policy &policy, Callbacks &cb, RandomNumberGenerator &rng, const std::vector< uint8_t > &secure_reneg_info, const Client_Hello_12 &client_hello, const Settings &settings, std::string_view next_protocol) | |
const Session_ID & | session_id () const |
uint16_t | srtp_profile () const |
bool | supports_certificate_status_message () const |
bool | supports_encrypt_then_mac () const |
bool | supports_extended_master_secret () const |
bool | supports_session_ticket () const |
Handshake_Type | type () const override |
std::string | type_string () const |
virtual Handshake_Type | wire_type () const |
Protected Member Functions | |
Server_Hello_12 (std::unique_ptr< Server_Hello_Internal > data) | |
Protected Attributes | |
std::unique_ptr< Server_Hello_Internal > | m_data |
Friends | |
class | Server_Hello_13 |
Definition at line 307 of file tls_messages.h.
Botan::TLS::Server_Hello_12::Server_Hello_12 | ( | Handshake_IO & | io, |
Handshake_Hash & | hash, | ||
const Policy & | policy, | ||
Callbacks & | cb, | ||
RandomNumberGenerator & | rng, | ||
const std::vector< uint8_t > & | secure_reneg_info, | ||
const Client_Hello_12 & | client_hello, | ||
const Settings & | settings, | ||
std::string_view | next_protocol ) |
Definition at line 231 of file msg_server_hello.cpp.
References Botan::TLS::Ciphersuite::by_id(), Botan::TLS::EcPointFormats, Botan::TLS::Client_Hello::extension_types(), Botan::TLS::Server_Hello::m_data, Botan::TLS::Policy::negotiate_encrypt_then_mac(), next_protocol(), Botan::TLS::Server_Hello_12::Settings::offer_session_ticket(), Botan::TLS::Client_Hello_12::secure_renegotiation(), Botan::TLS::Policy::support_cert_status_message(), Botan::TLS::Client_Hello::supports_alpn(), Botan::TLS::Client_Hello_12::supports_cert_status_message(), Botan::TLS::Client_Hello_12::supports_encrypt_then_mac(), Botan::TLS::Client_Hello_12::supports_extended_master_secret(), and Botan::TLS::Client_Hello_12::supports_session_ticket().
Botan::TLS::Server_Hello_12::Server_Hello_12 | ( | Handshake_IO & | io, |
Handshake_Hash & | hash, | ||
const Policy & | policy, | ||
Callbacks & | cb, | ||
RandomNumberGenerator & | rng, | ||
const std::vector< uint8_t > & | secure_reneg_info, | ||
const Client_Hello_12 & | client_hello, | ||
const Session & | resumed_session, | ||
bool | offer_session_ticket, | ||
std::string_view | next_protocol ) |
Definition at line 304 of file msg_server_hello.cpp.
References Botan::TLS::make_hello_random(), Botan::TLS::Policy::negotiate_encrypt_then_mac(), next_protocol(), Botan::TLS::Client_Hello::supports_alpn(), Botan::TLS::Client_Hello_12::supports_encrypt_then_mac(), and Botan::TLS::Client_Hello_12::supports_extended_master_secret().
|
explicit |
Definition at line 352 of file msg_server_hello.cpp.
|
explicitprotected |
Definition at line 355 of file msg_server_hello.cpp.
References Botan::TLS::Server_Hello::m_data.
|
inherited |
Definition at line 218 of file msg_server_hello.cpp.
References Botan::TLS::Server_Hello::m_data.
Referenced by Botan::TLS::Client_Hello_13::retry().
uint8_t Botan::TLS::Server_Hello::compression_method | ( | ) | const |
Definition at line 300 of file msg_server_hello.cpp.
std::set< Extension_Code > Botan::TLS::Server_Hello::extension_types | ( | ) | const |
Definition at line 298 of file msg_server_hello.cpp.
|
inherited |
Definition at line 226 of file msg_server_hello.cpp.
References Botan::TLS::Server_Hello::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 Botan::TLS::Server_Hello_13::Server_Hello_13().
Protocol_Version Botan::TLS::Server_Hello::legacy_version | ( | ) | const |
Definition at line 301 of file msg_server_hello.cpp.
Referenced by selected_version().
std::string Botan::TLS::Server_Hello_12::next_protocol | ( | ) | const |
Definition at line 404 of file msg_server_hello.cpp.
References Botan::TLS::Server_Hello::m_data.
Referenced by Server_Hello_12(), and Server_Hello_12().
bool Botan::TLS::Server_Hello_12::prefers_compressed_ec_points | ( | ) | const |
Definition at line 411 of file msg_server_hello.cpp.
References Botan::TLS::Server_Hello::m_data.
const std::vector< uint8_t > & Botan::TLS::Server_Hello::random | ( | ) | const |
Definition at line 299 of file msg_server_hello.cpp.
std::optional< Protocol_Version > Botan::TLS::Server_Hello_12::random_signals_downgrade | ( | ) | const |
Return desired downgrade version indicated by hello random, if any.
Definition at line 418 of file msg_server_hello.cpp.
References Botan::load_be(), and Botan::TLS::Server_Hello::m_data.
std::vector< uint8_t > Botan::TLS::Server_Hello_12::renegotiation_info | ( | ) | const |
Definition at line 369 of file msg_server_hello.cpp.
References Botan::TLS::Server_Hello::m_data.
Referenced by Botan::TLS::Channel_Impl_12::secure_renegotiation_check().
bool Botan::TLS::Server_Hello_12::secure_renegotiation | ( | ) | const |
Definition at line 365 of file msg_server_hello.cpp.
References Botan::TLS::Server_Hello::m_data.
Referenced by Botan::TLS::Channel_Impl_12::secure_renegotiation_check().
|
overridevirtual |
Implements Botan::TLS::Server_Hello.
Definition at line 361 of file msg_server_hello.cpp.
References legacy_version().
|
overridevirtualinherited |
Implements Botan::TLS::Handshake_Message.
Definition at line 178 of file msg_server_hello.cpp.
References Botan::TLS::append_tls_length_value(), Botan::get_byte(), Botan::TLS::Server_Hello::random(), and Botan::TLS::Server.
|
inherited |
Definition at line 214 of file msg_server_hello.cpp.
References Botan::TLS::Server_Hello::m_data.
uint16_t Botan::TLS::Server_Hello_12::srtp_profile | ( | ) | const |
Definition at line 392 of file msg_server_hello.cpp.
References Botan::TLS::Server_Hello::m_data.
bool Botan::TLS::Server_Hello_12::supports_certificate_status_message | ( | ) | const |
Definition at line 384 of file msg_server_hello.cpp.
References Botan::TLS::Server_Hello::m_data.
bool Botan::TLS::Server_Hello_12::supports_encrypt_then_mac | ( | ) | const |
Definition at line 380 of file msg_server_hello.cpp.
References Botan::TLS::Server_Hello::m_data.
bool Botan::TLS::Server_Hello_12::supports_extended_master_secret | ( | ) | const |
Definition at line 376 of file msg_server_hello.cpp.
References Botan::TLS::Server_Hello::m_data.
bool Botan::TLS::Server_Hello_12::supports_session_ticket | ( | ) | const |
Definition at line 388 of file msg_server_hello.cpp.
References Botan::TLS::Server_Hello::m_data.
|
overridevirtualinherited |
Implements Botan::TLS::Handshake_Message.
Definition at line 198 of file msg_server_hello.cpp.
References Botan::TLS::ServerHello.
|
inherited |
Definition at line 19 of file tls_handshake_state.cpp.
References Botan::TLS::handshake_type_to_string(), and Botan::TLS::Handshake_Message::type().
|
inlinevirtualinherited |
Reimplemented in Botan::TLS::Hello_Retry_Request.
Definition at line 39 of file tls_handshake_msg.h.
Referenced by Botan::TLS::Stream_Handshake_IO::send().
|
friend |
Definition at line 359 of file tls_messages.h.
|
protectedinherited |
Definition at line 304 of file tls_messages.h.
Referenced by Botan::TLS::Server_Hello_13::basic_validation(), Botan::TLS::Server_Hello::ciphersuite(), Botan::TLS::Server_Hello::compression_method(), Botan::TLS::Server_Hello::extension_types(), Botan::TLS::Server_Hello::extensions(), Botan::TLS::Hello_Retry_Request::Hello_Retry_Request(), Botan::TLS::Server_Hello::legacy_version(), next_protocol(), prefers_compressed_ec_points(), Botan::TLS::Server_Hello::random(), random_signals_downgrade(), Botan::TLS::Server_Hello_13::random_signals_downgrade(), renegotiation_info(), secure_renegotiation(), Botan::TLS::Server_Hello_13::selected_version(), Server_Hello_12(), Server_Hello_12(), Botan::TLS::Server_Hello_13::Server_Hello_13(), Botan::TLS::Server_Hello_13::Server_Hello_13(), Botan::TLS::Server_Hello_13::Server_Hello_13(), Botan::TLS::Server_Hello::session_id(), srtp_profile(), supports_certificate_status_message(), supports_encrypt_then_mac(), supports_extended_master_secret(), and supports_session_ticket().