mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-03-24 22:15:07 +00:00
Initialise variables to failing values
This commit is contained in:
parent
18761926a8
commit
6bdc6809da
|
@ -2943,9 +2943,9 @@ static int x509_crt_find_parent_in(
|
||||||
mbedtls_x509_crt_restart_ctx *rs_ctx )
|
mbedtls_x509_crt_restart_ctx *rs_ctx )
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
volatile int ret_fi;
|
volatile int ret_fi = MBEDTLS_ERR_PLATFORM_FAULT_DETECTED;
|
||||||
mbedtls_x509_crt *parent_crt;
|
mbedtls_x509_crt *parent_crt;
|
||||||
int signature_is_good;
|
int signature_is_good = 0;
|
||||||
|
|
||||||
#if defined(MBEDTLS_HAVE_TIME_DATE)
|
#if defined(MBEDTLS_HAVE_TIME_DATE)
|
||||||
mbedtls_x509_crt *fallback_parent;
|
mbedtls_x509_crt *fallback_parent;
|
||||||
|
@ -3040,7 +3040,6 @@ check_signature:
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
signature_is_good = 0;
|
|
||||||
if( ret_fi == 0 )
|
if( ret_fi == 0 )
|
||||||
{
|
{
|
||||||
mbedtls_platform_enforce_volatile_reads();
|
mbedtls_platform_enforce_volatile_reads();
|
||||||
|
@ -3781,7 +3780,7 @@ int mbedtls_x509_crt_verify_restartable( mbedtls_x509_crt *crt,
|
||||||
int ret;
|
int ret;
|
||||||
mbedtls_x509_crt_verify_chain ver_chain;
|
mbedtls_x509_crt_verify_chain ver_chain;
|
||||||
uint32_t ee_flags;
|
uint32_t ee_flags;
|
||||||
volatile uint32_t flags_fi;
|
volatile uint32_t flags_fi = -1u;
|
||||||
|
|
||||||
*flags = 0;
|
*flags = 0;
|
||||||
ee_flags = 0;
|
ee_flags = 0;
|
||||||
|
|
Loading…
Reference in a new issue