summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/asn1
diff options
context:
space:
mode:
authorbeck <>2022-02-24 22:05:07 +0000
committerbeck <>2022-02-24 22:05:07 +0000
commit241f81f05560b5b5be14de78e45d18c5a5899b06 (patch)
tree5d134be11f5cbf6684cb66d0413a5ea0ca52343e /src/lib/libcrypto/asn1
parent0f5c4cf7cc56e3a4623fb0ca0dc51f0ea636ed81 (diff)
downloadopenbsd-241f81f05560b5b5be14de78e45d18c5a5899b06.tar.gz
openbsd-241f81f05560b5b5be14de78e45d18c5a5899b06.tar.bz2
openbsd-241f81f05560b5b5be14de78e45d18c5a5899b06.zip
Get rid of SHA1 for comparing CRL's - use SHA512 just like we do for certs.
ok tb@
Diffstat (limited to 'src/lib/libcrypto/asn1')
-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)