summaryrefslogtreecommitdiffstats
path: root/crypto/openssh/ssh-add.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/openssh/ssh-add.c')
-rw-r--r--crypto/openssh/ssh-add.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/crypto/openssh/ssh-add.c b/crypto/openssh/ssh-add.c
index 53a4a30..176fd85 100644
--- a/crypto/openssh/ssh-add.c
+++ b/crypto/openssh/ssh-add.c
@@ -50,6 +50,12 @@ RCSID("$OpenBSD: ssh-add.c,v 1.61 2002/06/19 00:27:55 deraadt Exp $");
#include "readpass.h"
#include "misc.h"
+#ifdef HAVE___PROGNAME
+extern char *__progname;
+#else
+char *__progname;
+#endif
+
/* argv0 */
extern char *__progname;
@@ -301,6 +307,10 @@ main(int argc, char **argv)
char *sc_reader_id = NULL;
int i, ch, deleting = 0, ret = 0;
+ __progname = get_progname(argv[0]);
+ init_rng();
+ seed_rng();
+
SSLeay_add_all_algorithms();
/* At first, get a connection to the authentication agent. */
OpenPOWER on IntegriCloud