From 810cb1958b14a8333242dc80efc0e20f9ad4aa66 Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Wed, 3 Nov 2021 16:14:40 +0100 Subject: [PATCH] Credentials: EVP_PKEY_CTX_set1_scrypt_salt() takes an `unsigned char*` --- pdns/credentials.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); } -- 2.47.2