aboutsummaryrefslogtreecommitdiff
path: root/decrepit
diff options
context:
space:
mode:
authorDavid Benjamin <davidben@google.com>2021-07-01 11:27:04 -0400
committerAdam Langley <agl@google.com>2021-07-01 16:20:47 +0000
commitae7c17868992ac2c64c46ba418d46cf75374054f (patch)
tree07e34c3f27a5df961364cef2ad848f5f9e12007e /decrepit
parent170045f4900cf6ffc2d5bf162a4ef196b2400e1a (diff)
downloadboringssl-ae7c17868992ac2c64c46ba418d46cf75374054f.zip
boringssl-ae7c17868992ac2c64c46ba418d46cf75374054f.tar.gz
boringssl-ae7c17868992ac2c64c46ba418d46cf75374054f.tar.bz2
Add some OpenSSL compatibility aliases.
EVP_MD_nid, in OpenSSL, is the same as EVP_MD_type. EVP_MD_type seems to be the preferred spelling, so put EVP_MD_nid in the deprecated bucket. Also add an EVP_MD_do_all alias to EVP_MD_do_all_sorted. Change-Id: I4e7b800902459ac5cb9ef0df65d73da94afdf927 Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/48365 Reviewed-by: Adam Langley <agl@google.com>
Diffstat (limited to 'decrepit')
-rw-r--r--decrepit/evp/evp_do_all.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/decrepit/evp/evp_do_all.c b/decrepit/evp/evp_do_all.c
index d540144..d8023e0 100644
--- a/decrepit/evp/evp_do_all.c
+++ b/decrepit/evp/evp_do_all.c
@@ -87,3 +87,9 @@ void EVP_MD_do_all_sorted(void (*callback)(const EVP_MD *cipher,
callback(EVP_sha384(), "sha384", NULL, arg);
callback(EVP_sha512(), "sha512", NULL, arg);
}
+
+void EVP_MD_do_all(void (*callback)(const EVP_MD *cipher, const char *name,
+ const char *unused, void *arg),
+ void *arg) {
+ EVP_MD_do_all_sorted(callback, arg);
+}