diff options
author | Werner Koch <wk@gnupg.org> | 2011-11-28 18:18:12 +0100 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2011-11-30 17:34:49 +0100 |
commit | f95cb909ba505f03ce81816c23dd58718b8cb6e6 (patch) | |
tree | 723d455adabe3c339da4cc45ed1ef67f9234f3d3 | |
parent | Use separate test module for dns-cert.c. (diff) | |
download | gnupg2-f95cb909ba505f03ce81816c23dd58718b8cb6e6.tar.xz gnupg2-f95cb909ba505f03ce81816c23dd58718b8cb6e6.zip |
Increase the default buffer size for DNS certificates.
* common/t-dns-cert.c (main): Increase MAX_SIZE to 64k.
* g10/keyserver.c (DEFAULT_MAX_CERT_SIZE): Increase from 16k to 64k.
-rw-r--r-- | common/ChangeLog | 2 | ||||
-rw-r--r-- | g10/ChangeLog | 4 | ||||
-rw-r--r-- | g10/keyserver.c | 5 |
3 files changed, 9 insertions, 2 deletions
diff --git a/common/ChangeLog b/common/ChangeLog index dd7ef5398..46a61dd7a 100644 --- a/common/ChangeLog +++ b/common/ChangeLog @@ -1,5 +1,7 @@ 2011-11-28 Werner Koch <wk@g10code.com> + * t-dns-cert.c (main): Increase MAX_SIZE to 64k. + * dns-cert.c (get_dns_cert): Factor test code out to ... * t-dns-cert.c: new file. diff --git a/g10/ChangeLog b/g10/ChangeLog index c799fc965..629de8172 100644 --- a/g10/ChangeLog +++ b/g10/ChangeLog @@ -1,3 +1,7 @@ +2011-11-28 Werner Koch <wk@g10code.com> + + * keyserver.c (DEFAULT_MAX_CERT_SIZE): Increase from 16k to 64k. + 2011-11-22 Werner Koch <wk@g10code.com> * pubkey-enc.c (get_session_key): Don't print anonymous recipient diff --git a/g10/keyserver.c b/g10/keyserver.c index 68dd15567..efb08773f 100644 --- a/g10/keyserver.c +++ b/g10/keyserver.c @@ -115,8 +115,9 @@ static gpg_error_t keyserver_put (ctrl_t ctrl, strlist_t keyspecs, struct keyserver_spec *keyserver); -/* Reasonable guess */ -#define DEFAULT_MAX_CERT_SIZE 16384 +/* Reasonable guess. The commonly used test key simon.josefsson.org + is larger than 32k, thus we need at least this value. */ +#define DEFAULT_MAX_CERT_SIZE 65536 static size_t max_cert_size=DEFAULT_MAX_CERT_SIZE; |