Change OSSL_PARAM return size to not be a pointer.
[openssl.git] / providers / default / digests / md5_sha1_prov.c
index e6091bd80fb87d4b5f1b11fb680977ecb2e67fc1..490134e7ebe851a92092e5cbc24fdc07a9e5d6a5 100644 (file)
@@ -26,7 +26,7 @@ static int md5_sha1_set_params(void *vctx, const OSSL_PARAM params[])
     MD5_SHA1_CTX *ctx = (MD5_SHA1_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 md5_sha1_ctrl(ctx, EVP_CTRL_SSL3_MASTER_SECRET, p->data_size,
                                  p->data);