summaryrefslogtreecommitdiff
path: root/ssh-keygen.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2002-03-11 22:53:29 +1100
committerDamien Miller <djm@mindrot.org>2002-03-11 22:53:29 +1100
commit4a10d2e90b510dcbb96eb9b86b1122c0c1f72163 (patch)
tree9f7a9e39db29b3474af8b66af34c9221e2ffd784 /ssh-keygen.c
parent581930735aa20f9bcff64f0e22f1ee5d409c18af (diff)
- (djm) ssh-keygen -i needs seeded RNG; report from markus@
Diffstat (limited to 'ssh-keygen.c')
-rw-r--r--ssh-keygen.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/ssh-keygen.c b/ssh-keygen.c
index 6aff4a444..2de87167e 100644
--- a/ssh-keygen.c
+++ b/ssh-keygen.c
@@ -947,12 +947,10 @@ main(int ac, char **av)
947 do_fingerprint(pw); 947 do_fingerprint(pw);
948 if (change_passphrase) 948 if (change_passphrase)
949 do_change_passphrase(pw); 949 do_change_passphrase(pw);
950 if (change_comment)
951 do_change_comment(pw);
952 if (convert_to_ssh2) 950 if (convert_to_ssh2)
953 do_convert_to_ssh2(pw); 951 do_convert_to_ssh2(pw);
954 if (convert_from_ssh2) 952 if (change_comment)
955 do_convert_from_ssh2(pw); 953 do_change_comment(pw);
956 if (print_public) 954 if (print_public)
957 do_print_public(pw); 955 do_print_public(pw);
958 if (reader_id != NULL) { 956 if (reader_id != NULL) {
@@ -970,6 +968,9 @@ main(int ac, char **av)
970 seed_rng(); 968 seed_rng();
971 arc4random_stir(); 969 arc4random_stir();
972 970
971 if (convert_from_ssh2)
972 do_convert_from_ssh2(pw);
973
973 if (key_type_name == NULL) { 974 if (key_type_name == NULL) {
974 printf("You must specify a key type (-t).\n"); 975 printf("You must specify a key type (-t).\n");
975 usage(); 976 usage();