comparison options.h @ 33:f789045062e6

Progressing client support
author Matt Johnston <matt@ucc.asn.au>
date Tue, 27 Jul 2004 16:30:46 +0000
parents 0969767bca0d
children b4874d772210
comparison
equal deleted inserted replaced
32:8fd0cdbb5b1b 33:f789045062e6
27 27
28 /****************************************************************** 28 /******************************************************************
29 * Define compile-time options below - the "#ifndef DROPBEAR_XXX .... #endif" 29 * Define compile-time options below - the "#ifndef DROPBEAR_XXX .... #endif"
30 * parts are to allow for commandline -DDROPBEAR_XXX options etc. 30 * parts are to allow for commandline -DDROPBEAR_XXX options etc.
31 ******************************************************************/ 31 ******************************************************************/
32 #define DROPBEAR_SERVER
33 //#define DROPBEAR_CLIENT
34 32
35 #ifndef DROPBEAR_PORT 33 #ifndef DROPBEAR_PORT
36 #define DROPBEAR_PORT 22 34 #define DROPBEAR_PORT 22
37 #endif 35 #endif
38 36
46 44
47 /* Setting this disables the fast exptmod bignum code. It saves ~5kB, but is 45 /* Setting this disables the fast exptmod bignum code. It saves ~5kB, but is
48 * perhaps 20% slower for pubkey operations (it is probably worth experimenting 46 * perhaps 20% slower for pubkey operations (it is probably worth experimenting
49 * if you want to use this) */ 47 * if you want to use this) */
50 /*#define NO_FAST_EXPTMOD*/ 48 /*#define NO_FAST_EXPTMOD*/
51 #define DROPBEAR_SMALL_CODE
52 49
53 /* Enable X11 Forwarding */ 50 /* Enable X11 Forwarding */
54 #define ENABLE_X11FWD 51 #define ENABLE_X11FWD
55 52
56 /* Enable TCP Fowarding */ 53 /* Enable TCP Fowarding */
112 #endif 109 #endif
113 110
114 /* Authentication types to enable, at least one required. 111 /* Authentication types to enable, at least one required.
115 RFC Draft requires pubkey auth, and recommends password */ 112 RFC Draft requires pubkey auth, and recommends password */
116 #define DROPBEAR_PASSWORD_AUTH 113 #define DROPBEAR_PASSWORD_AUTH
117 #define DROPBEAR_PUBKEY_AUTH 114 //#define DROPBEAR_PUBKEY_AUTH
118 115
119 /* Random device to use - you must specify _one only_. 116 /* Random device to use - you must specify _one only_.
120 * DEV_RANDOM is recommended on hosts with a good /dev/urandom, otherwise use 117 * DEV_RANDOM is recommended on hosts with a good /dev/urandom, otherwise use
121 * PRNGD and run prngd, specifying the socket. This device must be able to 118 * PRNGD and run prngd, specifying the socket. This device must be able to
122 * produce a large amount of random data, so using /dev/random or Entropy 119 * produce a large amount of random data, so using /dev/random or Entropy
160 #endif 157 #endif
161 158
162 /* This is used by the scp binary when used as a client binary */ 159 /* This is used by the scp binary when used as a client binary */
163 #define _PATH_SSH_PROGRAM "/usr/bin/ssh" 160 #define _PATH_SSH_PROGRAM "/usr/bin/ssh"
164 161
165 /* Multi-purpose binary configuration - if you want to make the combined 162 /* Multi-purpose binary configuration has now moved. Look at the top
166 * binary, first define DROPBEAR_MULTI, and then define which of the three 163 * of the Makefile for instructions, or INSTALL */
167 * components you want. You should then compile Dropbear with
168 * "make clean; make dropbearmulti". You'll need to install the binary
169 * manually, see MULTI for details */
170
171 /* #define DROPBEAR_MULTI */
172
173 /* The three multi binaries: dropbear, dropbearkey, dropbearconvert
174 * Comment out these if you don't want some of them */
175 #define DBMULTI_DROPBEAR
176 #define DBMULTI_KEY
177 #define DBMULTI_CONVERT
178
179 164
180 /******************************************************************* 165 /*******************************************************************
181 * You shouldn't edit below here unless you know you need to. 166 * You shouldn't edit below here unless you know you need to.
182 *******************************************************************/ 167 *******************************************************************/
183 168
244 229
245 #define DROPBEAR_COMP_NONE 0 230 #define DROPBEAR_COMP_NONE 0
246 #define DROPBEAR_COMP_ZLIB 1 231 #define DROPBEAR_COMP_ZLIB 1
247 232
248 /* Required for pubkey auth */ 233 /* Required for pubkey auth */
249 #ifdef DROPBEAR_PUBKEY_AUTH 234 #if defined(DROPBEAR_PUBKEY_AUTH) || defined(DROPBEAR_CLIENT)
250 #define DROPBEAR_SIGNKEY_VERIFY 235 #define DROPBEAR_SIGNKEY_VERIFY
251 #endif 236 #endif
252 237
253 /* SHA1 is 20 bytes == 160 bits */ 238 /* SHA1 is 20 bytes == 160 bits */
254 #define SHA1_HASH_SIZE 20 239 #define SHA1_HASH_SIZE 20