Hi tech,

this diff changes the readpassphrase call to be more like described in the 
manpage.
On the users site "readpassphrase" doesn't really show what the problem is.
On the developers site the flag 0 is not described in the manpage.

Regards,
Fritjof

Index: signify.c
===================================================================
RCS file: /cvs/src/usr.bin/signify/signify.c,v
retrieving revision 1.38
diff -u -p -u -r1.38 signify.c
--- signify.c   15 Jan 2014 00:31:34 -0000      1.38
+++ signify.c   18 Jan 2014 23:00:09 -0000
@@ -255,8 +255,8 @@ kdf(uint8_t *salt, size_t saltlen, int r
                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,

Reply via email to