summaryrefslogtreecommitdiff
path: root/signkey.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2004-08-12 16:41:58 +0000
committerMatt Johnston <matt@ucc.asn.au>2004-08-12 16:41:58 +0000
commite3e03ba5123d76b27b28db134603dbd6a1111f06 (patch)
tree0b54a905a49358adc37ce32e3e80239dd6ebd736 /signkey.c
parenta82d614485700729f2b650d45a73dbf55094707f (diff)
downloaddropbear-e3e03ba5123d76b27b28db134603dbd6a1111f06.tar.gz
Merging in the changes from 0.41-0.43 main Dropbear tree
Diffstat (limited to 'signkey.c')
-rw-r--r--signkey.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/signkey.c b/signkey.c
index 3efcc2b..7ae08b8 100644
--- a/signkey.c
+++ b/signkey.c
@@ -194,7 +194,7 @@ void buf_put_pub_key(buffer* buf, sign_key *key, int type) {
buffer *pubkeys;
TRACE(("enter buf_put_pub_key"));
- pubkeys = buf_new(1000);
+ pubkeys = buf_new(MAX_PUBKEY_SIZE);
#ifdef DROPBEAR_DSS
if (type == DROPBEAR_SIGNKEY_DSS) {
@@ -356,7 +356,7 @@ void buf_put_sign(buffer* buf, sign_key *key, int type,
buffer *sigblob;
- sigblob = buf_new(1000);
+ sigblob = buf_new(MAX_PUBKEY_SIZE);
#ifdef DROPBEAR_DSS
if (type == DROPBEAR_SIGNKEY_DSS) {