1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:37:35 +00:00

LibTLS: Update HandshakeType value names to match IANA registry values

This commit is contained in:
stelar7 2023-04-14 00:03:39 +02:00 committed by Sam Atkins
parent 611a235a52
commit c30ee1b89b
5 changed files with 51 additions and 34 deletions

View file

@ -338,7 +338,7 @@ ByteBuffer TLSv12::build_certificate()
}
}
builder.append((u8)HandshakeType::CertificateMessage);
builder.append((u8)HandshakeType::CERTIFICATE);
if (!total_certificate_size) {
dbgln_if(TLS_DEBUG, "No certificates, sending empty certificate message");
@ -370,7 +370,7 @@ ByteBuffer TLSv12::build_client_key_exchange()
}
PacketBuilder builder { ContentType::HANDSHAKE, m_context.options.version };
builder.append((u8)HandshakeType::ClientKeyExchange);
builder.append((u8)HandshakeType::CLIENT_KEY_EXCHANGE_RESERVED);
switch (get_key_exchange_algorithm(m_context.cipher)) {
case KeyExchangeAlgorithm::RSA: