]> git.ipfire.org Git - thirdparty/openssl.git/blobdiff - crypto/param_build.c
Fix ossl_param_bld_push_{utf8,octet}_string() / param_bld_convert()
[thirdparty/openssl.git] / crypto / param_build.c
index db2182196c85e69e4fe9dbaaf5d7878c2a3c1220..01866b01d970fe9966624d3ade571258e48e1711 100644 (file)
@@ -260,7 +260,7 @@ static OSSL_PARAM *param_bld_convert(OSSL_PARAM_BLD *bld, OSSL_PARAM *param,
         } else if (pd->type == OSSL_PARAM_OCTET_PTR
                    || pd->type == OSSL_PARAM_UTF8_PTR) {
             /* PTR */
-            *(void **)p = pd->string;
+            *(const void **)p = pd->string;
         } else if (pd->type == OSSL_PARAM_OCTET_STRING
                    || pd->type == OSSL_PARAM_UTF8_STRING) {
             if (pd->string != NULL)