commit:98f1ef5611188a4ba79757c55b13b987d9858028
author:Chip Black
committer:Chip Black
date:Sat Nov 23 14:47:21 2013 -0600
parents:38c482a01320aafbfead43ee0aa3edeba8314d8e
Fix a couple of lingering printfs
diff --git a/common/auth.c b/common/auth.c
line changes: +2/-2
index 3fd0376..439e2ad
--- 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;
 	}