diff options
| author | beck <> | 2022-02-24 22:05:07 +0000 |
|---|---|---|
| committer | beck <> | 2022-02-24 22:05:07 +0000 |
| commit | e29735531148d227a52ccd6fa19e0b2cdf8b7b83 (patch) | |
| tree | 5d134be11f5cbf6684cb66d0413a5ea0ca52343e /src/lib/libcrypto/asn1/x_crl.c | |
| parent | 77e973878ed13a3d844c3bc80a403a9cf7fa7869 (diff) | |
| download | openbsd-e29735531148d227a52ccd6fa19e0b2cdf8b7b83.tar.gz openbsd-e29735531148d227a52ccd6fa19e0b2cdf8b7b83.tar.bz2 openbsd-e29735531148d227a52ccd6fa19e0b2cdf8b7b83.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/x_crl.c')
| -rw-r--r-- | src/lib/libcrypto/asn1/x_crl.c | 6 |
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) |
