diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2005-09-30 23:35:33 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2005-09-30 23:35:33 +0000 |
commit | 09b6c2ef15139aa6ef2cee11676070939dd37817 (patch) | |
tree | afeaab1982d494fde0fe9f7425e0873a84a2f5e2 /crypto/asn1/x_crl.c | |
parent | cc29c1204ba08af88febdd675be4a118482d2611 (diff) |
Make OPENSSL_NO_COMP compile again.
Diffstat (limited to 'crypto/asn1/x_crl.c')
-rw-r--r-- | crypto/asn1/x_crl.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/crypto/asn1/x_crl.c b/crypto/asn1/x_crl.c index 0f72711452..382aed5a6d 100644 --- a/crypto/asn1/x_crl.c +++ b/crypto/asn1/x_crl.c @@ -102,6 +102,23 @@ ASN1_SEQUENCE_enc(X509_CRL_INFO, enc, crl_inf_cb) = { ASN1_EXP_SEQUENCE_OF_OPT(X509_CRL_INFO, extensions, X509_EXTENSION, 0) } ASN1_SEQUENCE_END_enc(X509_CRL_INFO, X509_CRL_INFO) +static int crl_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it, + void *exarg) +{ + X509_CRL *a = (X509_CRL_INFO *)*pval; + +#ifndef OPENSSL_NO_SHA + switch(operation) { + /* Hash CRL here for rapid comparison in X509_digest_cmp() + */ + case ASN1_OP_D2I_POST: + X509_CRL_digest(crl->digest, crl); + break; + } +#endif + return 1; +} + ASN1_SEQUENCE_ref(X509_CRL, 0, CRYPTO_LOCK_X509_CRL) = { ASN1_SIMPLE(X509_CRL, crl, X509_CRL_INFO), ASN1_SIMPLE(X509_CRL, sig_alg, X509_ALGOR), |