diff options
author | Markus Friedl <markus@cvs.openbsd.org> | 2000-05-02 22:18:05 +0000 |
---|---|---|
committer | Markus Friedl <markus@cvs.openbsd.org> | 2000-05-02 22:18:05 +0000 |
commit | a6c68cea78a64195f2f8e29c2d4f6227293a9e96 (patch) | |
tree | 1a1213a3631edef5f8fc21fc5f9e885b9963e2ce /usr.bin/ssh/ssh-keygen.c | |
parent | 8aa0a8a6f34e9ba651a3a655111681dc19d9e698 (diff) |
default DSA key file ~/.ssh/id_dsa
Diffstat (limited to 'usr.bin/ssh/ssh-keygen.c')
-rw-r--r-- | usr.bin/ssh/ssh-keygen.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/ssh/ssh-keygen.c b/usr.bin/ssh/ssh-keygen.c index 09a178baf4d..f7c5351756f 100644 --- a/usr.bin/ssh/ssh-keygen.c +++ b/usr.bin/ssh/ssh-keygen.c @@ -7,7 +7,7 @@ */ #include "includes.h" -RCSID("$Id: ssh-keygen.c,v 1.22 2000/05/01 08:20:56 hugh Exp $"); +RCSID("$Id: ssh-keygen.c,v 1.23 2000/05/02 22:18:04 markus Exp $"); #include <openssl/evp.h> #include <openssl/pem.h> @@ -72,7 +72,8 @@ ask_filename(struct passwd *pw, const char *prompt) { char buf[1024]; snprintf(identity_file, sizeof(identity_file), "%s/%s", - pw->pw_dir, SSH_CLIENT_IDENTITY); + pw->pw_dir, + dsa_mode ? SSH_CLIENT_ID_DSA: SSH_CLIENT_IDENTITY); printf("%s (%s): ", prompt, identity_file); fflush(stdout); if (fgets(buf, sizeof(buf), stdin) == NULL) |