diff options
author | Werner Koch <[email protected]> | 2015-02-25 11:03:21 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2015-02-25 11:03:21 +0000 |
commit | af60152a4632ef26ca950a424429b15b6c69038d (patch) | |
tree | 7f2df4076d737979c94392586bd18abe72e6db92 /common/t-dns-cert.c | |
parent | Move new mailbox.c source file to common/. (diff) | |
download | gnupg-af60152a4632ef26ca950a424429b15b6c69038d.tar.gz gnupg-af60152a4632ef26ca950a424429b15b6c69038d.zip |
common: Allow requesting a specific certtype with get_dns_cert()
* common/dns-cert.c (get_dns_cert): Add arg want_certtype. Change all
callers.
(CERTTYPE_): Move constants to ...
* common/dns-cert.h: here as DNS_CERTTYPE_.
Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to '')
-rw-r--r-- | common/t-dns-cert.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/t-dns-cert.c b/common/t-dns-cert.c index 71c7a9cfe..a170ffb2d 100644 --- a/common/t-dns-cert.c +++ b/common/t-dns-cert.c @@ -54,7 +54,7 @@ main (int argc, char **argv) printf ("CERT lookup on '%s'\n", name); - err = get_dns_cert (name, &key, &fpr, &fpr_len, &url); + err = get_dns_cert (name, DNS_CERTTYPE_ANY, &key, &fpr, &fpr_len, &url); if (err) printf ("get_dns_cert failed: %s <%s>\n", gpg_strerror (err), gpg_strsource (err)); |