mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-07-06 17:50:50 +02:00
DoTls13ClientHello: session length is a sender side requirement
F-433
This commit is contained in:
@@ -6869,11 +6869,7 @@ int DoTls13ClientHello(WOLFSSL* ssl, const byte* input, word32* inOutIdx,
|
||||
#endif
|
||||
|
||||
sessIdSz = input[args->idx++];
|
||||
#ifndef WOLFSSL_TLS13_MIDDLEBOX_COMPAT
|
||||
if (sessIdSz > ID_LEN)
|
||||
#else
|
||||
if (sessIdSz != ID_LEN && sessIdSz != 0)
|
||||
#endif
|
||||
{
|
||||
ERROR_OUT(INVALID_PARAMETER, exit_dch);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user