summaryrefslogtreecommitdiffstats
path: root/usr.bin/ssh/ssh-keygen.c
diff options
context:
space:
mode:
authorjakob <jakob@openbsd.org>2003-10-14 19:42:10 +0000
committerjakob <jakob@openbsd.org>2003-10-14 19:42:10 +0000
commit0e4acd6318d0c8034ef40b5a5ce563629f571a0d (patch)
treed237d9d195d4561103351433007dab4a574e5f50 /usr.bin/ssh/ssh-keygen.c
parentOk, now that the via c3 crypto stuff is in the tree, merge the last bit of (diff)
downloadwireguard-openbsd-0e4acd6318d0c8034ef40b5a5ce563629f571a0d.tar.xz
wireguard-openbsd-0e4acd6318d0c8034ef40b5a5ce563629f571a0d.zip
include SSHFP lookup code (not enabled by default). ok markus@
Diffstat (limited to 'usr.bin/ssh/ssh-keygen.c')
-rw-r--r--usr.bin/ssh/ssh-keygen.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/usr.bin/ssh/ssh-keygen.c b/usr.bin/ssh/ssh-keygen.c
index ee7ca8f4432..46874e9ba05 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.109 2003/09/18 13:02:21 miod Exp $");
+RCSID("$OpenBSD: ssh-keygen.c,v 1.110 2003/10/14 19:42:10 jakob Exp $");
#include <openssl/evp.h>
#include <openssl/pem.h>
@@ -32,9 +32,7 @@ RCSID("$OpenBSD: ssh-keygen.c,v 1.109 2003/09/18 13:02:21 miod Exp $");
#ifdef SMARTCARD
#include "scard.h"
#endif
-#ifdef DNS
#include "dns.h"
-#endif
/* Number of bits in the RSA/DSA key. This value can be changed on the command line. */
int bits = 1024;
@@ -621,7 +619,6 @@ do_change_passphrase(struct passwd *pw)
exit(0);
}
-#ifdef DNS
/*
* Print the SSHFP RR.
*/
@@ -651,7 +648,6 @@ do_print_resource_record(struct passwd *pw, char *hostname)
printf("failed to read v2 public key from %s.\n", identity_file);
exit(1);
}
-#endif /* DNS */
/*
* Change the comment of a private key file.
@@ -770,9 +766,7 @@ usage(void)
fprintf(stderr, " -C comment Provide new comment.\n");
fprintf(stderr, " -N phrase Provide new passphrase.\n");
fprintf(stderr, " -P phrase Provide old passphrase.\n");
-#ifdef DNS
fprintf(stderr, " -r hostname Print DNS resource record.\n");
-#endif /* DNS */
#ifdef SMARTCARD
fprintf(stderr, " -D reader Download public key from smartcard.\n");
fprintf(stderr, " -U reader Upload private key to smartcard.\n");
@@ -950,11 +944,7 @@ main(int ac, char **av)
if (print_public)
do_print_public(pw);
if (resource_record_hostname != NULL) {
-#ifdef DNS
do_print_resource_record(pw, resource_record_hostname);
-#else /* DNS */
- fatal("no DNS support.");
-#endif /* DNS */
}
if (reader_id != NULL) {
#ifdef SMARTCARD