# HG changeset patch # User Matt Johnston # Date 1414068606 -28800 # Node ID cfac45421ba02cad4528563a3aef976d414df916 # Parent 964d41e3aeb2d51a0498d2f9da756a4bc1cde558 increae MAX_STRING_LEN for sun ssh diff -r 964d41e3aeb2 -r cfac45421ba0 sysoptions.h --- 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