diff options
author | stevesk <stevesk> | 2002-07-20 19:05:40 +0000 |
---|---|---|
committer | stevesk <stevesk> | 2002-07-20 19:05:40 +0000 |
commit | 11a093b4523c5b34dd2c6a282eea4967f1d0bc5b (patch) | |
tree | ad53a7062b4ff5fda18c049bf1c015556f4bf945 /ssh-keygen.c | |
parent | 8674bc9af68bec611216b239f7959ceb5473b072 (diff) | |
download | openssh-11a093b4523c5b34dd2c6a282eea4967f1d0bc5b.tar.gz |
- (stevesk) [ssh-keygen.c] bug #231: always init/seed_rng().
Diffstat (limited to 'ssh-keygen.c')
-rw-r--r-- | ssh-keygen.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/ssh-keygen.c b/ssh-keygen.c index 4273c113..3478e372 100644 --- a/ssh-keygen.c +++ b/ssh-keygen.c @@ -761,6 +761,8 @@ main(int ac, char **av) __progname = get_progname(av[0]); SSLeay_add_all_algorithms(); + init_rng(); + seed_rng(); /* we need this for the home * directory. */ pw = getpwuid(getuid()); @@ -855,10 +857,12 @@ main(int ac, char **av) do_fingerprint(pw); if (change_passphrase) do_change_passphrase(pw); - if (convert_to_ssh2) - do_convert_to_ssh2(pw); if (change_comment) do_change_comment(pw); + if (convert_to_ssh2) + do_convert_to_ssh2(pw); + if (convert_from_ssh2) + do_convert_from_ssh2(pw); if (print_public) do_print_public(pw); if (reader_id != NULL) { @@ -872,13 +876,8 @@ main(int ac, char **av) #endif /* SMARTCARD */ } - init_rng(); - seed_rng(); arc4random_stir(); - if (convert_from_ssh2) - do_convert_from_ssh2(pw); - if (key_type_name == NULL) { printf("You must specify a key type (-t).\n"); usage(); |