nfqws,tpws: use tls record length in TLSDebug

This commit is contained in:
bol-van 2025-04-14 12:18:07 +03:00
parent 12461de3b0
commit b996abd5ce
2 changed files with 6 additions and 0 deletions

View File

@ -152,6 +152,9 @@ static void TLSDebug(const uint8_t *tls,size_t sz)
DLOG("TLS record layer version : %s\n",TLSVersionStr(pntoh16(tls+1)));
size_t reclen=TLSRecordLen(tls);
if (reclen<sz) sz=reclen; // correct len if it has more data than the first tls record has
TLSDebugHandshake(tls+5,sz-5);
}

View File

@ -84,6 +84,9 @@ static void TLSDebug(const uint8_t *tls,size_t sz)
VPRINT("TLS record layer version : %s\n",TLSVersionStr(pntoh16(tls+1)));
size_t reclen=TLSRecordLen(tls);
if (reclen<sz) sz=reclen; // correct len if it has more data than the first tls record has
TLSDebugHandshake(tls+5,sz-5);
}