]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Fix formatting
authorRemi Gacogne <remi.gacogne@powerdns.com>
Wed, 31 Mar 2021 11:42:51 +0000 (13:42 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 16 Sep 2021 12:12:27 +0000 (14:12 +0200)
pdns/credentials.cc

index 24672e142a1db82709e23a65fa3ee9dc97b9f324..edd845d35245fd02f144f3e190effef4e4dd0deb 100644 (file)
@@ -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
 }
-