From 5e606a964b1a15b679deca1511821969cbc750d6 Mon Sep 17 00:00:00 2001
From: Matt Johnston <matt@ucc.asn.au>
Date: Thu, 23 Oct 2014 20:50:06 +0800
Subject: [PATCH] increae MAX_STRING_LEN for sun ssh

---
 sysoptions.h | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/sysoptions.h b/sysoptions.h
index d01b4ea2..385a903e 100644
--- a/sysoptions.h
+++ b/sysoptions.h
@@ -153,8 +153,7 @@
 #define MAX_CHANNELS 100 /* simple mem restriction, includes each tcp/x11
 							connection, so can't be _too_ small */
 
-#define MAX_STRING_LEN 1400 /* ~= MAX_PROPOSED_ALGO * MAX_NAME_LEN, also
-							   is the max length for a password etc */
+#define MAX_STRING_LEN 2400 /* Sun SSH needs this long for algos */
 
 /* For a 4096 bit DSS key, empirically determined */
 #define MAX_PUBKEY_SIZE 1700
-- 
GitLab