diff options
Diffstat (limited to 'src/lib/libcrypto/x509/x509_cmp.c')
-rw-r--r-- | src/lib/libcrypto/x509/x509_cmp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/x509/x509_cmp.c b/src/lib/libcrypto/x509/x509_cmp.c index 3ee4fd4a5d..6098b6e7e8 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.42 2023/02/16 08:38:17 tb Exp $ */ | 1 | /* $OpenBSD: x509_cmp.c,v 1.43 2024/02/18 15:45:42 tb 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 | * |
@@ -95,7 +95,7 @@ X509_issuer_and_serial_hash(X509 *a) | |||
95 | unsigned char md[16]; | 95 | unsigned char md[16]; |
96 | char *f; | 96 | char *f; |
97 | 97 | ||
98 | EVP_MD_CTX_init(&ctx); | 98 | EVP_MD_CTX_legacy_clear(&ctx); |
99 | f = X509_NAME_oneline(a->cert_info->issuer, NULL, 0); | 99 | f = X509_NAME_oneline(a->cert_info->issuer, NULL, 0); |
100 | if (f == NULL) | 100 | if (f == NULL) |
101 | goto err; | 101 | goto err; |
@@ -291,7 +291,7 @@ X509_NAME_hash_old(X509_NAME *x) | |||
291 | 291 | ||
292 | /* Make sure X509_NAME structure contains valid cached encoding */ | 292 | /* Make sure X509_NAME structure contains valid cached encoding */ |
293 | i2d_X509_NAME(x, NULL); | 293 | i2d_X509_NAME(x, NULL); |
294 | EVP_MD_CTX_init(&md_ctx); | 294 | EVP_MD_CTX_legacy_clear(&md_ctx); |
295 | if (EVP_DigestInit_ex(&md_ctx, EVP_md5(), NULL) && | 295 | if (EVP_DigestInit_ex(&md_ctx, EVP_md5(), NULL) && |
296 | EVP_DigestUpdate(&md_ctx, x->bytes->data, x->bytes->length) && | 296 | EVP_DigestUpdate(&md_ctx, x->bytes->data, x->bytes->length) && |
297 | EVP_DigestFinal_ex(&md_ctx, md, NULL)) | 297 | EVP_DigestFinal_ex(&md_ctx, md, NULL)) |