mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-21 09:49:21 +00:00
LibTLS: Rename AlertLevel Critial to FATAL
This matches the wording used in the TLS RFC
This commit is contained in:
parent
ca6b8bfe7f
commit
611a235a52
Notes:
sideshowbarker
2024-07-17 08:36:27 +09:00
Author: https://github.com/stelar7
Commit: 611a235a52
Pull-request: https://github.com/SerenityOS/serenity/pull/18356
Reviewed-by: https://github.com/alimpfard ✅
5 changed files with 15 additions and 12 deletions
|
@ -135,7 +135,7 @@ void TLSv12::setup_connection()
|
|||
if (timeout_diff < m_max_wait_time_for_handshake_in_seconds + 1) {
|
||||
// The server did not respond fast enough,
|
||||
// time the connection out.
|
||||
alert(AlertLevel::Critical, AlertDescription::UserCanceled);
|
||||
alert(AlertLevel::FATAL, AlertDescription::UserCanceled);
|
||||
m_context.tls_buffer.clear();
|
||||
m_context.error_code = Error::TimedOut;
|
||||
m_context.critical_error = (u8)Error::TimedOut;
|
||||
|
@ -317,7 +317,7 @@ ErrorOr<bool> TLSv12::flush()
|
|||
|
||||
void TLSv12::close()
|
||||
{
|
||||
alert(AlertLevel::Critical, AlertDescription::CloseNotify);
|
||||
alert(AlertLevel::FATAL, AlertDescription::CloseNotify);
|
||||
// bye bye.
|
||||
m_context.connection_status = ConnectionStatus::Disconnected;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue