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.
diff --git a/library/x509_crt.c b/library/x509_crt.c
index e9672e4..b5ad867 100644
--- a/library/x509_crt.c
+++ b/library/x509_crt.c
@@ -1295,7 +1295,7 @@
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,