summaryrefslogtreecommitdiffstats
path: root/crypto/evp/pkey_mac.c
diff options
context:
space:
mode:
authorPauli <paul.dale@oracle.com>2019-09-22 02:43:08 +0200
committerPauli <paul.dale@oracle.com>2019-09-25 03:20:41 +0200
commit69db30449ee1f75d2be74c91d6f15b8322a2b824 (patch)
tree6055d148de24a9fc472aa9842274885f07d73850 /crypto/evp/pkey_mac.c
parentMake the "engine" parameter to some provider algorithms (KDF/PRF) hidden. (diff)
downloadopenssl-69db30449ee1f75d2be74c91d6f15b8322a2b824.tar.xz
openssl-69db30449ee1f75d2be74c91d6f15b8322a2b824.zip
Remove engine param macros from wrapper APIs
Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/9971)
Diffstat (limited to '')
-rw-r--r--crypto/evp/pkey_mac.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/crypto/evp/pkey_mac.c b/crypto/evp/pkey_mac.c
index 1343e19e76..5f33b4e421 100644
--- a/crypto/evp/pkey_mac.c
+++ b/crypto/evp/pkey_mac.c
@@ -278,8 +278,7 @@ static int pkey_mac_ctrl(EVP_PKEY_CTX *ctx, int type, int p1, void *p2)
char *engineid = (char *)ENGINE_get_id(ctx->engine);
params[params_n++] =
- OSSL_PARAM_construct_utf8_string(OSSL_MAC_PARAM_ENGINE,
- engineid, 0);
+ OSSL_PARAM_construct_utf8_string("engine", engineid, 0);
#endif
params[params_n++] =
OSSL_PARAM_construct_utf8_string(OSSL_MAC_PARAM_CIPHER,
@@ -400,11 +399,9 @@ static int pkey_mac_ctrl(EVP_PKEY_CTX *ctx, int type, int p1, void *p2)
char *engineid = ctx->engine == NULL
? NULL : (char *)ENGINE_get_id(ctx->engine);
- if (engineid != NULL) {
+ if (engineid != NULL)
params[params_n++] =
- OSSL_PARAM_construct_utf8_string(OSSL_MAC_PARAM_ENGINE,
- engineid, 0);
- }
+ OSSL_PARAM_construct_utf8_string("engine", engineid, 0);
#endif
params[params_n++] =
OSSL_PARAM_construct_utf8_string(OSSL_MAC_PARAM_DIGEST,