mirror of
https://github.com/yuzu-emu/mbedtls
synced 2024-11-24 22:48:21 +00:00
Check the CA bit on trusted CAs too
This commit is contained in:
parent
99d4f19111
commit
f93a3c4335
1 changed files with 1 additions and 0 deletions
|
@ -1607,6 +1607,7 @@ static int x509_crt_verify_top(
|
|||
while( trust_ca != NULL )
|
||||
{
|
||||
if( trust_ca->version == 0 ||
|
||||
trust_ca->ca_istrue == 0 ||
|
||||
child->issuer_raw.len != trust_ca->subject_raw.len ||
|
||||
memcmp( child->issuer_raw.p, trust_ca->subject_raw.p,
|
||||
child->issuer_raw.len ) != 0 )
|
||||
|
|
Loading…
Reference in a new issue