Commit b996abd5 authored by bol-van's avatar bol-van
Browse files

nfqws,tpws: use tls record length in TLSDebug

parent 12461de3
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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);
}

+3 −0
Original line number Diff line number Diff line
@@ -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);
}