diff options
author | beck <> | 2022-02-24 22:05:07 +0000 |
---|---|---|
committer | beck <> | 2022-02-24 22:05:07 +0000 |
commit | 241f81f05560b5b5be14de78e45d18c5a5899b06 (patch) | |
tree | 5d134be11f5cbf6684cb66d0413a5ea0ca52343e /src/lib/libcrypto/x509/x509_cmp.c | |
parent | 0f5c4cf7cc56e3a4623fb0ca0dc51f0ea636ed81 (diff) | |
download | openbsd-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/x509/x509_cmp.c')
-rw-r--r-- | src/lib/libcrypto/x509/x509_cmp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/x509/x509_cmp.c b/src/lib/libcrypto/x509/x509_cmp.c index e60ee25de1..4fd8d78fc3 100644 --- a/src/lib/libcrypto/x509/x509_cmp.c +++ b/src/lib/libcrypto/x509/x509_cmp.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: x509_cmp.c,v 1.38 2021/12/12 21:30:14 tb Exp $ */ | 1 | /* $OpenBSD: x509_cmp.c,v 1.39 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 | * |
@@ -143,7 +143,7 @@ X509_CRL_cmp(const X509_CRL *a, const X509_CRL *b) | |||
143 | int | 143 | int |
144 | X509_CRL_match(const X509_CRL *a, const X509_CRL *b) | 144 | X509_CRL_match(const X509_CRL *a, const X509_CRL *b) |
145 | { | 145 | { |
146 | return memcmp(a->sha1_hash, b->sha1_hash, 20); | 146 | return memcmp(a->hash, b->hash, X509_CRL_HASH_LEN); |
147 | } | 147 | } |
148 | #endif | 148 | #endif |
149 | 149 | ||