diff options
author | Ben Lindstrom <mouring@eviladmin.org> | 2001-04-16 02:00:02 +0000 |
---|---|---|
committer | Ben Lindstrom <mouring@eviladmin.org> | 2001-04-16 02:00:02 +0000 |
commit | 15f33866a6fb9e67f2a89f5edc8b8c7635f6d984 (patch) | |
tree | 71e6283773761cceccd9bca3341348f6a073d333 /ssh-keygen.c | |
parent | 897741eeaa0ebb5e2ce10a6b0ada8f3e55d22777 (diff) | |
download | openssh-git-15f33866a6fb9e67f2a89f5edc8b8c7635f6d984.tar.gz |
- markus@cvs.openbsd.org 2001/04/15 16:58:03
[authfile.c ssh-keygen.c sshd.c]
don't use errno for key_{load,save}_private; discussion w/ solar@openwall
Diffstat (limited to 'ssh-keygen.c')
-rw-r--r-- | ssh-keygen.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/ssh-keygen.c b/ssh-keygen.c index 0469ca5b..d4ba23a4 100644 --- a/ssh-keygen.c +++ b/ssh-keygen.c @@ -12,7 +12,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: ssh-keygen.c,v 1.55 2001/04/05 10:42:54 markus Exp $"); +RCSID("$OpenBSD: ssh-keygen.c,v 1.56 2001/04/15 16:58:03 markus Exp $"); #include <openssl/evp.h> #include <openssl/pem.h> @@ -512,8 +512,7 @@ do_change_passphrase(struct passwd *pw) /* Save the file using the new passphrase. */ if (!key_save_private(private, identity_file, passphrase1, comment)) { - printf("Saving the key failed: %s: %s.\n", - identity_file, strerror(errno)); + printf("Saving the key failed: %s.\n", identity_file); memset(passphrase1, 0, strlen(passphrase1)); xfree(passphrase1); key_free(private); @@ -591,8 +590,7 @@ do_change_comment(struct passwd *pw) /* Save the file using the new passphrase. */ if (!key_save_private(private, identity_file, passphrase, new_comment)) { - printf("Saving the key failed: %s: %s.\n", - identity_file, strerror(errno)); + printf("Saving the key failed: %s.\n", identity_file); memset(passphrase, 0, strlen(passphrase)); xfree(passphrase); key_free(private); @@ -838,8 +836,7 @@ passphrase_again: /* Save the key with the given passphrase and comment. */ if (!key_save_private(private, identity_file, passphrase1, comment)) { - printf("Saving the key failed: %s: %s.\n", - identity_file, strerror(errno)); + printf("Saving the key failed: %s.\n", identity_file); memset(passphrase1, 0, strlen(passphrase1)); xfree(passphrase1); exit(1); |