summaryrefslogtreecommitdiff
path: root/providers/common/digests/sha2_prov.c
diff options
context:
space:
mode:
Diffstat (limited to 'providers/common/digests/sha2_prov.c')
-rw-r--r--providers/common/digests/sha2_prov.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/providers/common/digests/sha2_prov.c b/providers/common/digests/sha2_prov.c
index 547d1bcab6..0e49ae679c 100644
--- a/providers/common/digests/sha2_prov.c
+++ b/providers/common/digests/sha2_prov.c
@@ -26,7 +26,7 @@ static int sha1_set_params(void *vctx, const OSSL_PARAM params[])
SHA_CTX *ctx = (SHA_CTX *)vctx;
if (ctx != NULL && params != NULL) {
- p = OSSL_PARAM_locate(params, OSSL_DIGEST_PARAM_SSL3_MS);
+ p = OSSL_PARAM_locate_const(params, OSSL_DIGEST_PARAM_SSL3_MS);
if (p != NULL && p->data_type == OSSL_PARAM_OCTET_STRING)
return sha1_ctrl(ctx, EVP_CTRL_SSL3_MASTER_SECRET, p->data_size,
p->data);