diff options
Diffstat (limited to 'Userland/Libraries/LibTLS/Handshake.cpp')
-rw-r--r-- | Userland/Libraries/LibTLS/Handshake.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Userland/Libraries/LibTLS/Handshake.cpp b/Userland/Libraries/LibTLS/Handshake.cpp index 51fab9ddee..6a7c160546 100644 --- a/Userland/Libraries/LibTLS/Handshake.cpp +++ b/Userland/Libraries/LibTLS/Handshake.cpp @@ -489,6 +489,11 @@ ssize_t TLSv12::handle_handshake_payload(ReadonlyBytes vbuffer) write_packet(packet); break; } + case Error::NotSafe: { + auto packet = build_alert(true, (u8)AlertDescription::DecryptError); + write_packet(packet); + break; + } case Error::NeedMoreData: // Ignore this, as it's not an "error" dbgln_if(TLS_DEBUG, "More data needed"); |