projects
/
blerg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
38c482a
)
Fix a couple of lingering printfs
author
Chip Black
<bytex64@bytex64.net>
Sat, 23 Nov 2013 20:47:21 +0000
(14:47 -0600)
committer
Chip Black
<bytex64@bytex64.net>
Sat, 29 Mar 2014 03:56:23 +0000
(22:56 -0500)
common/auth.c
patch
|
blob
|
history
diff --git
a/common/auth.c
b/common/auth.c
index
3fd0376
..
439e2ad
100644
(file)
--- 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) {
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;
}
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) {
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;
}
return 0;
}