summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--ssh-keygen.c10
2 files changed, 9 insertions, 6 deletions
diff --git a/ChangeLog b/ChangeLog
index a75883387..9f9772468 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -32,6 +32,9 @@
32 - markus@cvs.openbsd.org 2001/12/25 18:53:00 32 - markus@cvs.openbsd.org 2001/12/25 18:53:00
33 [auth1.c] 33 [auth1.c]
34 be more carefull on allocation 34 be more carefull on allocation
35 - markus@cvs.openbsd.org 2001/12/27 18:10:29
36 [ssh-keygen.c]
37 -t is only needed for key generation (unbreaks -i, -e, etc).
35 38
3620020121 3920020121
37 - (djm) Rework ssh-rand-helper: 40 - (djm) Rework ssh-rand-helper:
@@ -7179,4 +7182,4 @@
7179 - Wrote replacements for strlcpy and mkdtemp 7182 - Wrote replacements for strlcpy and mkdtemp
7180 - Released 1.0pre1 7183 - Released 1.0pre1
7181 7184
7182$Id: ChangeLog,v 1.1731 2002/01/22 12:07:52 djm Exp $ 7185$Id: ChangeLog,v 1.1732 2002/01/22 12:08:16 djm Exp $
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"
15RCSID("$OpenBSD: ssh-keygen.c,v 1.87 2001/12/21 08:52:22 djm Exp $"); 15RCSID("$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);