increae MAX_STRING_LEN for sun ssh

This commit is contained in:
Matt Johnston 2014-10-23 20:50:06 +08:00
parent d88034434c
commit 5e606a964b

View File

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