mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-31 19:24:42 +02:00
Clear decrypted ticket that failed checks in DoClientTicket_ex
This commit is contained in:
@@ -34821,6 +34821,10 @@ static int DoSessionTicket(WOLFSSL* ssl, const byte* input, word32* inOutIdx,
|
|||||||
ret = DoClientTicketCheckVersion(ssl, psk->it);
|
ret = DoClientTicketCheckVersion(ssl, psk->it);
|
||||||
if (ret != 0) {
|
if (ret != 0) {
|
||||||
psk->decryptRet = PSK_DECRYPT_FAIL;
|
psk->decryptRet = PSK_DECRYPT_FAIL;
|
||||||
|
ForceZero(psk->identity, psk->identityLen);
|
||||||
|
#ifdef WOLFSSL_CHECK_MEM_ZERO
|
||||||
|
wc_MemZero_Check(psk->it, sizeof(InternalTicket));
|
||||||
|
#endif
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
return decryptRet;
|
return decryptRet;
|
||||||
|
Reference in New Issue
Block a user