From 20280f17637edde533cbcb169617fb3aa3a20ba4 Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Wed, 31 Mar 2021 13:42:51 +0200 Subject: [PATCH] Fix formatting --- pdns/credentials.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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 } - -- 2.47.3