summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortedu <tedu@openbsd.org>2014-01-19 18:39:34 +0000
committertedu <tedu@openbsd.org>2014-01-19 18:39:34 +0000
commit58ac87a340764f57a035517153897ea467ec7ba6 (patch)
tree77ece0ef467706f5617a581250755baad99c50bb
parent- statics -> statistics (diff)
downloadwireguard-openbsd-58ac87a340764f57a035517153897ea467ec7ba6.tar.xz
wireguard-openbsd-58ac87a340764f57a035517153897ea467ec7ba6.zip
better error message for readpassphrase. from fritjof. ok deraadt
-rw-r--r--usr.bin/signify/signify.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/signify/signify.c b/usr.bin/signify/signify.c
index cf9e239657a..6467d30f688 100644
--- a/usr.bin/signify/signify.c
+++ b/usr.bin/signify/signify.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: signify.c,v 1.38 2014/01/15 00:31:34 espie Exp $ */
+/* $OpenBSD: signify.c,v 1.39 2014/01/19 18:39:34 tedu Exp $ */
/*
* Copyright (c) 2013 Ted Unangst <tedu@openbsd.org>
*
@@ -255,8 +255,8 @@ kdf(uint8_t *salt, size_t saltlen, int rounds, uint8_t *key, size_t keylen)
return;
}
- if (!readpassphrase("passphrase: ", pass, sizeof(pass), 0))
- errx(1, "readpassphrase");
+ if (!readpassphrase("passphrase: ", pass, sizeof(pass), RPP_ECHO_OFF))
+ errx(1, "unable to read passphrase");
if (strlen(pass) == 0)
errx(1, "please provide a password");
if (bcrypt_pbkdf(pass, strlen(pass), salt, saltlen, key,