summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/evp/evp_lib.c
diff options
context:
space:
mode:
authortb <>2021-10-24 13:51:07 +0000
committertb <>2021-10-24 13:51:07 +0000
commit9ce34ff028d65fd9aa89304d29caccdc79b5d1e4 (patch)
treea42844d28ec778496b905aec60600eac4ccf47e8 /src/lib/libcrypto/evp/evp_lib.c
parentf731efcb020de1a829fe2e6ba79f1411545dbdbf (diff)
downloadopenbsd-9ce34ff028d65fd9aa89304d29caccdc79b5d1e4.tar.gz
openbsd-9ce34ff028d65fd9aa89304d29caccdc79b5d1e4.tar.bz2
openbsd-9ce34ff028d65fd9aa89304d29caccdc79b5d1e4.zip
Prepare to provide EVP_MD_CTX_get_md_data()
ok beck jsing
Diffstat (limited to 'src/lib/libcrypto/evp/evp_lib.c')
-rw-r--r--src/lib/libcrypto/evp/evp_lib.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/lib/libcrypto/evp/evp_lib.c b/src/lib/libcrypto/evp/evp_lib.c
index 90107739e7..83b81bd429 100644
--- a/src/lib/libcrypto/evp/evp_lib.c
+++ b/src/lib/libcrypto/evp/evp_lib.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: evp_lib.c,v 1.17 2018/09/12 06:35:38 djm Exp $ */ 1/* $OpenBSD: evp_lib.c,v 1.18 2021/10/24 13:51:07 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 *
@@ -353,6 +353,12 @@ EVP_MD_CTX_md(const EVP_MD_CTX *ctx)
353 return ctx->digest; 353 return ctx->digest;
354} 354}
355 355
356void *
357EVP_MD_CTX_md_data(const EVP_MD_CTX *ctx)
358{
359 return ctx->md_data;
360}
361
356void 362void
357EVP_MD_CTX_set_flags(EVP_MD_CTX *ctx, int flags) 363EVP_MD_CTX_set_flags(EVP_MD_CTX *ctx, int flags)
358{ 364{