LibTLS: Put a little more debug spam behind TLS_DEBUG

This commit is contained in:
Andreas Kling 2020-06-01 20:13:53 +02:00
parent e58e315e0f
commit b2a7137f57
Notes: sideshowbarker 2024-07-19 05:54:31 +09:00

View file

@ -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) {