]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
pullup:
authorMark Andrews <marka@isc.org>
Wed, 19 Dec 2001 01:09:58 +0000 (01:09 +0000)
committerMark Andrews <marka@isc.org>
Wed, 19 Dec 2001 01:09:58 +0000 (01:09 +0000)
fix large DH key generation, hopefully for the last time.

lib/dns/sec/dst/dst_api.c
lib/dns/sec/dst/include/dst/dst.h

index 82076d4bb0d5cf1d13b47a2b65d4ff8914ee2c9d..84afc48a2778081a08298d4b3de88ff38eee43b0 100644 (file)
@@ -19,7 +19,7 @@
 
 /*
  * Principal Author: Brian Wellington
- * $Id: dst_api.c,v 1.88.2.1 2001/11/06 19:24:08 gson Exp $
+ * $Id: dst_api.c,v 1.88.2.2 2001/12/19 01:09:56 marka Exp $
  */
 
 #include <config.h>
@@ -900,7 +900,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;
index cbb9e531068c5b3667ed519aadf8717ed986b997..c411ef8f1dc347d0c17d0b55dbedb25a3c402f96 100644 (file)
@@ -15,7 +15,7 @@
  * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: dst.h,v 1.42 2001/05/31 18:34:51 tale Exp $ */
+/* $Id: dst.h,v 1.42.2.1 2001/12/19 01:09:58 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