From: Remi Gacogne Date: Wed, 3 Nov 2021 15:14:40 +0000 (+0100) Subject: Credentials: EVP_PKEY_CTX_set1_scrypt_salt() takes an `unsigned char*` X-Git-Tag: rec-4.6.0-beta1~9^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=810cb1958b14a8333242dc80efc0e20f9ad4aa66;p=thirdparty%2Fpdns.git Credentials: EVP_PKEY_CTX_set1_scrypt_salt() takes an `unsigned char*` --- diff --git a/pdns/credentials.cc b/pdns/credentials.cc index 460df05edf..f7d3417edb 100644 --- a/pdns/credentials.cc +++ b/pdns/credentials.cc @@ -109,7 +109,7 @@ static std::string hashPasswordInternal(const std::string& password, const std:: throw std::runtime_error("Error adding the password to the scrypt context to hash the supplied password"); } - if (EVP_PKEY_CTX_set1_scrypt_salt(pctx.get(), salt.data(), salt.size()) <= 0) { + if (EVP_PKEY_CTX_set1_scrypt_salt(pctx.get(), reinterpret_cast(salt.data()), salt.size()) <= 0) { throw std::runtime_error("Error adding the salt to the scrypt context to hash the supplied password"); }