diff options
author | Shane Lontis <shane.lontis@oracle.com> | 2021-02-17 20:01:34 +1000 |
---|---|---|
committer | Pauli <ppzgs1@gmail.com> | 2021-02-18 21:14:32 +1000 |
commit | 7b676cc8c60823570e283fbe325b263670c6ccc2 (patch) | |
tree | c38119319f0dff73868b5716a86c643142caed0a /providers/common/digest_to_nid.c | |
parent | 47c076acfc5debbae386c552bdb423e832042ae7 (diff) |
Fix external symbols related to provider related security checks for
keys and digests.
Partial fix for #12964
This adds ossl_ names for the following symbols:
digest_get_approved_nid, digest_get_approved_nid_with_sha1
digest_is_allowed, digest_md_to_nid, digest_rsa_sign_get_md_nid,
securitycheck_enabled,
dh_check_key, dsa_check_key, ec_check_key,
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14211)
Diffstat (limited to 'providers/common/digest_to_nid.c')
-rw-r--r-- | providers/common/digest_to_nid.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/providers/common/digest_to_nid.c b/providers/common/digest_to_nid.c index 496d814173..f66b61b4fa 100644 --- a/providers/common/digest_to_nid.c +++ b/providers/common/digest_to_nid.c @@ -20,7 +20,7 @@ * Internal library code deals with NIDs, so we need to translate from a name. * We do so using EVP_MD_is_a(), and therefore need a name to NID map. */ -int digest_md_to_nid(const EVP_MD *md, const OSSL_ITEM *it, size_t it_len) +int ossl_digest_md_to_nid(const EVP_MD *md, const OSSL_ITEM *it, size_t it_len) { size_t i; @@ -37,7 +37,7 @@ int digest_md_to_nid(const EVP_MD *md, const OSSL_ITEM *it, size_t it_len) * Retrieve one of the FIPs approved hash algorithms by nid. * See FIPS 180-4 "Secure Hash Standard" and FIPS 202 - SHA-3. */ -int digest_get_approved_nid(const EVP_MD *md) +int ossl_digest_get_approved_nid(const EVP_MD *md) { static const OSSL_ITEM name_to_nid[] = { { NID_sha1, OSSL_DIGEST_NAME_SHA1 }, @@ -53,5 +53,5 @@ int digest_get_approved_nid(const EVP_MD *md) { NID_sha3_512, OSSL_DIGEST_NAME_SHA3_512 }, }; - return digest_md_to_nid(md, name_to_nid, OSSL_NELEM(name_to_nid)); + return ossl_digest_md_to_nid(md, name_to_nid, OSSL_NELEM(name_to_nid)); } |