From: Remi Gacogne Date: Wed, 31 Mar 2021 11:42:51 +0000 (+0200) Subject: Fix formatting X-Git-Tag: dnsdist-1.7.0-alpha1~12^2~23 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=20280f17637edde533cbcb169617fb3aa3a20ba4;p=thirdparty%2Fpdns.git Fix formatting --- diff --git a/pdns/credentials.cc b/pdns/credentials.cc index 24672e142a..edd845d352 100644 --- a/pdns/credentials.cc +++ b/pdns/credentials.cc @@ -61,7 +61,8 @@ bool verifyPassword(const std::string& hash, const std::string& password) return crypto_pwhash_str_verify(hash.c_str(), password.c_str(), - password.size()) == 0; + password.size()) + == 0; #else throw std::runtime_error("Verifying a hashed password requires libsodium support, and it is not available"); #endif @@ -116,7 +117,6 @@ CredentialsHolder::CredentialsHolder(std::string&& password) sodium_mlock(d_credentials.data(), d_credentials.size()); #endif } - } CredentialsHolder::~CredentialsHolder() @@ -151,4 +151,3 @@ bool CredentialsHolder::isHashingAvailable() return false; #endif } -