Mercurial > dropbear
comparison options.h @ 68:eee77ac31ccc
cleaning up the pubkey defines
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Thu, 12 Aug 2004 14:56:22 +0000 |
parents | 38c3146aa23d |
children | b0316ce64e4b |
comparison
equal
deleted
inserted
replaced
67:86725004a0ea | 68:eee77ac31ccc |
---|---|
112 #define MOTD_FILENAME "/etc/motd" | 112 #define MOTD_FILENAME "/etc/motd" |
113 #endif | 113 #endif |
114 | 114 |
115 /* Authentication types to enable, at least one required. | 115 /* Authentication types to enable, at least one required. |
116 RFC Draft requires pubkey auth, and recommends password */ | 116 RFC Draft requires pubkey auth, and recommends password */ |
117 #define DROPBEAR_SVR_PASSWORD_AUTH | 117 #define ENABLE_SVR_PASSWORD_AUTH |
118 #define DROPBEAR_SVR_PUBKEY_AUTH | 118 #define ENABLE_SVR_PUBKEY_AUTH |
119 | 119 |
120 #define DROPBEAR_CLI_PASSWORD_AUTH | 120 #define ENABLE_CLI_PASSWORD_AUTH |
121 #define DROPBEAR_CLI_PUBKEY_AUTH | 121 #define ENABLE_CLI_PUBKEY_AUTH |
122 | 122 |
123 /* Random device to use - you must specify _one only_. | 123 /* Random device to use - you must specify _one only_. |
124 * DEV_RANDOM is recommended on hosts with a good /dev/urandom, otherwise use | 124 * DEV_RANDOM is recommended on hosts with a good /dev/urandom, otherwise use |
125 * PRNGD and run prngd, specifying the socket. This device must be able to | 125 * PRNGD and run prngd, specifying the socket. This device must be able to |
126 * produce a large amount of random data, so using /dev/random or Entropy | 126 * produce a large amount of random data, so using /dev/random or Entropy |
239 | 239 |
240 #define DROPBEAR_COMP_NONE 0 | 240 #define DROPBEAR_COMP_NONE 0 |
241 #define DROPBEAR_COMP_ZLIB 1 | 241 #define DROPBEAR_COMP_ZLIB 1 |
242 | 242 |
243 /* Required for pubkey auth */ | 243 /* Required for pubkey auth */ |
244 #if defined(DROPBEAR_PUBKEY_AUTH) || defined(DROPBEAR_CLIENT) | 244 #if defined(ENABLE_SVR_PUBKEY_AUTH) || defined(DROPBEAR_CLIENT) |
245 #define DROPBEAR_SIGNKEY_VERIFY | 245 #define DROPBEAR_SIGNKEY_VERIFY |
246 #endif | 246 #endif |
247 | 247 |
248 /* SHA1 is 20 bytes == 160 bits */ | 248 /* SHA1 is 20 bytes == 160 bits */ |
249 #define SHA1_HASH_SIZE 20 | 249 #define SHA1_HASH_SIZE 20 |
318 #if defined(ENABLE_REMOTETCPFWD) || defined(ENABLE_LOCALTCPFWD) || \ | 318 #if defined(ENABLE_REMOTETCPFWD) || defined(ENABLE_LOCALTCPFWD) || \ |
319 defined(ENABLE_AGENTFWD) || defined(ENABLE_X11FWD) | 319 defined(ENABLE_AGENTFWD) || defined(ENABLE_X11FWD) |
320 #define USING_LISTENERS | 320 #define USING_LISTENERS |
321 #endif | 321 #endif |
322 | 322 |
323 #if defined(DROPBEAR_CLIENT) || defined(DROPBEAR_PUBKEY_AUTH) | 323 #if defined(DROPBEAR_CLIENT) || defined(ENABLE_SVR_PUBKEY_AUTH) |
324 #define DROPBEAR_KEY_LINES /* ie we're using authorized_keys or known_hosts */ | 324 #define DROPBEAR_KEY_LINES /* ie we're using authorized_keys or known_hosts */ |
325 #endif | 325 #endif |
326 | 326 |
327 /* We use dropbear_client and dropbear_server as shortcuts to avoid redundant | 327 /* We use dropbear_client and dropbear_server as shortcuts to avoid redundant |
328 * code, if we're just compiling as client or server */ | 328 * code, if we're just compiling as client or server */ |