1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
$NetBSD: patch-aj,v 1.4 2004/08/04 06:43:52 minskim Exp $
--- ssh-keygen.c.orig Tue Dec 30 18:34:52 2003
+++ ssh-keygen.c
@@ -623,6 +623,7 @@ do_change_passphrase(struct passwd *pw)
exit(0);
}
+#ifndef __INTERIX
/*
* Print the SSHFP RR.
*/
@@ -652,6 +653,7 @@ do_print_resource_record(struct passwd *
printf("failed to read v2 public key from %s.\n", identity_file);
exit(1);
}
+#endif /* __INTERIX */
/*
* Change the comment of a private key file.
@@ -770,7 +772,9 @@ 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");
+#ifndef __INTERIX
fprintf(stderr, " -r hostname Print DNS resource record.\n");
+#endif /* __INTERIX */
#ifdef SMARTCARD
fprintf(stderr, " -D reader Download public key from smartcard.\n");
fprintf(stderr, " -U reader Upload private key to smartcard.\n");
@@ -967,7 +971,11 @@ main(int ac, char **av)
if (print_public)
do_print_public(pw);
if (resource_record_hostname != NULL) {
+#ifndef __INTERIX
do_print_resource_record(pw, resource_record_hostname);
+#else /* __INTERIX */
+ fatal("no support for DNS.");
+#endif /* __INTERIX */
}
if (reader_id != NULL) {
#ifdef SMARTCARD
|