From 98f1ef5611188a4ba79757c55b13b987d9858028 Mon Sep 17 00:00:00 2001 From: Chip Black Date: Sat, 23 Nov 2013 14:47:21 -0600 Subject: [PATCH] Fix a couple of lingering printfs --- common/auth.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/auth.c b/common/auth.c index 3fd0376..439e2ad 100644 --- a/common/auth.c +++ b/common/auth.c @@ -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; } -- 2.25.1