Skip to content

Commit

Permalink
convert to char* instead of const char*
Browse files Browse the repository at this point in the history
  • Loading branch information
cps-b committed Nov 14, 2023
1 parent 9799dcb commit 1563b09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/openssl_wrap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ const std::array<OSSL_PARAM, 4> _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<char*>(digest_name.c_str()), sizeof(digest_name.c_str()));
*p = lib::OpenSSLLib::SSL_OSSL_PARAM_construct_end();

std::array<int, 4> ossl_params;
Expand Down

0 comments on commit 1563b09

Please sign in to comment.