From: Pauli Date: Wed, 3 Jun 2020 08:42:36 +0000 (+1000) Subject: ossl_shim: const cast the param arguments to avoid errors X-Git-Tag: openssl-3.0.0-alpha3~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=19d15f97b3932d14e17d0b61115b664169ca6159;p=thirdparty%2Fopenssl.git ossl_shim: const cast the param arguments to avoid errors [extended tests] Reviewed-by: Richard Levitte (Merged from https://github.com/openssl/openssl/pull/12022) --- diff --git a/test/ossl_shim/ossl_shim.cc b/test/ossl_shim/ossl_shim.cc index e7c1dfe09f5..aeaea100ad7 100644 --- a/test/ossl_shim/ossl_shim.cc +++ b/test/ossl_shim/ossl_shim.cc @@ -394,8 +394,10 @@ static int TicketKeyCallback(SSL *ssl, uint8_t *key_name, uint8_t *iv, return 0; } - *p++ = OSSL_PARAM_construct_utf8_string(OSSL_MAC_PARAM_DIGEST, "SHA256", 0); - *p++ = OSSL_PARAM_construct_octet_string(OSSL_MAC_PARAM_KEY, kZeros, + *p++ = OSSL_PARAM_construct_utf8_string(OSSL_MAC_PARAM_DIGEST, + const_cast("SHA256"), 0); + *p++ = OSSL_PARAM_construct_octet_string(OSSL_MAC_PARAM_KEY, + (void *)kZeros, sizeof(kZeros)); *p = OSSL_PARAM_construct_end();