diff options
author | Werner Koch <[email protected]> | 2011-11-30 16:14:08 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2011-11-30 16:34:49 +0000 |
commit | 31f548a18aed729c05ea367f2d8a8104480430d5 (patch) | |
tree | d3033d8ffbdc23f6115243cdb65b4438d19ac846 /common/dns-cert.h | |
parent | * common/estream.c (es_fopenmem_init): New. (diff) | |
download | gnupg-31f548a18aed729c05ea367f2d8a8104480430d5.tar.gz gnupg-31f548a18aed729c05ea367f2d8a8104480430d5.zip |
Rewrite dns-cert.c to not use the gpg-only iobuf stuff.
* common/dns-cert.c: Remove iobuf.h.
(get_dns_cert): Rename to _get_dns_cert. Remove MAX_SIZE arg. Change
iobuf arg to a estream-t. Rewrite function to make use of estream
instead of iobuf. Require all parameters. Return an gpg_error_t
error instead of the type. Add arg ERRSOURCE.
* common/dns-cert.h (get_dns_cert): New macro to pass the error source
to _gpg_dns_cert.
* common/t-dns-cert.c (main): Adjust for changes in get_dns_cert.
* g10/keyserver.c (keyserver_import_cert): Ditto.
* doc/gpg.texi (GPG Configuration Options): Remove max-cert-size.
Diffstat (limited to '')
-rw-r--r-- | common/dns-cert.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/common/dns-cert.h b/common/dns-cert.h index ebfeec838..a1d3d86da 100644 --- a/common/dns-cert.h +++ b/common/dns-cert.h @@ -19,8 +19,13 @@ #ifndef GNUPG_COMMON_DNS_CERT_H #define GNUPG_COMMON_DNS_CERT_H -int get_dns_cert (const char *name, size_t max_size, iobuf_t *iobuf, - unsigned char **fpr, size_t *fpr_len, char **url); +gpg_error_t _get_dns_cert (const char *name, estream_t *r_key, + unsigned char **r_fpr, size_t *r_fprlen, + char **r_url, + gpg_err_source_t errsource); +#define get_dns_cert(a,b,c,d,e) \ + _get_dns_cert ((a),(b),(c),(d),(e), GPG_ERR_SOURCE_DEFAULT); + #endif /*GNUPG_COMMON_DNS_CERT_H*/ |