summaryrefslogtreecommitdiffstats
path: root/crypto/asn1/x_crl.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2008-08-29 11:37:21 +0000
committerDr. Stephen Henson <steve@openssl.org>2008-08-29 11:37:21 +0000
commit4b96839f069a2c9fef3d1feffca2880361181544 (patch)
tree629a9c6b65416dce84e31731bcc9a24f77dae7db /crypto/asn1/x_crl.c
parent249a77f5fb6407185e0a6ad44cd88eda2b6f8946 (diff)
Add support for CRLs partitioned by reason code.
Tidy CRL scoring system. Add new CRL path validation error.
Diffstat (limited to 'crypto/asn1/x_crl.c')
-rw-r--r--crypto/asn1/x_crl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/asn1/x_crl.c b/crypto/asn1/x_crl.c
index e6346374dc..86adbe3e5f 100644
--- a/crypto/asn1/x_crl.c
+++ b/crypto/asn1/x_crl.c
@@ -203,6 +203,7 @@ static int crl_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it,
crl->akid = NULL;
crl->flags = 0;
crl->idp_flags = 0;
+ crl->idp_reasons = CRLDP_ALL_REASONS;
crl->meth = default_crl_method;
crl->meth_data = NULL;
crl->issuers = NULL;
@@ -308,6 +309,7 @@ static void setup_idp(X509_CRL *crl, ISSUING_DIST_POINT *idp)
if (idp->onlysomereasons->length > 1)
crl->idp_reasons |=
(idp->onlysomereasons->data[1] << 8);
+ crl->idp_reasons &= CRLDP_ALL_REASONS;
}
DIST_POINT_set_dpname(idp->distpoint, X509_CRL_get_issuer(crl));