mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
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 <wk@gnupg.org>
This commit is contained in:
parent
6cf80dc77e
commit
211b8084ee
2 changed files with 55 additions and 4 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue