diff options
Diffstat (limited to 'ssh-keygen.c')
-rw-r--r-- | ssh-keygen.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/ssh-keygen.c b/ssh-keygen.c index 915d5580b..7f9c7fd1a 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.132 2005/10/30 08:52:18 djm Exp $"); | 15 | RCSID("$OpenBSD: ssh-keygen.c,v 1.133 2005/10/31 11:12:49 djm Exp $"); |
16 | 16 | ||
17 | #include <openssl/evp.h> | 17 | #include <openssl/evp.h> |
18 | #include <openssl/pem.h> | 18 | #include <openssl/pem.h> |
@@ -1251,10 +1251,9 @@ main(int ac, char **av) | |||
1251 | 1251 | ||
1252 | arc4random_stir(); | 1252 | arc4random_stir(); |
1253 | 1253 | ||
1254 | if (key_type_name == NULL) { | 1254 | if (key_type_name == NULL) |
1255 | printf("You must specify a key type (-t).\n"); | 1255 | key_type_name = "rsa"; |
1256 | usage(); | 1256 | |
1257 | } | ||
1258 | type = key_type_from_name(key_type_name); | 1257 | type = key_type_from_name(key_type_name); |
1259 | if (type == KEY_UNSPEC) { | 1258 | if (type == KEY_UNSPEC) { |
1260 | fprintf(stderr, "unknown key type %s\n", key_type_name); | 1259 | fprintf(stderr, "unknown key type %s\n", key_type_name); |