aboutsummaryrefslogtreecommitdiffstats
path: root/dirmngr/dns-cert.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2015-10-06 17:57:00 +0000
committerWerner Koch <[email protected]>2015-10-06 17:57:00 +0000
commit211b8084ee4391baec35e8c5bd75a9ecbcb889a7 (patch)
tree294985eaf97d31437514c136c628693e5616743d /dirmngr/dns-cert.h
parentdirmngr: Change DNS code to make additions easier. (diff)
downloadgnupg-211b8084ee4391baec35e8c5bd75a9ecbcb889a7.tar.gz
gnupg-211b8084ee4391baec35e8c5bd75a9ecbcb889a7.zip
dirmngr: Improve DNS code to retrieve arbitrary records.
* dirmngr/dns-cert.c (get_dns_cert): Add hack to retrieve arbitrary resource records. * dirmngr/dns-cert.h (DNS_CERTTYPE_RRBASE): New. (DNS_CERTTYPE_RR61): New. -- This has been tested with ADNS on Unix and with the standard resolver. Because ADNS works it should also work on Windows. Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'dirmngr/dns-cert.h')
-rw-r--r--dirmngr/dns-cert.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/dirmngr/dns-cert.h b/dirmngr/dns-cert.h
index 5a579ec1f..9dbc58c23 100644
--- a/dirmngr/dns-cert.h
+++ b/dirmngr/dns-cert.h
@@ -43,7 +43,9 @@
#define DNS_CERTTYPE_IACPKIX 8 /* The URL of an Attribute Certificate. */
#define DNS_CERTTYPE_URI 253 /* URI private. */
#define DNS_CERTTYPE_OID 254 /* OID private. */
-
+/* Hacks for our implementation. */
+#define DNS_CERTTYPE_RRBASE 1024 /* Base of special constants. */
+#define DNS_CERTTYPE_RR61 (DNS_CERTTYPE_RRBASE + 61)
gpg_error_t get_dns_cert (const char *name, int want_certtype,
void **r_key, size_t *r_keylen,