changeset 977:cfac45421ba0

increae MAX_STRING_LEN for sun ssh
author Matt Johnston <matt@ucc.asn.au>
date Thu, 23 Oct 2014 20:50:06 +0800
parents 964d41e3aeb2
children d9b5c33329fa
files sysoptions.h
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/sysoptions.h	Wed Oct 22 07:12:52 2014 +0800
+++ b/sysoptions.h	Thu Oct 23 20:50:06 2014 +0800
@@ -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