]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
fix large DH key generation, hopefully for the last time.
authorBrian Wellington <source@isc.org>
Tue, 18 Dec 2001 06:05:41 +0000 (06:05 +0000)
committerBrian Wellington <source@isc.org>
Tue, 18 Dec 2001 06:05:41 +0000 (06:05 +0000)
lib/dns/sec/dst/dst_api.c
lib/dns/sec/dst/include/dst/dst.h

index cb0ea91c7963e177d552e4a8567c95a2069a5bd1..ec4978bb172f161af760119fa4a13048f86c8344 100644 (file)
@@ -19,7 +19,7 @@
 
 /*
  * Principal Author: Brian Wellington
- * $Id: dst_api.c,v 1.99 2001/11/30 18:26:46 bwelling Exp $
+ * $Id: dst_api.c,v 1.100 2001/12/18 06:05:39 bwelling Exp $
  */
 
 #include <config.h>
@@ -923,7 +923,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 a759b84875d6dbb905409a55b922d3b6a8db618f..58d4f0a6227113d7ba0434c1be9103c51afdb7f1 100644 (file)
@@ -15,7 +15,7 @@
  * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: dst.h,v 1.43 2001/09/15 00:01:58 bwelling Exp $ */
+/* $Id: dst.h,v 1.44 2001/12/18 06:05:41 bwelling Exp $ */
 
 #ifndef DST_DST_H
 #define DST_DST_H 1
@@ -54,7 +54,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