]> andersk Git - openssh.git/commitdiff
- djm@cvs.openbsd.org 2001/12/21 08:52:22
authordjm <djm>
Tue, 22 Jan 2002 12:05:08 +0000 (12:05 +0000)
committerdjm <djm>
Tue, 22 Jan 2002 12:05:08 +0000 (12:05 +0000)
     [ssh-keygen.1 ssh-keygen.c]
     Remove default (rsa1) key type; ok markus@

ChangeLog
ssh-keygen.1
ssh-keygen.c

index 01d2da4915951680fd37d120b20497da830694fe..88114f091c51b7d32d9ccd7f76ce22d11c4a1581 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -9,6 +9,10 @@
    - Add OpenSSL sanity check: verify that header version matches version
      reported by library
  - (djm) Fix some bugs I introduced into ssh-rand-helper yesterday
+ - OpenBSD CVS Sync
+   - djm@cvs.openbsd.org 2001/12/21 08:52:22
+     [ssh-keygen.1 ssh-keygen.c]
+     Remove default (rsa1) key type; ok markus@
 
 20020121
  - (djm) Rework ssh-rand-helper:
index d8baa43bc832eafc7f8d4535b7daf5eb6af276c8..afecb2f07a5dad12fce8a96cbe1278da9154b115 100644 (file)
@@ -1,4 +1,4 @@
-.\"    $OpenBSD: ssh-keygen.1,v 1.51 2001/11/21 18:49:14 stevesk Exp $
+.\"    $OpenBSD: ssh-keygen.1,v 1.52 2001/12/21 08:52:22 djm Exp $
 .\"
 .\"  -*- nroff -*-
 .\"
 generates, manages and converts authentication keys for
 .Xr ssh 1 .
 .Nm
-defaults to generating a RSA1 key for use by SSH protocol version 1.
-Specifying the
+can create RSA keys for use by SSH protocol version 1 and RSA or DSA 
+keys for use by SSH protocol version 2. The type of key to be generated
+is specified with the
 .Fl t
-option instead creates a key for use by SSH protocol version 2.
+option.
 .Pp
 Normally each user wishing to use SSH
 with RSA or DSA authentication runs this once to create the authentication
@@ -202,8 +203,6 @@ for protocol version 1 and
 or
 .Dq dsa
 for protocol version 2.
-The default is
-.Dq rsa1 .
 .It Fl B
 Show the bubblebabble digest of specified private or public key file.
 .It Fl C Ar comment
index ccd737781e8173323d0a29bf2a6478287d721241..9e3a12a54f2cf49bd1fddce325f59c9e21712d2d 100644 (file)
@@ -12,7 +12,7 @@
  */
 
 #include "includes.h"
-RCSID("$OpenBSD: ssh-keygen.c,v 1.86 2001/12/19 07:18:56 deraadt Exp $");
+RCSID("$OpenBSD: ssh-keygen.c,v 1.87 2001/12/21 08:52:22 djm Exp $");
 
 #include <openssl/evp.h>
 #include <openssl/pem.h>
@@ -73,8 +73,7 @@ int convert_to_ssh2 = 0;
 int convert_from_ssh2 = 0;
 int print_public = 0;
 
-/* default to RSA for SSH-1 */
-char *key_type_name = "rsa1";
+char *key_type_name = NULL;
 
 /* argv0 */
 #ifdef HAVE___PROGNAME
@@ -835,7 +834,7 @@ usage(void)
 int
 main(int ac, char **av)
 {
-       char dotsshdir[16 * 1024], comment[1024], *passphrase1, *passphrase2;
+       char dotsshdir[MAXPATHLEN], comment[1024], *passphrase1, *passphrase2;
        char *reader_id = NULL;
        Key *private, *public;
        struct passwd *pw;
@@ -937,6 +936,10 @@ main(int ac, char **av)
                printf("Too many arguments.\n");
                usage();
        }
+       if (key_type_name == NULL) {
+               printf("You must specify a key type (-t).\n");
+               usage();
+       }
        if (change_passphrase && change_comment) {
                printf("Can only have one of -p and -c.\n");
                usage();
This page took 0.265801 seconds and 5 git commands to generate.