diff options
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 134a082730..bc944b71d7 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.36 2021/11/01 20:53:08 tb Exp $ */ | 1 | /* $OpenBSD: x509_cmp.c,v 1.37 2021/11/04 23:52:34 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 | * |
@@ -215,7 +215,7 @@ X509_cmp(const X509 *a, const X509 *b) | |||
215 | X509_check_purpose((X509 *)a, -1, 0); | 215 | X509_check_purpose((X509 *)a, -1, 0); |
216 | X509_check_purpose((X509 *)b, -1, 0); | 216 | X509_check_purpose((X509 *)b, -1, 0); |
217 | 217 | ||
218 | return memcmp(a->sha1_hash, b->sha1_hash, SHA_DIGEST_LENGTH); | 218 | return memcmp(a->hash, b->hash, X509_CERT_HASH_LEN); |
219 | } | 219 | } |
220 | #endif | 220 | #endif |
221 | 221 | ||