Mercurial > dropbear
comparison sysoptions.h @ 989:73ea0dce9a57 pam
Merge up to date
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Fri, 23 Jan 2015 21:38:47 +0800 |
parents | bae0b34bc059 735511a4c761 |
children | 2fa71c3b2827 |
comparison
equal
deleted
inserted
replaced
925:bae0b34bc059 | 989:73ea0dce9a57 |
---|---|
2 * You shouldn't edit this file unless you know you need to. | 2 * You shouldn't edit this file unless you know you need to. |
3 * This file is only included from options.h | 3 * This file is only included from options.h |
4 *******************************************************************/ | 4 *******************************************************************/ |
5 | 5 |
6 #ifndef DROPBEAR_VERSION | 6 #ifndef DROPBEAR_VERSION |
7 #define DROPBEAR_VERSION "2014.63" | 7 #define DROPBEAR_VERSION "2014.66" |
8 #endif | 8 #endif |
9 | 9 |
10 #define LOCAL_IDENT "SSH-2.0-dropbear_" DROPBEAR_VERSION | 10 #define LOCAL_IDENT "SSH-2.0-dropbear_" DROPBEAR_VERSION |
11 #define PROGNAME "dropbear" | 11 #define PROGNAME "dropbear" |
12 | 12 |
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 1400 /* ~= MAX_PROPOSED_ALGO * MAX_NAME_LEN, also | 156 #define MAX_STRING_LEN 2400 /* Sun SSH needs this long for algos */ |
157 is the max length for a password etc */ | |
158 | 157 |
159 /* For a 4096 bit DSS key, empirically determined */ | 158 /* For a 4096 bit DSS key, empirically determined */ |
160 #define MAX_PUBKEY_SIZE 1700 | 159 #define MAX_PUBKEY_SIZE 1700 |
161 /* For a 4096 bit DSS key, empirically determined */ | 160 /* For a 4096 bit DSS key, empirically determined */ |
162 #define MAX_PRIVKEY_SIZE 1700 | 161 #define MAX_PRIVKEY_SIZE 1700 |
247 | 246 |
248 #ifndef HAVE_FORK | 247 #ifndef HAVE_FORK |
249 #define USE_VFORK | 248 #define USE_VFORK |
250 #endif /* don't HAVE_FORK */ | 249 #endif /* don't HAVE_FORK */ |
251 | 250 |
251 #if MAX_UNAUTH_CLIENTS > MAX_CHANNELS | |
252 #define DROPBEAR_LISTEN_BACKLOG MAX_UNAUTH_CLIENTS | |
253 #else | |
254 #define DROPBEAR_LISTEN_BACKLOG MAX_CHANNELS | |
255 #endif | |
256 | |
257 /* Use this string since some implementations might special-case it */ | |
258 #define DROPBEAR_KEEPALIVE_STRING "[email protected]" | |
259 | |
252 /* no include guard for this file */ | 260 /* no include guard for this file */ |