summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/evp/digest.c
diff options
context:
space:
mode:
authortb <>2023-11-29 21:35:57 +0000
committertb <>2023-11-29 21:35:57 +0000
commitfc4faac9b396d551d0f7729a4dffa6ee31ac2d3e (patch)
tree545e6a340462469cf3c04b8bfe5d2a0f9f885ddb /src/lib/libcrypto/evp/digest.c
parent0423d363b45d6891ba1e59c1ae770ef1443bf41c (diff)
downloadopenbsd-fc4faac9b396d551d0f7729a4dffa6ee31ac2d3e.tar.gz
openbsd-fc4faac9b396d551d0f7729a4dffa6ee31ac2d3e.tar.bz2
openbsd-fc4faac9b396d551d0f7729a4dffa6ee31ac2d3e.zip
Ignore ENGINE at the API boundary
This removes the remaining ENGINE members from various internal structs and functions. Any ENGINE passed into a public API is now completely ignored functions returning an ENGINE always return NULL. ok jsing
Diffstat (limited to 'src/lib/libcrypto/evp/digest.c')
-rw-r--r--src/lib/libcrypto/evp/digest.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/evp/digest.c b/src/lib/libcrypto/evp/digest.c
index 9a2a304250..ee0c68e707 100644
--- a/src/lib/libcrypto/evp/digest.c
+++ b/src/lib/libcrypto/evp/digest.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: digest.c,v 1.39 2023/11/19 15:46:09 tb Exp $ */ 1/* $OpenBSD: digest.c,v 1.40 2023/11/29 21:35:57 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 *
@@ -271,7 +271,7 @@ EVP_Digest(const void *data, size_t count,
271 271
272 EVP_MD_CTX_init(&ctx); 272 EVP_MD_CTX_init(&ctx);
273 EVP_MD_CTX_set_flags(&ctx, EVP_MD_CTX_FLAG_ONESHOT); 273 EVP_MD_CTX_set_flags(&ctx, EVP_MD_CTX_FLAG_ONESHOT);
274 ret = EVP_DigestInit_ex(&ctx, type, impl) && 274 ret = EVP_DigestInit_ex(&ctx, type, NULL) &&
275 EVP_DigestUpdate(&ctx, data, count) && 275 EVP_DigestUpdate(&ctx, data, count) &&
276 EVP_DigestFinal_ex(&ctx, md, size); 276 EVP_DigestFinal_ex(&ctx, md, size);
277 EVP_MD_CTX_cleanup(&ctx); 277 EVP_MD_CTX_cleanup(&ctx);