summaryrefslogtreecommitdiffstats
path: root/providers/implementations/asymciphers/sm2_enc.c
diff options
context:
space:
mode:
Diffstat (limited to 'providers/implementations/asymciphers/sm2_enc.c')
-rw-r--r--providers/implementations/asymciphers/sm2_enc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/providers/implementations/asymciphers/sm2_enc.c b/providers/implementations/asymciphers/sm2_enc.c
index a855a36d20..c9dba32ffb 100644
--- a/providers/implementations/asymciphers/sm2_enc.c
+++ b/providers/implementations/asymciphers/sm2_enc.c
@@ -164,7 +164,7 @@ static int sm2_get_ctx_params(void *vpsm2ctx, OSSL_PARAM *params)
const EVP_MD *md = ossl_prov_digest_md(&psm2ctx->md);
if (!OSSL_PARAM_set_utf8_string(p, md == NULL ? ""
- : EVP_MD_name(md)))
+ : EVP_MD_get0_name(md)))
return 0;
}