diff options
author | stelar7 <dudedbz@gmail.com> | 2023-04-14 00:43:25 +0200 |
---|---|---|
committer | Sam Atkins <atkinssj@gmail.com> | 2023-04-14 12:32:04 +0100 |
commit | 5853d9642a48733f4bfc51239d2ee36a30a5a14d (patch) | |
tree | a31e79bbe02e960a6b9e64a6cf2aae607cda2dfd /Userland/Services | |
parent | e8945f15f4e8c929bff38799a168f00c3e3b1d0a (diff) | |
download | serenity-5853d9642a48733f4bfc51239d2ee36a30a5a14d.zip |
LibTLS: Move AlertDescription to Extensions.h
Also add missing values from the IANA registry
Diffstat (limited to 'Userland/Services')
-rw-r--r-- | Userland/Services/RequestServer/ConnectionCache.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Services/RequestServer/ConnectionCache.h b/Userland/Services/RequestServer/ConnectionCache.h index 01298a4a3a..24bd516bb7 100644 --- a/Userland/Services/RequestServer/ConnectionCache.h +++ b/Userland/Services/RequestServer/ConnectionCache.h @@ -146,9 +146,9 @@ ErrorOr<void> recreate_socket_if_needed(T& connection, URL const& url) TLS::Options options; options.set_alert_handler([&connection](TLS::AlertDescription alert) { Core::NetworkJob::Error reason; - if (alert == TLS::AlertDescription::HandshakeFailure) + if (alert == TLS::AlertDescription::HANDSHAKE_FAILURE) reason = Core::NetworkJob::Error::ProtocolFailed; - else if (alert == TLS::AlertDescription::DecryptError) + else if (alert == TLS::AlertDescription::DECRYPT_ERROR) reason = Core::NetworkJob::Error::ConnectionFailed; else reason = Core::NetworkJob::Error::TransmissionFailed; |