mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
LibTLS: Put a little more debug spam behind TLS_DEBUG
This commit is contained in:
parent
e58e315e0f
commit
b2a7137f57
Notes:
sideshowbarker
2024-07-19 05:54:31 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/b2a7137f57d
1 changed files with 4 additions and 0 deletions
|
@ -295,9 +295,13 @@ ssize_t TLSv12::handle_message(const ByteBuffer& buffer)
|
|||
}
|
||||
break;
|
||||
case MessageType::Alert:
|
||||
#ifdef TLS_DEBUG
|
||||
dbg() << "alert message of length " << length;
|
||||
#endif
|
||||
if (length >= 2) {
|
||||
#ifdef TLS_DEBUG
|
||||
print_buffer(plain);
|
||||
#endif
|
||||
auto level = plain[0];
|
||||
auto code = plain[1];
|
||||
if (level == (u8)AlertLevel::Critical) {
|
||||
|
|
Loading…
Reference in a new issue