diff --git a/src/openssl_wrap.cpp b/src/openssl_wrap.cpp index 180f844..f354afd 100644 --- a/src/openssl_wrap.cpp +++ b/src/openssl_wrap.cpp @@ -520,7 +520,7 @@ const std::array _getOSSLParamFromDigestType(DigestTypes type) } OSSL_PARAM params[4], *p = params; - *p++ = lib::OpenSSLLib::SSL_OSSL_PARAM_construct_utf8_string(OSSL_MAC_PARAM_DIGEST, digest_name.c_str(), sizeof(digest_name.c_str())); + *p++ = lib::OpenSSLLib::SSL_OSSL_PARAM_construct_utf8_string(OSSL_MAC_PARAM_DIGEST, const_cast(digest_name.c_str()), sizeof(digest_name.c_str())); *p = lib::OpenSSLLib::SSL_OSSL_PARAM_construct_end(); std::array ossl_params;