diff options
author | David Benjamin <davidben@google.com> | 2021-07-01 11:27:04 -0400 |
---|---|---|
committer | Adam Langley <agl@google.com> | 2021-07-01 16:20:47 +0000 |
commit | ae7c17868992ac2c64c46ba418d46cf75374054f (patch) | |
tree | 07e34c3f27a5df961364cef2ad848f5f9e12007e /include | |
parent | 170045f4900cf6ffc2d5bf162a4ef196b2400e1a (diff) | |
download | boringssl-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 'include')
-rw-r--r-- | include/openssl/digest.h | 3 | ||||
-rw-r--r-- | include/openssl/evp.h | 6 |
2 files changed, 9 insertions, 0 deletions
diff --git a/include/openssl/digest.h b/include/openssl/digest.h index 12542c1..fa76168 100644 --- a/include/openssl/digest.h +++ b/include/openssl/digest.h @@ -297,6 +297,9 @@ OPENSSL_EXPORT void EVP_MD_CTX_set_flags(EVP_MD_CTX *ctx, int flags); // their needs). Thus this exists only to allow code to compile. #define EVP_MD_CTX_FLAG_NON_FIPS_ALLOW 0 +// EVP_MD_nid calls |EVP_MD_type|. +OPENSSL_EXPORT int EVP_MD_nid(const EVP_MD *md); + struct evp_md_pctx_ops; diff --git a/include/openssl/evp.h b/include/openssl/evp.h index 405b402..c567875 100644 --- a/include/openssl/evp.h +++ b/include/openssl/evp.h @@ -867,6 +867,12 @@ OPENSSL_EXPORT void EVP_MD_do_all_sorted(void (*callback)(const EVP_MD *cipher, void *arg), void *arg); +OPENSSL_EXPORT void EVP_MD_do_all(void (*callback)(const EVP_MD *cipher, + const char *name, + const char *unused, + void *arg), + void *arg); + // i2d_PrivateKey marshals a private key from |key| to an ASN.1, DER // structure. If |outp| is not NULL then the result is written to |*outp| and // |*outp| is advanced just past the output. It returns the number of bytes in |