]> jfr.im git - irc/atheme/atheme.git/commitdiff
modules/crypto/pbkdf2v2: use 0/1 instead of false/true in bool function
authorAaron Jones <redacted>
Sat, 7 Oct 2017 18:27:01 +0000 (18:27 +0000)
committerAaron Jones <redacted>
Sat, 7 Oct 2017 22:05:42 +0000 (22:05 +0000)
modules/crypto/pbkdf2v2.c

index 9bde13dffda9585efde0bbf6e27cad3bb19658fe..ea8f73f06cbb41daec216bbf442365581e28ca1a 100644 (file)
@@ -136,15 +136,15 @@ pbkdf2v2_needs_param_upgrade(const char *const restrict crypt_str)
        char            salt[PBKDF2_SALTLEN + 1];
 
        if (sscanf(crypt_str, PBKDF2_F_SCAN, &prf, &iter, salt) != 3)
-               return 0;
+               return false;
 
        if (prf != pbkdf2v2_digest)
-               return 1;
+               return true;
 
        if (iter != pbkdf2v2_rounds)
-               return 1;
+               return true;
 
-       return 0;
+       return false;
 }
 
 static int