mirror of
https://github.com/bol-van/zapret.git
synced 2025-04-17 04:22:59 +03:00
nfqws,tpws: use tls record length in TLSDebug
This commit is contained in:
parent
12461de3b0
commit
b996abd5ce
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user