mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
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.
This commit is contained in:
parent
8cf2356fa8
commit
31f548a18a
7 changed files with 186 additions and 109 deletions
|
@ -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*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue