comparison sysoptions.h @ 1138:cc3916a7afd9

increase MAX_CMD_LEN to 9000
author Matt Johnston <matt@ucc.asn.au>
date Mon, 03 Aug 2015 21:17:23 +0800
parents 2265d7ebfdeb
children 809feaa9408f
comparison
equal deleted inserted replaced
1137:40434003bd96 1138:cc3916a7afd9
45 45
46 /* the number of NAME=VALUE pairs to malloc for environ, if we don't have 46 /* the number of NAME=VALUE pairs to malloc for environ, if we don't have
47 * the clearenv() function */ 47 * the clearenv() function */
48 #define ENV_SIZE 100 48 #define ENV_SIZE 100
49 49
50 #define MAX_CMD_LEN 1024 /* max length of a command */ 50 #define MAX_CMD_LEN 9000 /* max length of a command */
51 #define MAX_TERM_LEN 200 /* max length of TERM name */ 51 #define MAX_TERM_LEN 200 /* max length of TERM name */
52 52
53 #define MAX_HOST_LEN 254 /* max hostname len for tcp fwding */ 53 #define MAX_HOST_LEN 254 /* max hostname len for tcp fwding */
54 #define MAX_IP_LEN 15 /* strlen("255.255.255.255") == 15 */ 54 #define MAX_IP_LEN 15 /* strlen("255.255.255.255") == 15 */
55 55
151 #define MAX_RECV_WINDOW (1024*1024) /* 1 MB should be enough */ 151 #define MAX_RECV_WINDOW (1024*1024) /* 1 MB should be enough */
152 152
153 #define MAX_CHANNELS 100 /* simple mem restriction, includes each tcp/x11 153 #define MAX_CHANNELS 100 /* simple mem restriction, includes each tcp/x11
154 connection, so can't be _too_ small */ 154 connection, so can't be _too_ small */
155 155
156 #define MAX_STRING_LEN 2400 /* Sun SSH needs this long for algos */ 156 #define MAX_STRING_LEN (MAX(MAX_CMD_LEN, 2400)) /* Sun SSH needs 2400 for algos,
157 MAX_CMD_LEN is usually longer */
157 158
158 /* For a 4096 bit DSS key, empirically determined */ 159 /* For a 4096 bit DSS key, empirically determined */
159 #define MAX_PUBKEY_SIZE 1700 160 #define MAX_PUBKEY_SIZE 1700
160 /* For a 4096 bit DSS key, empirically determined */ 161 /* For a 4096 bit DSS key, empirically determined */
161 #define MAX_PRIVKEY_SIZE 1700 162 #define MAX_PRIVKEY_SIZE 1700