diff options
author | Dr. Stephen Henson <steve@openssl.org> | 1999-01-20 00:14:40 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 1999-01-20 00:14:40 +0000 |
commit | 9b5cc156f3e42488bc975bbe3055bf004f6dae4a (patch) | |
tree | 40ebb604bed92e36a9b2e2af076647cca96d6514 /crypto/asn1/x_cinf.c | |
parent | 6f93539970fe8c07f7f68f7b2370f79abf78dcbb (diff) | |
download | openssl-9b5cc156f3e42488bc975bbe3055bf004f6dae4a.tar.gz |
Continued patches so certificates and CRLs now can support and use
GeneralizedTime.
Diffstat (limited to 'crypto/asn1/x_cinf.c')
-rw-r--r-- | crypto/asn1/x_cinf.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/crypto/asn1/x_cinf.c b/crypto/asn1/x_cinf.c index 99b9fe7b9f..88099ea9f7 100644 --- a/crypto/asn1/x_cinf.c +++ b/crypto/asn1/x_cinf.c @@ -147,7 +147,14 @@ long length; M_ASN1_D2I_get_IMP_opt(ret->subjectUID,d2i_ASN1_BIT_STRING, 2, V_ASN1_BIT_STRING); } +/* Note: some broken certificates include extensions but don't set + * the version number properly. By bypassing this check they can + * be parsed. + */ + +#ifdef VERSION_EXT_CHECK if (ver >= 2) /* version 3 extensions */ +#endif { if (ret->extensions != NULL) while (sk_num(ret->extensions)) |