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.
This commit is contained in:
Werner Koch 2011-11-28 18:18:12 +01:00
parent 982105f1ce
commit f95cb909ba
3 changed files with 9 additions and 2 deletions

View File

@ -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.

View File

@ -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

View File

@ -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;