]> andersk Git - openssh.git/blobdiff - ssh-add.c
- (bal) Missed two files in major resync. auth-bsdauth.c and auth-skey.c
[openssh.git] / ssh-add.c
index 323e73ecf6ad81bf270d5d560f57491715b26a41..9240b0d1ea5b62896c3fecb147321485dfb34fbc 100644 (file)
--- a/ssh-add.c
+++ b/ssh-add.c
@@ -35,7 +35,7 @@
  */
 
 #include "includes.h"
-RCSID("$OpenBSD: ssh-add.c,v 1.36 2001/04/18 21:57:42 markus Exp $");
+RCSID("$OpenBSD: ssh-add.c,v 1.38 2001/06/06 23:19:35 markus Exp $");
 
 #include <openssl/evp.h>
 
@@ -125,8 +125,7 @@ add_file(AuthenticationConnection *ac, const char *filename)
        if (private == NULL) {
                /* clear passphrase since it did not work */
                clear_pass();
-               printf("Need passphrase for %.200s\n", filename);
-               snprintf(msg, sizeof msg, "Enter passphrase for %.200s ",
+               snprintf(msg, sizeof msg, "Enter passphrase for %.200s: ",
                   comment);
                for (;;) {
                        pass = read_passphrase(msg, 1);
@@ -139,7 +138,7 @@ add_file(AuthenticationConnection *ac, const char *filename)
                        if (private != NULL)
                                break;
                        clear_pass();
-                       strlcpy(msg, "Bad passphrase, try again ", sizeof msg);
+                       strlcpy(msg, "Bad passphrase, try again: ", sizeof msg);
                }
        }
        if (ssh_add_identity(ac, private, comment))
@@ -194,6 +193,7 @@ main(int argc, char **argv)
 
        __progname = get_progname(argv[0]);
        init_rng();
+       seed_rng();
 
        SSLeay_add_all_algorithms();
 
This page took 0.224072 seconds and 4 git commands to generate.