annotate default_options.h @ 1411:798854f62430 fuzz

merge from main
author Matt Johnston <matt@ucc.asn.au>
date Wed, 14 Jun 2017 23:31:42 +0800
parents 5abbecdecba4
children 4f8eb331174f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1297
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1 #ifndef DROPBEAR_DEFAULT_OPTIONS_H_
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
2 #define DROPBEAR_DEFAULT_OPTIONS_H_
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
3 /*
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
4 > > > Read This < < <
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
5
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
6 default_options.h.in (this file) documents compile-time options, and provides
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
7 default values.
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
8
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
9 Local customisation should be added to localoptions.h which is
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
10 used if it exists. Options defined there will override any options in this
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
11 file (#ifndef guards added by ifndef_wrapper.sh).
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
12
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
13 Options can also be defined with -DDROPBEAR_XXX Makefile CFLAGS
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
14
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
15 IMPORTANT: Many options will require "make clean" after changes */
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
16
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
17 #ifndef DROPBEAR_DEFPORT
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
18 #define DROPBEAR_DEFPORT "22"
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
19 #endif
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
20
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
21 /* Listen on all interfaces */
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
22 #ifndef DROPBEAR_DEFADDRESS
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
23 #define DROPBEAR_DEFADDRESS ""
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
24 #endif
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
25
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
26 /* Default hostkey paths - these can be specified on the command line */
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
27 #ifndef DSS_PRIV_FILENAME
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
28 #define DSS_PRIV_FILENAME "/etc/dropbear/dropbear_dss_host_key"
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
29 #endif
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
30 #ifndef RSA_PRIV_FILENAME
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
31 #define RSA_PRIV_FILENAME "/etc/dropbear/dropbear_rsa_host_key"
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
32 #endif
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
33 #ifndef ECDSA_PRIV_FILENAME
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
34 #define ECDSA_PRIV_FILENAME "/etc/dropbear/dropbear_ecdsa_host_key"
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
35 #endif
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
36
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
37 /* Set NON_INETD_MODE if you require daemon functionality (ie Dropbear listens
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
38 * on chosen ports and keeps accepting connections. This is the default.
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
39 *
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
40 * Set INETD_MODE if you want to be able to run Dropbear with inetd (or
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
41 * similar), where it will use stdin/stdout for connections, and each process
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
42 * lasts for a single connection. Dropbear should be invoked with the -i flag
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
43 * for inetd, and can only accept IPv4 connections.
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
44 *
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
45 * Both of these flags can be defined at once, don't compile without at least
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
46 * one of them. */
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
47 #ifndef NON_INETD_MODE
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
48 #define NON_INETD_MODE 1
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
49 #endif
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
50 #ifndef INETD_MODE
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
51 #define INETD_MODE 1
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
52 #endif
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
53
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
54 /* Setting this disables the fast exptmod bignum code. It saves ~5kB, but is
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
55 * perhaps 20% slower for pubkey operations (it is probably worth experimenting
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
56 * if you want to use this) */
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
57 /*#define NO_FAST_EXPTMOD*/
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
58
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
59 /* Set this if you want to use the DROPBEAR_SMALL_CODE option. This can save
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
60 several kB in binary size however will make the symmetrical ciphers and hashes
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
61 slower, perhaps by 50%. Recommended for small systems that aren't doing
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
62 much traffic. */
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
63 #ifndef DROPBEAR_SMALL_CODE
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
64 #define DROPBEAR_SMALL_CODE 1
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
65 #endif
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
66
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
67 /* Enable X11 Forwarding - server only */
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
68 #ifndef DROPBEAR_X11FWD
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
69 #define DROPBEAR_X11FWD 1
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
70 #endif
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
71
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
72 /* Enable TCP Fowarding */
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
73 /* 'Local' is "-L" style (client listening port forwarded via server)
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
74 * 'Remote' is "-R" style (server listening port forwarded via client) */
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
75
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
76 #ifndef DROPBEAR_CLI_LOCALTCPFWD
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
77 #define DROPBEAR_CLI_LOCALTCPFWD 1
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
78 #endif
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
79 #ifndef DROPBEAR_CLI_REMOTETCPFWD
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
80 #define DROPBEAR_CLI_REMOTETCPFWD 1
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
81 #endif
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
82
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
83 #ifndef DROPBEAR_SVR_LOCALTCPFWD
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
84 #define DROPBEAR_SVR_LOCALTCPFWD 1
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
85 #endif
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
86 #ifndef DROPBEAR_SVR_REMOTETCPFWD
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
87 #define DROPBEAR_SVR_REMOTETCPFWD 1
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
88 #endif
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
89
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
90 /* Enable Authentication Agent Forwarding */
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
91 #ifndef DROPBEAR_SVR_AGENTFWD
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
92 #define DROPBEAR_SVR_AGENTFWD 1
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
93 #endif
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
94 #ifndef DROPBEAR_CLI_AGENTFWD
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
95 #define DROPBEAR_CLI_AGENTFWD 1
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
96 #endif
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
97
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
98
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
99 /* Note: Both DROPBEAR_CLI_PROXYCMD and DROPBEAR_CLI_NETCAT must be set to
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
100 * allow multihop dbclient connections */
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
101
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
102 /* Allow using -J <proxycommand> to run the connection through a
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
103 pipe to a program, rather the normal TCP connection */
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
104 #ifndef DROPBEAR_CLI_PROXYCMD
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
105 #define DROPBEAR_CLI_PROXYCMD 1
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
106 #endif
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
107
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
108 /* Enable "Netcat mode" option. This will forward standard input/output
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
109 * to a remote TCP-forwarded connection */
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
110 #ifndef DROPBEAR_CLI_NETCAT
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
111 #define DROPBEAR_CLI_NETCAT 1
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
112 #endif
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
113
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
114 /* Whether to support "-c" and "-m" flags to choose ciphers/MACs at runtime */
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
115 #ifndef ENABLE_USER_ALGO_LIST
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
116 #define ENABLE_USER_ALGO_LIST 1
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
117 #endif
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
118
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
119 /* Encryption - at least one required.
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
120 * Protocol RFC requires 3DES and recommends AES128 for interoperability.
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
121 * Including multiple keysize variants the same cipher
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
122 * (eg AES256 as well as AES128) will result in a minimal size increase.*/
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
123 #ifndef DROPBEAR_AES128
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
124 #define DROPBEAR_AES128 1
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
125 #endif
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
126 #ifndef DROPBEAR_3DES
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
127 #define DROPBEAR_3DES 1
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
128 #endif
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
129 #ifndef DROPBEAR_AES256
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
130 #define DROPBEAR_AES256 1
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
131 #endif
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
132 /* Compiling in Blowfish will add ~6kB to runtime heap memory usage */
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
133 /*#define DROPBEAR_BLOWFISH*/
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
134 #ifndef DROPBEAR_TWOFISH256
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
135 #define DROPBEAR_TWOFISH256 1
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
136 #endif
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
137 #ifndef DROPBEAR_TWOFISH128
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
138 #define DROPBEAR_TWOFISH128 1
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
139 #endif
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
140
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
141 /* Enable CBC mode for ciphers. This has security issues though
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
142 * is the most compatible with older SSH implementations */
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
143 #ifndef DROPBEAR_ENABLE_CBC_MODE
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
144 #define DROPBEAR_ENABLE_CBC_MODE 1
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
145 #endif
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
146
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
147 /* Enable "Counter Mode" for ciphers. This is more secure than normal
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
148 * CBC mode against certain attacks. It is recommended for security
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
149 * and forwards compatibility */
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
150 #ifndef DROPBEAR_ENABLE_CTR_MODE
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
151 #define DROPBEAR_ENABLE_CTR_MODE 1
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
152 #endif
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
153
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
154 /* Twofish counter mode is disabled by default because it
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
155 has not been tested for interoperability with other SSH implementations.
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
156 If you test it please contact the Dropbear author */
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
157 #ifndef DROPBEAR_TWOFISH_CTR
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
158 #define DROPBEAR_TWOFISH_CTR 0
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
159 #endif
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
160
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
161 /* Message integrity. sha2-256 is recommended as a default,
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
162 sha1 for compatibility */
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
163 #ifndef DROPBEAR_SHA1_HMAC
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
164 #define DROPBEAR_SHA1_HMAC 1
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
165 #endif
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
166 #ifndef DROPBEAR_SHA1_96_HMAC
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
167 #define DROPBEAR_SHA1_96_HMAC 1
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
168 #endif
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
169 #ifndef DROPBEAR_SHA2_256_HMAC
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
170 #define DROPBEAR_SHA2_256_HMAC 1
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
171 #endif
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
172 /* Default is to include it is sha512 is being compiled in for ECDSA */
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
173 #ifndef DROPBEAR_SHA2_512_HMAC
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
174 #define DROPBEAR_SHA2_512_HMAC (DROPBEAR_ECDSA)
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
175 #endif
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
176
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
177 /* XXX needed for fingerprints */
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
178 #ifndef DROPBEAR_MD5_HMAC
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
179 #define DROPBEAR_MD5_HMAC 0
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
180 #endif
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
181
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
182 /* Hostkey/public key algorithms - at least one required, these are used
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
183 * for hostkey as well as for verifying signatures with pubkey auth.
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
184 * Removing either of these won't save very much space.
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
185 * RSA is recommended
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
186 * DSS may be necessary to connect to some systems though
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
187 is not recommended for new keys */
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
188 #ifndef DROPBEAR_RSA
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
189 #define DROPBEAR_RSA 1
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
190 #endif
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
191 #ifndef DROPBEAR_DSS
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
192 #define DROPBEAR_DSS 1
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
193 #endif
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
194 /* ECDSA is significantly faster than RSA or DSS. Compiling in ECC
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
195 * code (either ECDSA or ECDH) increases binary size - around 30kB
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
196 * on x86-64 */
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
197 #ifndef DROPBEAR_ECDSA
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
198 #define DROPBEAR_ECDSA 1
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
199 #endif
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
200
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
201 /* Add runtime flag "-R" to generate hostkeys as-needed when the first
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
202 connection using that key type occurs.
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
203 This avoids the need to otherwise run "dropbearkey" and avoids some problems
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
204 with badly seeded /dev/urandom when systems first boot. */
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
205 #ifndef DROPBEAR_DELAY_HOSTKEY
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
206 #define DROPBEAR_DELAY_HOSTKEY 1
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
207 #endif
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
208
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
209 /* Enable Curve25519 for key exchange. This is another elliptic
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
210 * curve method with good security properties. Increases binary size
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
211 * by ~8kB on x86-64 */
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
212 #ifndef DROPBEAR_CURVE25519
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
213 #define DROPBEAR_CURVE25519 1
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
214 #endif
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
215
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
216 /* Enable elliptic curve Diffie Hellman key exchange, see note about
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
217 * ECDSA above */
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
218 #ifndef DROPBEAR_ECDH
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
219 #define DROPBEAR_ECDH 1
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
220 #endif
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
221
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
222 /* Key exchange algorithm.
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
223 * group14_sha1 - 2048 bit, sha1
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
224 * group14_sha256 - 2048 bit, sha2-256
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
225 * group16 - 4096 bit, sha2-512
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
226 * group1 - 1024 bit, sha1
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
227 *
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
228 * group14 is supported by most implementations.
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
229 * group16 provides a greater strength level but is slower and increases binary size
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
230 * group1 is too small for security though is necessary if you need
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
231 compatibility with some implementations such as Dropbear versions < 0.53
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
232 */
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
233 #ifndef DROPBEAR_DH_GROUP1
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
234 #define DROPBEAR_DH_GROUP1 1
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
235 #endif
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
236 #ifndef DROPBEAR_DH_GROUP14_SHA1
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
237 #define DROPBEAR_DH_GROUP14_SHA1 1
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
238 #endif
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
239 #ifndef DROPBEAR_DH_GROUP14_SHA256
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
240 #define DROPBEAR_DH_GROUP14_SHA256 1
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
241 #endif
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
242 #ifndef DROPBEAR_DH_GROUP16
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
243 #define DROPBEAR_DH_GROUP16 0
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
244 #endif
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
245
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
246 /* Control the memory/performance/compression tradeoff for zlib.
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
247 * Set windowBits=8 for least memory usage, see your system's
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
248 * zlib.h for full details.
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
249 * Default settings (windowBits=15) will use 256kB for compression
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
250 * windowBits=8 will use 129kB for compression.
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
251 * Both modes will use ~35kB for decompression (using windowBits=15 for
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
252 * interoperability) */
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
253 #ifndef DROPBEAR_ZLIB_WINDOW_BITS
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
254 #define DROPBEAR_ZLIB_WINDOW_BITS 15
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
255 #endif
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
256
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
257 /* Whether to do reverse DNS lookups. */
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
258 #ifndef DO_HOST_LOOKUP
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
259 #define DO_HOST_LOOKUP 0
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
260 #endif
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
261
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
262 /* Whether to print the message of the day (MOTD). */
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
263 #ifndef DO_MOTD
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
264 #define DO_MOTD 0
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
265 #endif
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
266
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
267 /* The MOTD file path */
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
268 #ifndef MOTD_FILENAME
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
269 #define MOTD_FILENAME "/etc/motd"
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
270 #endif
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
271
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
272 /* Authentication Types - at least one required.
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
273 RFC Draft requires pubkey auth, and recommends password */
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
274
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
275 /* Note: PAM auth is quite simple and only works for PAM modules which just do
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
276 * a simple "Login: " "Password: " (you can edit the strings in svr-authpam.c).
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
277 * It's useful for systems like OS X where standard password crypts don't work
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
278 * but there's an interface via a PAM module. It won't work for more complex
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
279 * PAM challenge/response.
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
280 * You can't enable both PASSWORD and PAM. */
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
281
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
282 /* This requires crypt() */
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
283 #ifdef HAVE_CRYPT
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
284 #ifndef DROPBEAR_SVR_PASSWORD_AUTH
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
285 #define DROPBEAR_SVR_PASSWORD_AUTH 1
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
286 #endif
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
287 #else
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
288 #ifndef DROPBEAR_SVR_PASSWORD_AUTH
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
289 #define DROPBEAR_SVR_PASSWORD_AUTH 0
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
290 #endif
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
291 #endif
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
292 /* PAM requires ./configure --enable-pam */
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
293 #ifndef DROPBEAR_SVR_PAM_AUTH
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
294 #define DROPBEAR_SVR_PAM_AUTH 0
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
295 #endif
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
296 #ifndef DROPBEAR_SVR_PUBKEY_AUTH
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
297 #define DROPBEAR_SVR_PUBKEY_AUTH 1
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
298 #endif
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
299
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
300 /* Whether to take public key options in
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
301 * authorized_keys file into account */
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
302 #ifndef DROPBEAR_SVR_PUBKEY_OPTIONS
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
303 #define DROPBEAR_SVR_PUBKEY_OPTIONS 1
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
304 #endif
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
305
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
306 /* This requires getpass. */
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
307 #ifdef HAVE_GETPASS
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
308 #ifndef DROPBEAR_CLI_PASSWORD_AUTH
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
309 #define DROPBEAR_CLI_PASSWORD_AUTH 1
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
310 #endif
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
311 #ifndef DROPBEAR_CLI_INTERACT_AUTH
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
312 #define DROPBEAR_CLI_INTERACT_AUTH 1
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
313 #endif
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
314 #endif
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
315 #ifndef DROPBEAR_CLI_PUBKEY_AUTH
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
316 #define DROPBEAR_CLI_PUBKEY_AUTH 1
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
317 #endif
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
318
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
319 /* A default argument for dbclient -i <privatekey>.
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
320 Homedir is prepended unless path begins with / */
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
321 #ifndef DROPBEAR_DEFAULT_CLI_AUTHKEY
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
322 #define DROPBEAR_DEFAULT_CLI_AUTHKEY ".ssh/id_dropbear"
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
323 #endif
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
324
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
325 /* This variable can be used to set a password for client
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
326 * authentication on the commandline. Beware of platforms
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
327 * that don't protect environment variables of processes etc. Also
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
328 * note that it will be provided for all "hidden" client-interactive
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
329 * style prompts - if you want something more sophisticated, use
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
330 * SSH_ASKPASS instead. Comment out this var to remove this functionality.*/
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
331 #ifndef DROPBEAR_PASSWORD_ENV
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
332 #define DROPBEAR_PASSWORD_ENV "DROPBEAR_PASSWORD"
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
333 #endif
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
334
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
335 /* Define this (as well as DROPBEAR_CLI_PASSWORD_AUTH) to allow the use of
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
336 * a helper program for the ssh client. The helper program should be
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
337 * specified in the SSH_ASKPASS environment variable, and dbclient
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
338 * should be run with DISPLAY set and no tty. The program should
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
339 * return the password on standard output */
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
340 #ifndef DROPBEAR_CLI_ASKPASS_HELPER
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
341 #define DROPBEAR_CLI_ASKPASS_HELPER 0
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
342 #endif
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
343
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
344 /* Save a network roundtrip by sendng a real auth request immediately after
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
345 * sending a query for the available methods. It is at the expense of < 100
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
346 * bytes of extra network traffic. This is not yet enabled by default since it
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
347 * could cause problems with non-compliant servers */
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
348 #ifndef DROPBEAR_CLI_IMMEDIATE_AUTH
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
349 #define DROPBEAR_CLI_IMMEDIATE_AUTH 0
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
350 #endif
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
351
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
352 /* Source for randomness. This must be able to provide hundreds of bytes per SSH
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
353 * connection without blocking. In addition /dev/random is used for seeding
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
354 * rsa/dss key generation */
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
355 #ifndef DROPBEAR_URANDOM_DEV
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
356 #define DROPBEAR_URANDOM_DEV "/dev/urandom"
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
357 #endif
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
358
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
359 /* Set this to use PRNGD or EGD instead of /dev/urandom or /dev/random */
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
360 /*#define DROPBEAR_PRNGD_SOCKET "/var/run/dropbear-rng"*/
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
361
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
362
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
363 /* Specify the number of clients we will allow to be connected but
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
364 * not yet authenticated. After this limit, connections are rejected */
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
365 /* The first setting is per-IP, to avoid denial of service */
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
366 #ifndef MAX_UNAUTH_PER_IP
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
367 #define MAX_UNAUTH_PER_IP 5
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
368 #endif
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
369
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
370 /* And then a global limit to avoid chewing memory if connections
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
371 * come from many IPs */
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
372 #ifndef MAX_UNAUTH_CLIENTS
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
373 #define MAX_UNAUTH_CLIENTS 30
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
374 #endif
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
375
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
376 /* Maximum number of failed authentication tries (server option) */
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
377 #ifndef MAX_AUTH_TRIES
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
378 #define MAX_AUTH_TRIES 10
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
379 #endif
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
380
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
381 /* The default file to store the daemon's process ID, for shutdown
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
382 scripts etc. This can be overridden with the -P flag */
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
383 #ifndef DROPBEAR_PIDFILE
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
384 #define DROPBEAR_PIDFILE "/var/run/dropbear.pid"
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
385 #endif
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
386
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
387 /* The command to invoke for xauth when using X11 forwarding.
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
388 * "-q" for quiet */
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
389 #ifndef XAUTH_COMMAND
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
390 #define XAUTH_COMMAND "/usr/bin/xauth -q"
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
391 #endif
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
392
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
393 /* if you want to enable running an sftp server (such as the one included with
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
394 * OpenSSH), set the path below. If the path isn't defined, sftp will not
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
395 * be enabled */
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
396 #ifndef SFTPSERVER_PATH
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
397 #define SFTPSERVER_PATH "/usr/libexec/sftp-server"
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
398 #endif
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
399
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
400 /* This is used by the scp binary when used as a client binary. If you're
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
401 * not using the Dropbear client, you'll need to change it */
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
402 #ifndef DROPBEAR_PATH_SSH_PROGRAM
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
403 #define DROPBEAR_PATH_SSH_PROGRAM "/usr/bin/dbclient"
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
404 #endif
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
405
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
406 /* Whether to log commands executed by a client. This only logs the
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
407 * (single) command sent to the server, not what a user did in a
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
408 * shell/sftp session etc. */
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
409 #ifndef LOG_COMMANDS
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
410 #define LOG_COMMANDS 0
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
411 #endif
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
412
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
413 /* Window size limits. These tend to be a trade-off between memory
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
414 usage and network performance: */
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
415 /* Size of the network receive window. This amount of memory is allocated
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
416 as a per-channel receive buffer. Increasing this value can make a
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
417 significant difference to network performance. 24kB was empirically
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
418 chosen for a 100mbit ethernet network. The value can be altered at
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
419 runtime with the -W argument. */
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
420 #ifndef DEFAULT_RECV_WINDOW
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
421 #define DEFAULT_RECV_WINDOW 24576
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
422 #endif
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
423 /* Maximum size of a received SSH data packet - this _MUST_ be >= 32768
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
424 in order to interoperate with other implementations */
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
425 #ifndef RECV_MAX_PAYLOAD_LEN
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
426 #define RECV_MAX_PAYLOAD_LEN 32768
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
427 #endif
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
428 /* Maximum size of a transmitted data packet - this can be any value,
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
429 though increasing it may not make a significant difference. */
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
430 #ifndef TRANS_MAX_PAYLOAD_LEN
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
431 #define TRANS_MAX_PAYLOAD_LEN 16384
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
432 #endif
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
433
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
434 /* Ensure that data is transmitted every KEEPALIVE seconds. This can
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
435 be overridden at runtime with -K. 0 disables keepalives */
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
436 #ifndef DEFAULT_KEEPALIVE
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
437 #define DEFAULT_KEEPALIVE 0
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
438 #endif
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
439
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
440 /* If this many KEEPALIVES are sent with no packets received from the
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
441 other side, exit. Not run-time configurable - if you have a need
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
442 for runtime configuration please mail the Dropbear list */
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
443 #ifndef DEFAULT_KEEPALIVE_LIMIT
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
444 #define DEFAULT_KEEPALIVE_LIMIT 3
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
445 #endif
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
446
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
447 /* Ensure that data is received within IDLE_TIMEOUT seconds. This can
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
448 be overridden at runtime with -I. 0 disables idle timeouts */
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
449 #ifndef DEFAULT_IDLE_TIMEOUT
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
450 #define DEFAULT_IDLE_TIMEOUT 0
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
451 #endif
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
452
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
453 /* The default path. This will often get replaced by the shell */
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
454 #ifndef DEFAULT_PATH
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
455 #define DEFAULT_PATH "/usr/bin:/bin"
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
456 #endif
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
457
5abbecdecba4 Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
458 #endif /* DROPBEAR_DEFAULT_OPTIONS_H_ */