Fix a couple of lingering printfs
[blerg.git] / common / auth.c
index 3fd0376..439e2ad 100644 (file)
@@ -37,7 +37,7 @@ int auth_set_password(const char *username, const char *password) {
 
        r = crypto_scrypt(password, n, salt, SCRYPT_SALT_SIZE, SCRYPT_N, SCRYPT_r, SCRYPT_p, pwhash, SCRYPT_OUTPUT_SIZE);
        if (r != 0) {
-               printf("Failure in scrypt for %s\n", username);
+               fprintf(stderr, "Failure in scrypt for %s\n", username);
                return 0;
        }
 
@@ -158,7 +158,7 @@ int auth_check_password_v1(const char *username, const char *password) {
 
        r = crypto_scrypt(password, strlen(password), esalt, SCRYPT_SALT_SIZE, SCRYPT_N, SCRYPT_r, SCRYPT_p, givenpw, SCRYPT_OUTPUT_SIZE);
        if (r != 0) {
-               printf("Failure in scrypt for %s\n", username);
+               fprintf(stderr, "Failure in scrypt for %s\n", username);
                return 0;
        }