From: Mark Andrews Date: Wed, 19 Dec 2001 01:11:13 +0000 (+0000) Subject: pullup: X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f7786774326ee8e73739cd177258878ff6444162;p=thirdparty%2Fbind9.git pullup: fix large DH key generation, hopefully for the last time. --- diff --git a/lib/dns/sec/dst/dst_api.c b/lib/dns/sec/dst/dst_api.c index 43704768127..b4c7ccc72a1 100644 --- a/lib/dns/sec/dst/dst_api.c +++ b/lib/dns/sec/dst/dst_api.c @@ -19,7 +19,7 @@ /* * Principal Author: Brian Wellington - * $Id: dst_api.c,v 1.67.2.4 2001/06/11 16:58:39 gson Exp $ + * $Id: dst_api.c,v 1.67.2.5 2001/12/19 01:11:11 marka Exp $ */ #include @@ -1000,7 +1000,7 @@ write_public_key(const dst_key_t *key, const char *directory) { isc_region_t r; char filename[ISC_DIR_NAMEMAX]; unsigned char key_array[DST_KEY_MAXSIZE]; - char text_array[DST_KEY_MAXSIZE]; + char text_array[DST_KEY_MAXTEXTSIZE]; char class_array[10]; isc_result_t ret; dns_rdata_t rdata = DNS_RDATA_INIT; diff --git a/lib/dns/sec/dst/include/dst/dst.h b/lib/dns/sec/dst/include/dst/dst.h index a14733df096..21f45611316 100644 --- a/lib/dns/sec/dst/include/dst/dst.h +++ b/lib/dns/sec/dst/include/dst/dst.h @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: dst.h,v 1.38.4.1 2001/01/09 22:48:34 bwelling Exp $ */ +/* $Id: dst.h,v 1.38.4.2 2001/12/19 01:11:13 marka Exp $ */ #ifndef DST_DST_H #define DST_DST_H 1 @@ -52,7 +52,13 @@ typedef struct dst_context dst_context_t; #define DST_MAX_ALGS 255 /* A buffer of this size is large enough to hold any key */ -#define DST_KEY_MAXSIZE 1024 +#define DST_KEY_MAXSIZE 1280 + +/* + * A buffer of this size is large enough to hold the textual representation + * of any key + */ +#define DST_KEY_MAXTEXTSIZE 2048 /* 'Type' for dst_read_key() */ #define DST_TYPE_PRIVATE 0x2000000