LibTLS: Put lots of debug spam behind TLS_DEBUG

This commit is contained in:
Andreas Kling 2020-05-26 23:46:28 +02:00
commit 5049e41223
Notes: sideshowbarker 2024-07-19 06:05:47 +09:00
5 changed files with 47 additions and 3 deletions

View file

@ -199,7 +199,9 @@ ssize_t TLSv12::handle_message(const ByteBuffer& buffer)
buffer_position += 2;
if (buffer_position + length > buffer.size()) {
#ifdef TLS_DEBUG
dbg() << "record length more than what we have: " << buffer.size();
#endif
return (i8)Error::NeedMoreData;
}