]> andersk Git - openssh.git/blobdiff - ssh-keygen.c
- millert@cvs.openbsd.org 2001/03/04 17:42:28
[openssh.git] / ssh-keygen.c
index 3b5d22fa3dbc50cacaec8a218cc2ae77549bcf43..e5e34cb2f1c0f01dfdcd386481e3544b1cd2218f 100644 (file)
@@ -12,7 +12,7 @@
  */
 
 #include "includes.h"
-RCSID("$OpenBSD: ssh-keygen.c,v 1.42 2001/02/04 15:32:26 stevesk Exp $");
+RCSID("$OpenBSD: ssh-keygen.c,v 1.45 2001/02/22 08:03:51 deraadt Exp $");
 
 #include <openssl/evp.h>
 #include <openssl/pem.h>
@@ -532,6 +532,7 @@ do_change_comment(struct passwd *pw)
        public = key_new(KEY_RSA1);
        if (!load_public_key(identity_file, public, NULL)) {
                printf("%s is not a valid key file.\n", identity_file);
+               printf("Comments are only supported in RSA1 keys\n");
                exit(1);
        }
 
@@ -604,7 +605,8 @@ do_change_comment(struct passwd *pw)
 void
 usage(void)
 {
-       printf("Usage: %s [-lpqxXyc] [-t type] [-b bits] [-f file] [-C comment] [-N new-pass] [-P pass]\n", __progname);
+       printf("Usage: %s [-lpqxXyc] [-t type] [-b bits] [-f file] [-C comment] "
+           "[-N new-pass] [-P pass]\n", __progname);
        exit(1);
 }
 
This page took 0.028196 seconds and 4 git commands to generate.