summaryrefslogtreecommitdiffstats
path: root/usr.bin/ssh/ssh-keygen.c
diff options
context:
space:
mode:
authormarkus <markus@openbsd.org>2002-01-09 13:49:27 +0000
committermarkus <markus@openbsd.org>2002-01-09 13:49:27 +0000
commit35d4398734d9acf7448a7e37fd841dd4e5503ddd (patch)
tree92a90870ccf0e63e6c991b5f433be48559c793a8 /usr.bin/ssh/ssh-keygen.c
parentfree() 'interface' in {nat,binat,rdr}rule (diff)
downloadwireguard-openbsd-35d4398734d9acf7448a7e37fd841dd4e5503ddd.tar.xz
wireguard-openbsd-35d4398734d9acf7448a7e37fd841dd4e5503ddd.zip
append \n only for public keys
Diffstat (limited to 'usr.bin/ssh/ssh-keygen.c')
-rw-r--r--usr.bin/ssh/ssh-keygen.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/ssh/ssh-keygen.c b/usr.bin/ssh/ssh-keygen.c
index e1d8d57d5a3..46c9b415353 100644
--- a/usr.bin/ssh/ssh-keygen.c
+++ b/usr.bin/ssh/ssh-keygen.c
@@ -12,7 +12,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: ssh-keygen.c,v 1.89 2001/12/29 21:56:01 stevesk Exp $");
+RCSID("$OpenBSD: ssh-keygen.c,v 1.90 2002/01/09 13:49:27 markus Exp $");
#include <openssl/evp.h>
#include <openssl/pem.h>
@@ -350,7 +350,8 @@ do_convert_from_ssh2(struct passwd *pw)
exit(1);
}
key_free(k);
- fprintf(stdout, "\n");
+ if (!private)
+ fprintf(stdout, "\n");
fclose(fp);
exit(0);
}