summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/asn1/x_crl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/asn1/x_crl.c')
-rw-r--r--src/lib/libcrypto/asn1/x_crl.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/lib/libcrypto/asn1/x_crl.c b/src/lib/libcrypto/asn1/x_crl.c
index 8cea9e0b7b..35d9007f7c 100644
--- a/src/lib/libcrypto/asn1/x_crl.c
+++ b/src/lib/libcrypto/asn1/x_crl.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: x_crl.c,v 1.36 2021/12/03 17:07:53 jsing Exp $ */ 1/* $OpenBSD: x_crl.c,v 1.37 2022/02/24 22:05:06 beck Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -288,9 +288,7 @@ crl_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it, void *exarg)
288 break; 288 break;
289 289
290 case ASN1_OP_D2I_POST: 290 case ASN1_OP_D2I_POST:
291#ifndef OPENSSL_NO_SHA 291 X509_CRL_digest(crl, X509_CRL_HASH_EVP, crl->hash, NULL);
292 X509_CRL_digest(crl, EVP_sha1(), crl->sha1_hash, NULL);
293#endif
294 crl->idp = X509_CRL_get_ext_d2i(crl, 292 crl->idp = X509_CRL_get_ext_d2i(crl,
295 NID_issuing_distribution_point, NULL, NULL); 293 NID_issuing_distribution_point, NULL, NULL);
296 if (crl->idp) 294 if (crl->idp)