Mercurial > dropbear
annotate default_options.h @ 1514:6c16a05023aa
rename some options and move some to sysoptions.h
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sun, 18 Feb 2018 00:29:17 +0800 |
parents | 1ea92dd2ca5f |
children | 2f4d52b1334e |
rev | line source |
---|---|
1491 | 1 /* |
2 > > > Do not edit this file (default_options.h) < < < | |
3 Generated from ../default_options.h.in | |
4 Local customisation goes in localoptions.h | |
5 */ | |
6 | |
7 | |
1297
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
8 #ifndef DROPBEAR_DEFAULT_OPTIONS_H_ |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
9 #define DROPBEAR_DEFAULT_OPTIONS_H_ |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
10 /* |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
11 > > > Read This < < < |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
12 |
1491 | 13 default_options.h.in documents compile-time options, and provides default values. |
1297
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 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
|
16 used if it exists. Options defined there will override any options in this |
1491 | 17 file. |
1297
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
18 |
1438
4f8eb331174f
add configuration option for default RSA size.
Matt Johnston <matt@ucc.asn.au>
parents:
1297
diff
changeset
|
19 Options can also be defined with -DDROPBEAR_XXX in Makefile CFLAGS |
1297
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 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
|
22 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
23 #ifndef DROPBEAR_DEFPORT |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
24 #define DROPBEAR_DEFPORT "22" |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
25 #endif |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
26 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
27 /* Listen on all interfaces */ |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
28 #ifndef DROPBEAR_DEFADDRESS |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
29 #define DROPBEAR_DEFADDRESS "" |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
30 #endif |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
31 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
32 /* 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
|
33 #ifndef DSS_PRIV_FILENAME |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
34 #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
|
35 #endif |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
36 #ifndef RSA_PRIV_FILENAME |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
37 #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
|
38 #endif |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
39 #ifndef ECDSA_PRIV_FILENAME |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
40 #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
|
41 #endif |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
42 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
43 /* 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
|
44 * 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
|
45 * |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
46 * 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
|
47 * 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
|
48 * 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
|
49 * 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
|
50 * |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
51 * 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
|
52 * one of them. */ |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
53 #ifndef NON_INETD_MODE |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
54 #define NON_INETD_MODE 1 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
55 #endif |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
56 #ifndef INETD_MODE |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
57 #define INETD_MODE 1 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
58 #endif |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
59 |
1514
6c16a05023aa
rename some options and move some to sysoptions.h
Matt Johnston <matt@ucc.asn.au>
parents:
1491
diff
changeset
|
60 /* Include verbose debug output, enabled with -v at runtime. |
6c16a05023aa
rename some options and move some to sysoptions.h
Matt Johnston <matt@ucc.asn.au>
parents:
1491
diff
changeset
|
61 * This will add a reasonable amount to your executable size. */ |
6c16a05023aa
rename some options and move some to sysoptions.h
Matt Johnston <matt@ucc.asn.au>
parents:
1491
diff
changeset
|
62 #ifndef DEBUG_TRACE |
6c16a05023aa
rename some options and move some to sysoptions.h
Matt Johnston <matt@ucc.asn.au>
parents:
1491
diff
changeset
|
63 #define DEBUG_TRACE 0 |
6c16a05023aa
rename some options and move some to sysoptions.h
Matt Johnston <matt@ucc.asn.au>
parents:
1491
diff
changeset
|
64 #endif |
1297
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
65 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
66 /* 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
|
67 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
|
68 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
|
69 much traffic. */ |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
70 #ifndef DROPBEAR_SMALL_CODE |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
71 #define DROPBEAR_SMALL_CODE 1 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
72 #endif |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
73 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
74 /* Enable X11 Forwarding - server only */ |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
75 #ifndef DROPBEAR_X11FWD |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
76 #define DROPBEAR_X11FWD 1 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
77 #endif |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
78 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
79 /* Enable TCP Fowarding */ |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
80 /* '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
|
81 * '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
|
82 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
83 #ifndef DROPBEAR_CLI_LOCALTCPFWD |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
84 #define DROPBEAR_CLI_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_CLI_REMOTETCPFWD |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
87 #define DROPBEAR_CLI_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 #ifndef DROPBEAR_SVR_LOCALTCPFWD |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
91 #define DROPBEAR_SVR_LOCALTCPFWD 1 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
92 #endif |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
93 #ifndef DROPBEAR_SVR_REMOTETCPFWD |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
94 #define DROPBEAR_SVR_REMOTETCPFWD 1 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
95 #endif |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
96 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
97 /* Enable Authentication Agent Forwarding */ |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
98 #ifndef DROPBEAR_SVR_AGENTFWD |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
99 #define DROPBEAR_SVR_AGENTFWD 1 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
100 #endif |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
101 #ifndef DROPBEAR_CLI_AGENTFWD |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
102 #define DROPBEAR_CLI_AGENTFWD 1 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
103 #endif |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
104 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
105 /* 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
|
106 * allow multihop dbclient connections */ |
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 /* 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
|
109 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
|
110 #ifndef DROPBEAR_CLI_PROXYCMD |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
111 #define DROPBEAR_CLI_PROXYCMD 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 /* 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
|
115 * 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
|
116 #ifndef DROPBEAR_CLI_NETCAT |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
117 #define DROPBEAR_CLI_NETCAT 1 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
118 #endif |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
119 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
120 /* Whether to support "-c" and "-m" flags to choose ciphers/MACs at runtime */ |
1514
6c16a05023aa
rename some options and move some to sysoptions.h
Matt Johnston <matt@ucc.asn.au>
parents:
1491
diff
changeset
|
121 #ifndef DROPBEAR_USER_ALGO_LIST |
6c16a05023aa
rename some options and move some to sysoptions.h
Matt Johnston <matt@ucc.asn.au>
parents:
1491
diff
changeset
|
122 #define DROPBEAR_USER_ALGO_LIST 1 |
1297
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
123 #endif |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
124 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
125 /* Encryption - at least one required. |
1514
6c16a05023aa
rename some options and move some to sysoptions.h
Matt Johnston <matt@ucc.asn.au>
parents:
1491
diff
changeset
|
126 * AES128 should be enabled, some very old implementations might only |
6c16a05023aa
rename some options and move some to sysoptions.h
Matt Johnston <matt@ucc.asn.au>
parents:
1491
diff
changeset
|
127 * support 3DES. |
6c16a05023aa
rename some options and move some to sysoptions.h
Matt Johnston <matt@ucc.asn.au>
parents:
1491
diff
changeset
|
128 * Including both AES keysize variants (128 and 256) will result in |
6c16a05023aa
rename some options and move some to sysoptions.h
Matt Johnston <matt@ucc.asn.au>
parents:
1491
diff
changeset
|
129 * a minimal size increase */ |
1297
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
130 #ifndef DROPBEAR_AES128 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
131 #define DROPBEAR_AES128 1 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
132 #endif |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
133 #ifndef DROPBEAR_3DES |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
134 #define DROPBEAR_3DES 1 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
135 #endif |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
136 #ifndef DROPBEAR_AES256 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
137 #define DROPBEAR_AES256 1 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
138 #endif |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
139 #ifndef DROPBEAR_TWOFISH256 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
140 #define DROPBEAR_TWOFISH256 1 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
141 #endif |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
142 #ifndef DROPBEAR_TWOFISH128 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
143 #define DROPBEAR_TWOFISH128 1 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
144 #endif |
1514
6c16a05023aa
rename some options and move some to sysoptions.h
Matt Johnston <matt@ucc.asn.au>
parents:
1491
diff
changeset
|
145 /* Compiling in Blowfish will add ~6kB to runtime heap memory usage */ |
6c16a05023aa
rename some options and move some to sysoptions.h
Matt Johnston <matt@ucc.asn.au>
parents:
1491
diff
changeset
|
146 #ifndef DROPBEAR_BLOWFISH |
6c16a05023aa
rename some options and move some to sysoptions.h
Matt Johnston <matt@ucc.asn.au>
parents:
1491
diff
changeset
|
147 #define DROPBEAR_BLOWFISH 0 |
6c16a05023aa
rename some options and move some to sysoptions.h
Matt Johnston <matt@ucc.asn.au>
parents:
1491
diff
changeset
|
148 #endif |
1297
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
149 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
150 /* 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
|
151 * 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
|
152 #ifndef DROPBEAR_ENABLE_CBC_MODE |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
153 #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
|
154 #endif |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
155 |
1514
6c16a05023aa
rename some options and move some to sysoptions.h
Matt Johnston <matt@ucc.asn.au>
parents:
1491
diff
changeset
|
156 /* Enable "Counter Mode" for ciphers. This is more secure than |
1297
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
157 * 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
|
158 * and forwards compatibility */ |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
159 #ifndef DROPBEAR_ENABLE_CTR_MODE |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
160 #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
|
161 #endif |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
162 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
163 /* 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
|
164 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
|
165 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
|
166 #ifndef DROPBEAR_TWOFISH_CTR |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
167 #define DROPBEAR_TWOFISH_CTR 0 |
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 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
170 /* 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
|
171 sha1 for compatibility */ |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
172 #ifndef DROPBEAR_SHA1_HMAC |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
173 #define DROPBEAR_SHA1_HMAC 1 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
174 #endif |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
175 #ifndef DROPBEAR_SHA1_96_HMAC |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
176 #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
|
177 #endif |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
178 #ifndef DROPBEAR_SHA2_256_HMAC |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
179 #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
|
180 #endif |
1514
6c16a05023aa
rename some options and move some to sysoptions.h
Matt Johnston <matt@ucc.asn.au>
parents:
1491
diff
changeset
|
181 /* Default is to include it if sha512 is being compiled in for ECDSA */ |
1297
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
182 #ifndef DROPBEAR_SHA2_512_HMAC |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
183 #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
|
184 #endif |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
185 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
186 /* XXX needed for fingerprints */ |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
187 #ifndef DROPBEAR_MD5_HMAC |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
188 #define DROPBEAR_MD5_HMAC 0 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
189 #endif |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
190 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
191 /* 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
|
192 * 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
|
193 * 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
|
194 * RSA is recommended |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
195 * 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
|
196 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
|
197 #ifndef DROPBEAR_RSA |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
198 #define DROPBEAR_RSA 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 #ifndef DROPBEAR_DSS |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
201 #define DROPBEAR_DSS 1 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
202 #endif |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
203 /* 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
|
204 * 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
|
205 * on x86-64 */ |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
206 #ifndef DROPBEAR_ECDSA |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
207 #define DROPBEAR_ECDSA 1 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
208 #endif |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
209 |
1438
4f8eb331174f
add configuration option for default RSA size.
Matt Johnston <matt@ucc.asn.au>
parents:
1297
diff
changeset
|
210 /* RSA must be >=1024 */ |
4f8eb331174f
add configuration option for default RSA size.
Matt Johnston <matt@ucc.asn.au>
parents:
1297
diff
changeset
|
211 #ifndef DROPBEAR_DEFAULT_RSA_SIZE |
4f8eb331174f
add configuration option for default RSA size.
Matt Johnston <matt@ucc.asn.au>
parents:
1297
diff
changeset
|
212 #define DROPBEAR_DEFAULT_RSA_SIZE 2048 |
4f8eb331174f
add configuration option for default RSA size.
Matt Johnston <matt@ucc.asn.au>
parents:
1297
diff
changeset
|
213 #endif |
4f8eb331174f
add configuration option for default RSA size.
Matt Johnston <matt@ucc.asn.au>
parents:
1297
diff
changeset
|
214 /* DSS is always 1024 */ |
4f8eb331174f
add configuration option for default RSA size.
Matt Johnston <matt@ucc.asn.au>
parents:
1297
diff
changeset
|
215 /* ECDSA defaults to largest size configured, usually 521 */ |
4f8eb331174f
add configuration option for default RSA size.
Matt Johnston <matt@ucc.asn.au>
parents:
1297
diff
changeset
|
216 |
1297
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
217 /* 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
|
218 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
|
219 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
|
220 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
|
221 #ifndef DROPBEAR_DELAY_HOSTKEY |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
222 #define DROPBEAR_DELAY_HOSTKEY 1 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
223 #endif |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
224 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
225 /* 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
|
226 * 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
|
227 * by ~8kB on x86-64 */ |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
228 #ifndef DROPBEAR_CURVE25519 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
229 #define DROPBEAR_CURVE25519 1 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
230 #endif |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
231 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
232 /* 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
|
233 * ECDSA above */ |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
234 #ifndef DROPBEAR_ECDH |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
235 #define DROPBEAR_ECDH 1 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
236 #endif |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
237 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
238 /* Key exchange algorithm. |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
239 * group14_sha1 - 2048 bit, sha1 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
240 * 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
|
241 * group16 - 4096 bit, sha2-512 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
242 * group1 - 1024 bit, sha1 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
243 * |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
244 * 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
|
245 * 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
|
246 * 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
|
247 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
|
248 */ |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
249 #ifndef DROPBEAR_DH_GROUP1 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
250 #define DROPBEAR_DH_GROUP1 1 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
251 #endif |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
252 #ifndef DROPBEAR_DH_GROUP14_SHA1 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
253 #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
|
254 #endif |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
255 #ifndef DROPBEAR_DH_GROUP14_SHA256 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
256 #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
|
257 #endif |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
258 #ifndef DROPBEAR_DH_GROUP16 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
259 #define DROPBEAR_DH_GROUP16 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 /* 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
|
263 * 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
|
264 * zlib.h for full details. |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
265 * 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
|
266 * 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
|
267 * 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
|
268 * interoperability) */ |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
269 #ifndef DROPBEAR_ZLIB_WINDOW_BITS |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
270 #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
|
271 #endif |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
272 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
273 /* 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
|
274 #ifndef DO_HOST_LOOKUP |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
275 #define DO_HOST_LOOKUP 0 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
276 #endif |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
277 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
278 /* 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
|
279 #ifndef DO_MOTD |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
280 #define DO_MOTD 0 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
281 #endif |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
282 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
283 /* The MOTD file path */ |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
284 #ifndef MOTD_FILENAME |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
285 #define MOTD_FILENAME "/etc/motd" |
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 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
288 /* 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
|
289 RFC Draft requires pubkey auth, and recommends password */ |
1514
6c16a05023aa
rename some options and move some to sysoptions.h
Matt Johnston <matt@ucc.asn.au>
parents:
1491
diff
changeset
|
290 #ifndef DROPBEAR_SVR_PASSWORD_AUTH |
6c16a05023aa
rename some options and move some to sysoptions.h
Matt Johnston <matt@ucc.asn.au>
parents:
1491
diff
changeset
|
291 #define DROPBEAR_SVR_PASSWORD_AUTH 1 |
6c16a05023aa
rename some options and move some to sysoptions.h
Matt Johnston <matt@ucc.asn.au>
parents:
1491
diff
changeset
|
292 #endif |
1297
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
293 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
294 /* 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
|
295 * 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
|
296 * 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
|
297 * 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
|
298 * PAM challenge/response. |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
299 * 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
|
300 #ifndef DROPBEAR_SVR_PAM_AUTH |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
301 #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
|
302 #endif |
1514
6c16a05023aa
rename some options and move some to sysoptions.h
Matt Johnston <matt@ucc.asn.au>
parents:
1491
diff
changeset
|
303 |
6c16a05023aa
rename some options and move some to sysoptions.h
Matt Johnston <matt@ucc.asn.au>
parents:
1491
diff
changeset
|
304 /* ~/.ssh/authorized_keys authentication */ |
1297
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
305 #ifndef DROPBEAR_SVR_PUBKEY_AUTH |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
306 #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
|
307 #endif |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
308 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
309 /* 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
|
310 * authorized_keys file into account */ |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
311 #ifndef DROPBEAR_SVR_PUBKEY_OPTIONS |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
312 #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
|
313 #endif |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
314 |
1514
6c16a05023aa
rename some options and move some to sysoptions.h
Matt Johnston <matt@ucc.asn.au>
parents:
1491
diff
changeset
|
315 /* Client authentication options */ |
1297
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
316 #ifndef DROPBEAR_CLI_PASSWORD_AUTH |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
317 #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
|
318 #endif |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
319 #ifndef DROPBEAR_CLI_PUBKEY_AUTH |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
320 #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
|
321 #endif |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
322 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
323 /* 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
|
324 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
|
325 #ifndef DROPBEAR_DEFAULT_CLI_AUTHKEY |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
326 #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
|
327 #endif |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
328 |
1514
6c16a05023aa
rename some options and move some to sysoptions.h
Matt Johnston <matt@ucc.asn.au>
parents:
1491
diff
changeset
|
329 /* Allow specifying the password for dbclient via the DROPBEAR_PASSWORD |
6c16a05023aa
rename some options and move some to sysoptions.h
Matt Johnston <matt@ucc.asn.au>
parents:
1491
diff
changeset
|
330 * environment variable. */ |
6c16a05023aa
rename some options and move some to sysoptions.h
Matt Johnston <matt@ucc.asn.au>
parents:
1491
diff
changeset
|
331 #ifndef DROPBEAR_USE_PASSWORD_ENV |
6c16a05023aa
rename some options and move some to sysoptions.h
Matt Johnston <matt@ucc.asn.au>
parents:
1491
diff
changeset
|
332 #define DROPBEAR_USE_PASSWORD_ENV 1 |
1297
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 |
1514
6c16a05023aa
rename some options and move some to sysoptions.h
Matt Johnston <matt@ucc.asn.au>
parents:
1491
diff
changeset
|
345 * sending a query for the available methods. This is not yet enabled by default |
6c16a05023aa
rename some options and move some to sysoptions.h
Matt Johnston <matt@ucc.asn.au>
parents:
1491
diff
changeset
|
346 since it could cause problems with non-compliant servers */ |
6c16a05023aa
rename some options and move some to sysoptions.h
Matt Johnston <matt@ucc.asn.au>
parents:
1491
diff
changeset
|
347 #define DROPBEAR_CLI_IMMEDIATE_AUTH 0 |
1297
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
348 |
1514
6c16a05023aa
rename some options and move some to sysoptions.h
Matt Johnston <matt@ucc.asn.au>
parents:
1491
diff
changeset
|
349 /* Set this to use PRNGD or EGD instead of /dev/urandom */ |
6c16a05023aa
rename some options and move some to sysoptions.h
Matt Johnston <matt@ucc.asn.au>
parents:
1491
diff
changeset
|
350 #ifndef DROPBEAR_USE_PRNGD |
6c16a05023aa
rename some options and move some to sysoptions.h
Matt Johnston <matt@ucc.asn.au>
parents:
1491
diff
changeset
|
351 #define DROPBEAR_USE_PRNGD 0 |
1297
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
352 #endif |
1514
6c16a05023aa
rename some options and move some to sysoptions.h
Matt Johnston <matt@ucc.asn.au>
parents:
1491
diff
changeset
|
353 #ifndef DROPBEAR_PRNGD_SOCKET |
6c16a05023aa
rename some options and move some to sysoptions.h
Matt Johnston <matt@ucc.asn.au>
parents:
1491
diff
changeset
|
354 #define DROPBEAR_PRNGD_SOCKET "/var/run/dropbear-rng" |
6c16a05023aa
rename some options and move some to sysoptions.h
Matt Johnston <matt@ucc.asn.au>
parents:
1491
diff
changeset
|
355 #endif |
1297
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
356 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
357 /* 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
|
358 * 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
|
359 /* 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
|
360 #ifndef MAX_UNAUTH_PER_IP |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
361 #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
|
362 #endif |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
363 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
364 /* 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
|
365 * come from many IPs */ |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
366 #ifndef MAX_UNAUTH_CLIENTS |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
367 #define MAX_UNAUTH_CLIENTS 30 |
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 |
1445
a3a96dbf9a58
Use MAX_AUTH_TRIES rather than DEFAULT_AUTH_TRIES, don't limit argument range
Matt Johnston <matt@ucc.asn.au>
parents:
1442
diff
changeset
|
370 /* Default maximum number of failed authentication tries (server option) */ |
1491 | 371 /* -T server option overrides */ |
1297
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
372 #ifndef MAX_AUTH_TRIES |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
373 #define MAX_AUTH_TRIES 10 |
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 /* 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
|
377 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
|
378 #ifndef DROPBEAR_PIDFILE |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
379 #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
|
380 #endif |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
381 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
382 /* 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
|
383 * "-q" for quiet */ |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
384 #ifndef XAUTH_COMMAND |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
385 #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
|
386 #endif |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
387 |
1514
6c16a05023aa
rename some options and move some to sysoptions.h
Matt Johnston <matt@ucc.asn.au>
parents:
1491
diff
changeset
|
388 |
1297
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
389 /* if you want to enable running an sftp server (such as the one included with |
1514
6c16a05023aa
rename some options and move some to sysoptions.h
Matt Johnston <matt@ucc.asn.au>
parents:
1491
diff
changeset
|
390 * OpenSSH), set the path below and set DROPBEAR_SFTPSERVER. |
6c16a05023aa
rename some options and move some to sysoptions.h
Matt Johnston <matt@ucc.asn.au>
parents:
1491
diff
changeset
|
391 * The sftp-server program is not provided by Dropbear itself */ |
6c16a05023aa
rename some options and move some to sysoptions.h
Matt Johnston <matt@ucc.asn.au>
parents:
1491
diff
changeset
|
392 #ifndef DROPBEAR_SFTPSERVER |
6c16a05023aa
rename some options and move some to sysoptions.h
Matt Johnston <matt@ucc.asn.au>
parents:
1491
diff
changeset
|
393 #define DROPBEAR_SFTPSERVER 1 |
6c16a05023aa
rename some options and move some to sysoptions.h
Matt Johnston <matt@ucc.asn.au>
parents:
1491
diff
changeset
|
394 #endif |
1297
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
395 #ifndef SFTPSERVER_PATH |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
396 #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
|
397 #endif |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
398 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
399 /* 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
|
400 * 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
|
401 #ifndef DROPBEAR_PATH_SSH_PROGRAM |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
402 #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
|
403 #endif |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
404 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
405 /* 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
|
406 * (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
|
407 * shell/sftp session etc. */ |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
408 #ifndef LOG_COMMANDS |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
409 #define LOG_COMMANDS 0 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
410 #endif |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
411 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
412 /* 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
|
413 usage and network performance: */ |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
414 /* 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
|
415 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
|
416 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
|
417 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
|
418 runtime with the -W argument. */ |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
419 #ifndef DEFAULT_RECV_WINDOW |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
420 #define DEFAULT_RECV_WINDOW 24576 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
421 #endif |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
422 /* 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
|
423 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
|
424 #ifndef RECV_MAX_PAYLOAD_LEN |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
425 #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
|
426 #endif |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
427 /* 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
|
428 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
|
429 #ifndef TRANS_MAX_PAYLOAD_LEN |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
430 #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
|
431 #endif |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
432 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
433 /* 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
|
434 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
|
435 #ifndef DEFAULT_KEEPALIVE |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
436 #define DEFAULT_KEEPALIVE 0 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
437 #endif |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
438 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
439 /* 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
|
440 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
|
441 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
|
442 #ifndef DEFAULT_KEEPALIVE_LIMIT |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
443 #define DEFAULT_KEEPALIVE_LIMIT 3 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
444 #endif |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
445 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
446 /* 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
|
447 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
|
448 #ifndef DEFAULT_IDLE_TIMEOUT |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
449 #define DEFAULT_IDLE_TIMEOUT 0 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
450 #endif |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
451 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
452 /* 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
|
453 #ifndef DEFAULT_PATH |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
454 #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
|
455 #endif |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
456 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
457 #endif /* DROPBEAR_DEFAULT_OPTIONS_H_ */ |