Mercurial > dropbear
annotate default_options.h @ 1519:2f4d52b1334e
missed regenerating
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sun, 18 Feb 2018 23:48:24 +0800 |
parents | 6c16a05023aa |
children |
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 |
1519 | 19 Options can also be defined with -DDROPBEAR_XXX=[0,1] in Makefile CFLAGS |
1297
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
20 |
1519 | 21 IMPORTANT: Some options will require "make clean" after changes */ |
1297
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 |
1519 | 67 * several kB in binary size however will make the symmetrical ciphers and hashes |
68 * slower, perhaps by 50%. Recommended for small systems that aren't doing | |
69 * much traffic. */ | |
1297
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 #ifndef DROPBEAR_CLI_LOCALTCPFWD |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
83 #define DROPBEAR_CLI_LOCALTCPFWD 1 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
84 #endif |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
85 #ifndef DROPBEAR_CLI_REMOTETCPFWD |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
86 #define DROPBEAR_CLI_REMOTETCPFWD 1 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
87 #endif |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
88 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
89 #ifndef DROPBEAR_SVR_LOCALTCPFWD |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
90 #define DROPBEAR_SVR_LOCALTCPFWD 1 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
91 #endif |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
92 #ifndef DROPBEAR_SVR_REMOTETCPFWD |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
93 #define DROPBEAR_SVR_REMOTETCPFWD 1 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
94 #endif |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
95 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
96 /* Enable Authentication Agent Forwarding */ |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
97 #ifndef DROPBEAR_SVR_AGENTFWD |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
98 #define DROPBEAR_SVR_AGENTFWD 1 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
99 #endif |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
100 #ifndef DROPBEAR_CLI_AGENTFWD |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
101 #define DROPBEAR_CLI_AGENTFWD 1 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
102 #endif |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
103 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
104 /* 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
|
105 * allow multihop dbclient connections */ |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
106 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
107 /* 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
|
108 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
|
109 #ifndef DROPBEAR_CLI_PROXYCMD |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
110 #define DROPBEAR_CLI_PROXYCMD 1 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
111 #endif |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
112 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
113 /* 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
|
114 * 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
|
115 #ifndef DROPBEAR_CLI_NETCAT |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
116 #define DROPBEAR_CLI_NETCAT 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 /* 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
|
120 #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
|
121 #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
|
122 #endif |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
123 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
124 /* 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
|
125 * 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
|
126 * support 3DES. |
6c16a05023aa
rename some options and move some to sysoptions.h
Matt Johnston <matt@ucc.asn.au>
parents:
1491
diff
changeset
|
127 * 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
|
128 * a minimal size increase */ |
1297
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
129 #ifndef DROPBEAR_AES128 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
130 #define DROPBEAR_AES128 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 #ifndef DROPBEAR_3DES |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
133 #define DROPBEAR_3DES 1 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
134 #endif |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
135 #ifndef DROPBEAR_AES256 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
136 #define DROPBEAR_AES256 1 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
137 #endif |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
138 #ifndef DROPBEAR_TWOFISH256 |
1519 | 139 #define DROPBEAR_TWOFISH256 0 |
1297
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
140 #endif |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
141 #ifndef DROPBEAR_TWOFISH128 |
1519 | 142 #define DROPBEAR_TWOFISH128 0 |
1297
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
143 #endif |
1514
6c16a05023aa
rename some options and move some to sysoptions.h
Matt Johnston <matt@ucc.asn.au>
parents:
1491
diff
changeset
|
144 /* 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
|
145 #ifndef DROPBEAR_BLOWFISH |
6c16a05023aa
rename some options and move some to sysoptions.h
Matt Johnston <matt@ucc.asn.au>
parents:
1491
diff
changeset
|
146 #define DROPBEAR_BLOWFISH 0 |
6c16a05023aa
rename some options and move some to sysoptions.h
Matt Johnston <matt@ucc.asn.au>
parents:
1491
diff
changeset
|
147 #endif |
1297
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
148 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
149 /* 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
|
150 * 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
|
151 #ifndef DROPBEAR_ENABLE_CBC_MODE |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
152 #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
|
153 #endif |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
154 |
1514
6c16a05023aa
rename some options and move some to sysoptions.h
Matt Johnston <matt@ucc.asn.au>
parents:
1491
diff
changeset
|
155 /* 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
|
156 * 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
|
157 * and forwards compatibility */ |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
158 #ifndef DROPBEAR_ENABLE_CTR_MODE |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
159 #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
|
160 #endif |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
161 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
162 /* 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
|
163 sha1 for compatibility */ |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
164 #ifndef DROPBEAR_SHA1_HMAC |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
165 #define DROPBEAR_SHA1_HMAC 1 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
166 #endif |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
167 #ifndef DROPBEAR_SHA1_96_HMAC |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
168 #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
|
169 #endif |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
170 #ifndef DROPBEAR_SHA2_256_HMAC |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
171 #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
|
172 #endif |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
173 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
174 /* 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
|
175 * 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
|
176 * 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
|
177 * RSA is recommended |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
178 * 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
|
179 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
|
180 #ifndef DROPBEAR_RSA |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
181 #define DROPBEAR_RSA 1 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
182 #endif |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
183 #ifndef DROPBEAR_DSS |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
184 #define DROPBEAR_DSS 1 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
185 #endif |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
186 /* 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
|
187 * 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
|
188 * on x86-64 */ |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
189 #ifndef DROPBEAR_ECDSA |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
190 #define DROPBEAR_ECDSA 1 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
191 #endif |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
192 |
1438
4f8eb331174f
add configuration option for default RSA size.
Matt Johnston <matt@ucc.asn.au>
parents:
1297
diff
changeset
|
193 /* RSA must be >=1024 */ |
4f8eb331174f
add configuration option for default RSA size.
Matt Johnston <matt@ucc.asn.au>
parents:
1297
diff
changeset
|
194 #ifndef DROPBEAR_DEFAULT_RSA_SIZE |
4f8eb331174f
add configuration option for default RSA size.
Matt Johnston <matt@ucc.asn.au>
parents:
1297
diff
changeset
|
195 #define DROPBEAR_DEFAULT_RSA_SIZE 2048 |
4f8eb331174f
add configuration option for default RSA size.
Matt Johnston <matt@ucc.asn.au>
parents:
1297
diff
changeset
|
196 #endif |
4f8eb331174f
add configuration option for default RSA size.
Matt Johnston <matt@ucc.asn.au>
parents:
1297
diff
changeset
|
197 /* DSS is always 1024 */ |
4f8eb331174f
add configuration option for default RSA size.
Matt Johnston <matt@ucc.asn.au>
parents:
1297
diff
changeset
|
198 /* 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
|
199 |
1297
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
200 /* 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
|
201 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
|
202 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
|
203 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
|
204 #ifndef DROPBEAR_DELAY_HOSTKEY |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
205 #define DROPBEAR_DELAY_HOSTKEY 1 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
206 #endif |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
207 |
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 /* Key exchange algorithm. |
1519 | 210 |
1297
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
211 * group14_sha1 - 2048 bit, sha1 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
212 * 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
|
213 * group16 - 4096 bit, sha2-512 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
214 * group1 - 1024 bit, sha1 |
1519 | 215 * curve25519 - elliptic curve DH |
216 * ecdh - NIST elliptic curve DH (256, 384, 521) | |
1297
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
217 * |
1519 | 218 * group1 is too small for security though is necessary if you need |
219 compatibility with some implementations such as Dropbear versions < 0.53 | |
1297
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
220 * 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
|
221 * group16 provides a greater strength level but is slower and increases binary size |
1519 | 222 * curve25519 and ecdh algorithms are faster than non-elliptic curve methods |
223 * curve25519 increases binary size by ~8kB on x86-64 | |
224 * including either ECDH or ECDSA increases binary size by ~30kB on x86-64 | |
225 | |
226 * Small systems should generally include either curve25519 or ecdh for performance. | |
227 * curve25519 is less widely supported but is faster | |
1297
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
228 */ |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
229 #ifndef DROPBEAR_DH_GROUP1 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
230 #define DROPBEAR_DH_GROUP1 1 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
231 #endif |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
232 #ifndef DROPBEAR_DH_GROUP14_SHA1 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
233 #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
|
234 #endif |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
235 #ifndef DROPBEAR_DH_GROUP14_SHA256 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
236 #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
|
237 #endif |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
238 #ifndef DROPBEAR_DH_GROUP16 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
239 #define DROPBEAR_DH_GROUP16 0 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
240 #endif |
1519 | 241 #ifndef DROPBEAR_CURVE25519 |
242 #define DROPBEAR_CURVE25519 1 | |
243 #endif | |
244 #ifndef DROPBEAR_ECDH | |
245 #define DROPBEAR_ECDH 1 | |
246 #endif | |
1297
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
247 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
248 /* 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
|
249 * 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
|
250 * zlib.h for full details. |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
251 * 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
|
252 * 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
|
253 * 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
|
254 * interoperability) */ |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
255 #ifndef DROPBEAR_ZLIB_WINDOW_BITS |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
256 #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
|
257 #endif |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
258 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
259 /* 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
|
260 #ifndef DO_HOST_LOOKUP |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
261 #define DO_HOST_LOOKUP 0 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
262 #endif |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
263 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
264 /* 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
|
265 #ifndef DO_MOTD |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
266 #define DO_MOTD 0 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
267 #endif |
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 */ |
1514
6c16a05023aa
rename some options and move some to sysoptions.h
Matt Johnston <matt@ucc.asn.au>
parents:
1491
diff
changeset
|
274 #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
|
275 #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
|
276 #endif |
1297
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 /* 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
|
279 * 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
|
280 * 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
|
281 * 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
|
282 * PAM challenge/response. |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
283 * 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
|
284 #ifndef DROPBEAR_SVR_PAM_AUTH |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
285 #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
|
286 #endif |
1514
6c16a05023aa
rename some options and move some to sysoptions.h
Matt Johnston <matt@ucc.asn.au>
parents:
1491
diff
changeset
|
287 |
6c16a05023aa
rename some options and move some to sysoptions.h
Matt Johnston <matt@ucc.asn.au>
parents:
1491
diff
changeset
|
288 /* ~/.ssh/authorized_keys authentication */ |
1297
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
289 #ifndef DROPBEAR_SVR_PUBKEY_AUTH |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
290 #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
|
291 #endif |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
292 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
293 /* 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
|
294 * authorized_keys file into account */ |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
295 #ifndef DROPBEAR_SVR_PUBKEY_OPTIONS |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
296 #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
|
297 #endif |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
298 |
1514
6c16a05023aa
rename some options and move some to sysoptions.h
Matt Johnston <matt@ucc.asn.au>
parents:
1491
diff
changeset
|
299 /* Client authentication options */ |
1297
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
300 #ifndef DROPBEAR_CLI_PASSWORD_AUTH |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
301 #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
|
302 #endif |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
303 #ifndef DROPBEAR_CLI_PUBKEY_AUTH |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
304 #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
|
305 #endif |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
306 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
307 /* 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
|
308 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
|
309 #ifndef DROPBEAR_DEFAULT_CLI_AUTHKEY |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
310 #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
|
311 #endif |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
312 |
1514
6c16a05023aa
rename some options and move some to sysoptions.h
Matt Johnston <matt@ucc.asn.au>
parents:
1491
diff
changeset
|
313 /* 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
|
314 * environment variable. */ |
6c16a05023aa
rename some options and move some to sysoptions.h
Matt Johnston <matt@ucc.asn.au>
parents:
1491
diff
changeset
|
315 #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
|
316 #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
|
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 /* 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
|
320 * 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
|
321 * 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
|
322 * 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
|
323 * 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
|
324 #ifndef DROPBEAR_CLI_ASKPASS_HELPER |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
325 #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
|
326 #endif |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
327 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
328 /* 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
|
329 * 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
|
330 since it could cause problems with non-compliant servers */ |
1519 | 331 #ifndef DROPBEAR_CLI_IMMEDIATE_AUTH |
332 #define DROPBEAR_CLI_IMMEDIATE_AUTH 0 | |
333 #endif | |
1297
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
334 |
1514
6c16a05023aa
rename some options and move some to sysoptions.h
Matt Johnston <matt@ucc.asn.au>
parents:
1491
diff
changeset
|
335 /* 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
|
336 #ifndef DROPBEAR_USE_PRNGD |
6c16a05023aa
rename some options and move some to sysoptions.h
Matt Johnston <matt@ucc.asn.au>
parents:
1491
diff
changeset
|
337 #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
|
338 #endif |
1514
6c16a05023aa
rename some options and move some to sysoptions.h
Matt Johnston <matt@ucc.asn.au>
parents:
1491
diff
changeset
|
339 #ifndef DROPBEAR_PRNGD_SOCKET |
6c16a05023aa
rename some options and move some to sysoptions.h
Matt Johnston <matt@ucc.asn.au>
parents:
1491
diff
changeset
|
340 #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
|
341 #endif |
1297
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
342 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
343 /* 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
|
344 * 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
|
345 /* 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
|
346 #ifndef MAX_UNAUTH_PER_IP |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
347 #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
|
348 #endif |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
349 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
350 /* 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
|
351 * come from many IPs */ |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
352 #ifndef MAX_UNAUTH_CLIENTS |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
353 #define MAX_UNAUTH_CLIENTS 30 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
354 #endif |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
355 |
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
|
356 /* Default maximum number of failed authentication tries (server option) */ |
1491 | 357 /* -T server option overrides */ |
1297
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
358 #ifndef MAX_AUTH_TRIES |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
359 #define MAX_AUTH_TRIES 10 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
360 #endif |
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 /* 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
|
363 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
|
364 #ifndef DROPBEAR_PIDFILE |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
365 #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
|
366 #endif |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
367 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
368 /* 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
|
369 * "-q" for quiet */ |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
370 #ifndef XAUTH_COMMAND |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
371 #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
|
372 #endif |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
373 |
1514
6c16a05023aa
rename some options and move some to sysoptions.h
Matt Johnston <matt@ucc.asn.au>
parents:
1491
diff
changeset
|
374 |
1297
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
375 /* 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
|
376 * 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
|
377 * 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
|
378 #ifndef DROPBEAR_SFTPSERVER |
6c16a05023aa
rename some options and move some to sysoptions.h
Matt Johnston <matt@ucc.asn.au>
parents:
1491
diff
changeset
|
379 #define DROPBEAR_SFTPSERVER 1 |
6c16a05023aa
rename some options and move some to sysoptions.h
Matt Johnston <matt@ucc.asn.au>
parents:
1491
diff
changeset
|
380 #endif |
1297
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
381 #ifndef SFTPSERVER_PATH |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
382 #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
|
383 #endif |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
384 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
385 /* 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
|
386 * 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
|
387 #ifndef DROPBEAR_PATH_SSH_PROGRAM |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
388 #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
|
389 #endif |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
390 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
391 /* 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
|
392 * (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
|
393 * shell/sftp session etc. */ |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
394 #ifndef LOG_COMMANDS |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
395 #define LOG_COMMANDS 0 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
396 #endif |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
397 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
398 /* 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
|
399 usage and network performance: */ |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
400 /* 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
|
401 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
|
402 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
|
403 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
|
404 runtime with the -W argument. */ |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
405 #ifndef DEFAULT_RECV_WINDOW |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
406 #define DEFAULT_RECV_WINDOW 24576 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
407 #endif |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
408 /* 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
|
409 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
|
410 #ifndef RECV_MAX_PAYLOAD_LEN |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
411 #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
|
412 #endif |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
413 /* 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
|
414 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
|
415 #ifndef TRANS_MAX_PAYLOAD_LEN |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
416 #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
|
417 #endif |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
418 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
419 /* 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
|
420 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
|
421 #ifndef DEFAULT_KEEPALIVE |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
422 #define DEFAULT_KEEPALIVE 0 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
423 #endif |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
424 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
425 /* 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
|
426 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
|
427 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
|
428 #ifndef DEFAULT_KEEPALIVE_LIMIT |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
429 #define DEFAULT_KEEPALIVE_LIMIT 3 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
430 #endif |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
431 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
432 /* 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
|
433 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
|
434 #ifndef DEFAULT_IDLE_TIMEOUT |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
435 #define DEFAULT_IDLE_TIMEOUT 0 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
436 #endif |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
437 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
438 /* 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
|
439 #ifndef DEFAULT_PATH |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
440 #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
|
441 #endif |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
442 |
5abbecdecba4
Add generated header default_options.h to version control.
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
443 #endif /* DROPBEAR_DEFAULT_OPTIONS_H_ */ |