]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
pullup:
authorMark Andrews <marka@isc.org>
Wed, 19 Dec 2001 01:11:13 +0000 (01:11 +0000)
committerMark Andrews <marka@isc.org>
Wed, 19 Dec 2001 01:11:13 +0000 (01:11 +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 4370476812752dd94504e1c8c4c356565a101bad..b4c7ccc72a1db2f8812af12eb413d046efa942fa 100644 (file)
@@ -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 <config.h>
@@ -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;
index a14733df09674caaddff545bb3a572133ae3bf67..21f45611316293e6edbb4cbd223630a298550957 100644 (file)
@@ -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