mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-12-25 02:05:31 +00:00
Simplify X.509 CRT version check in UID parsing
WHen parsing the CRT version, we already check that version is either 1, 2, or 3, so checking whether version == 2 or version == 3 is equivalent to version != 1.
This commit is contained in:
parent
60785d113b
commit
97aa4363e1
|
@ -1295,7 +1295,7 @@ static int x509_crt_parse_frame( unsigned char *start,
|
|||
p += len;
|
||||
frame->pubkey_raw.len = p - frame->pubkey_raw.p;
|
||||
|
||||
if( frame->version == 2 || frame->version == 3 )
|
||||
if( frame->version != 1 )
|
||||
{
|
||||
/*
|
||||
* issuerUniqueID [1] IMPLICIT UniqueIdentifier OPTIONAL,
|
||||
|
|
Loading…
Reference in a new issue