diff options
Diffstat (limited to 'ssh-keygen.c')
-rw-r--r-- | ssh-keygen.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ssh-keygen.c b/ssh-keygen.c index 9e3a12a54..4f976a826 100644 --- a/ssh-keygen.c +++ b/ssh-keygen.c | |||
@@ -12,7 +12,7 @@ | |||
12 | */ | 12 | */ |
13 | 13 | ||
14 | #include "includes.h" | 14 | #include "includes.h" |
15 | RCSID("$OpenBSD: ssh-keygen.c,v 1.87 2001/12/21 08:52:22 djm Exp $"); | 15 | RCSID("$OpenBSD: ssh-keygen.c,v 1.88 2001/12/27 18:10:29 markus Exp $"); |
16 | 16 | ||
17 | #include <openssl/evp.h> | 17 | #include <openssl/evp.h> |
18 | #include <openssl/pem.h> | 18 | #include <openssl/pem.h> |
@@ -936,10 +936,6 @@ main(int ac, char **av) | |||
936 | printf("Too many arguments.\n"); | 936 | printf("Too many arguments.\n"); |
937 | usage(); | 937 | usage(); |
938 | } | 938 | } |
939 | if (key_type_name == NULL) { | ||
940 | printf("You must specify a key type (-t).\n"); | ||
941 | usage(); | ||
942 | } | ||
943 | if (change_passphrase && change_comment) { | 939 | if (change_passphrase && change_comment) { |
944 | printf("Can only have one of -p and -c.\n"); | 940 | printf("Can only have one of -p and -c.\n"); |
945 | usage(); | 941 | usage(); |
@@ -969,6 +965,10 @@ main(int ac, char **av) | |||
969 | 965 | ||
970 | arc4random_stir(); | 966 | arc4random_stir(); |
971 | 967 | ||
968 | if (key_type_name == NULL) { | ||
969 | printf("You must specify a key type (-t).\n"); | ||
970 | usage(); | ||
971 | } | ||
972 | type = key_type_from_name(key_type_name); | 972 | type = key_type_from_name(key_type_name); |
973 | if (type == KEY_UNSPEC) { | 973 | if (type == KEY_UNSPEC) { |
974 | fprintf(stderr, "unknown key type %s\n", key_type_name); | 974 | fprintf(stderr, "unknown key type %s\n", key_type_name); |