mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 06:17:34 +00:00
LibTLS: Put a little more debug spam behind TLS_DEBUG
This commit is contained in:
parent
e58e315e0f
commit
b2a7137f57
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…
Add table
Add a link
Reference in a new issue