mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:07:45 +00:00
LibTLS: Rename MessageType to ContentType
This matches the wording used in the TLS RFC
This commit is contained in:
parent
1cfc630d13
commit
082e64e167
6 changed files with 52 additions and 24 deletions
|
@ -309,7 +309,7 @@ void TLSv12::build_ecdhe_rsa_pre_master_secret(PacketBuilder& builder)
|
|||
|
||||
ByteBuffer TLSv12::build_certificate()
|
||||
{
|
||||
PacketBuilder builder { MessageType::Handshake, m_context.options.version };
|
||||
PacketBuilder builder { ContentType::HANDSHAKE, m_context.options.version };
|
||||
|
||||
Vector<Certificate const&> certificates;
|
||||
Vector<Certificate>* local_certificates = nullptr;
|
||||
|
@ -369,7 +369,7 @@ ByteBuffer TLSv12::build_client_key_exchange()
|
|||
return {};
|
||||
}
|
||||
|
||||
PacketBuilder builder { MessageType::Handshake, m_context.options.version };
|
||||
PacketBuilder builder { ContentType::HANDSHAKE, m_context.options.version };
|
||||
builder.append((u8)HandshakeType::ClientKeyExchange);
|
||||
|
||||
switch (get_key_exchange_algorithm(m_context.cipher)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue