Commit | Line | Data |
---|---|---|
10688585 LP |
1 | diff -uNr dropbear-2018.76/default_options.h dropbear-2018.76.mod/default_options.h |
2 | --- dropbear-2018.76/default_options.h 2018-02-27 16:25:10.000000000 +0200 | |
3 | +++ dropbear-2018.76.mod/default_options.h 2018-04-21 13:44:59.120396918 +0300 | |
4 | @@ -13,15 +13,15 @@ | |
5 | ||
6 | IMPORTANT: Some options will require "make clean" after changes */ | |
8bf3f3f0 | 7 | |
8bf3f3f0 FF |
8 | -#define DROPBEAR_DEFPORT "22" |
9 | +#define DROPBEAR_DEFPORT "8022" | |
8bf3f3f0 | 10 | |
10688585 LP |
11 | /* Listen on all interfaces */ |
12 | #define DROPBEAR_DEFADDRESS "" | |
8bf3f3f0 FF |
13 | |
14 | /* Default hostkey paths - these can be specified on the command line */ | |
8bf3f3f0 | 15 | -#define DSS_PRIV_FILENAME "/etc/dropbear/dropbear_dss_host_key" |
8bf3f3f0 | 16 | -#define RSA_PRIV_FILENAME "/etc/dropbear/dropbear_rsa_host_key" |
8bf3f3f0 | 17 | -#define ECDSA_PRIV_FILENAME "/etc/dropbear/dropbear_ecdsa_host_key" |
10688585 LP |
18 | +#define DSS_PRIV_FILENAME "@TERMUX_PREFIX@/etc/dropbear/dropbear_dss_host_key" |
19 | +#define RSA_PRIV_FILENAME "@TERMUX_PREFIX@/etc/dropbear/dropbear_rsa_host_key" | |
8bf3f3f0 | 20 | +#define ECDSA_PRIV_FILENAME "@TERMUX_PREFIX@/etc/dropbear/dropbear_ecdsa_host_key" |
8bf3f3f0 FF |
21 | |
22 | /* Set NON_INETD_MODE if you require daemon functionality (ie Dropbear listens | |
10688585 LP |
23 | * on chosen ports and keeps accepting connections. This is the default. |
24 | @@ -44,7 +44,7 @@ | |
25 | * several kB in binary size however will make the symmetrical ciphers and hashes | |
26 | * slower, perhaps by 50%. Recommended for small systems that aren't doing | |
27 | * much traffic. */ | |
28 | -#define DROPBEAR_SMALL_CODE 1 | |
651173d6 | 29 | +#undef DROPBEAR_SMALL_CODE |
8bf3f3f0 FF |
30 | |
31 | /* Enable X11 Forwarding - server only */ | |
10688585 LP |
32 | #define DROPBEAR_X11FWD 1 |
33 | @@ -175,11 +175,11 @@ | |
8bf3f3f0 | 34 | |
10688585 LP |
35 | /* Whether to print the message of the day (MOTD). */ |
36 | #define DO_MOTD 0 | |
8bf3f3f0 FF |
37 | -#define MOTD_FILENAME "/etc/motd" |
38 | +#define MOTD_FILENAME "@TERMUX_PREFIX@/etc/motd" | |
8bf3f3f0 FF |
39 | |
40 | /* Authentication Types - at least one required. | |
10688585 LP |
41 | RFC Draft requires pubkey auth, and recommends password */ |
42 | -#define DROPBEAR_SVR_PASSWORD_AUTH 1 | |
43 | +#undef DROPBEAR_SVR_PASSWORD_AUTH | |
44 | ||
45 | /* Note: PAM auth is quite simple and only works for PAM modules which just do | |
46 | * a simple "Login: " "Password: " (you can edit the strings in svr-authpam.c). | |
47 | @@ -222,7 +222,7 @@ | |
48 | ||
49 | /* Set this to use PRNGD or EGD instead of /dev/urandom */ | |
50 | #define DROPBEAR_USE_PRNGD 0 | |
51 | -#define DROPBEAR_PRNGD_SOCKET "/var/run/dropbear-rng" | |
52 | +#define DROPBEAR_PRNGD_SOCKET "@TERMUX_PREFIX@/var/run/dropbear-rng" | |
53 | ||
54 | /* Specify the number of clients we will allow to be connected but | |
55 | * not yet authenticated. After this limit, connections are rejected */ | |
56 | @@ -239,22 +239,22 @@ | |
57 | ||
8bf3f3f0 FF |
58 | /* The default file to store the daemon's process ID, for shutdown |
59 | scripts etc. This can be overridden with the -P flag */ | |
8bf3f3f0 FF |
60 | -#define DROPBEAR_PIDFILE "/var/run/dropbear.pid" |
61 | +#define DROPBEAR_PIDFILE "@TERMUX_PREFIX@/var/run/dropbear.pid" | |
8bf3f3f0 FF |
62 | |
63 | /* The command to invoke for xauth when using X11 forwarding. | |
85410959 | 64 | * "-q" for quiet */ |
85410959 FF |
65 | -#define XAUTH_COMMAND "/usr/bin/xauth -q" |
66 | +#define XAUTH_COMMAND "@TERMUX_PREFIX@/bin/xauth -q" | |
10688585 | 67 | |
85410959 FF |
68 | |
69 | /* if you want to enable running an sftp server (such as the one included with | |
10688585 LP |
70 | * OpenSSH), set the path below and set DROPBEAR_SFTPSERVER. |
71 | * The sftp-server program is not provided by Dropbear itself */ | |
72 | #define DROPBEAR_SFTPSERVER 1 | |
85410959 FF |
73 | -#define SFTPSERVER_PATH "/usr/libexec/sftp-server" |
74 | +#define SFTPSERVER_PATH "@TERMUX_PREFIX@/libexec/sftp-server" | |
85410959 FF |
75 | |
76 | /* This is used by the scp binary when used as a client binary. If you're | |
77 | * not using the Dropbear client, you'll need to change it */ | |
78 | -#define DROPBEAR_PATH_SSH_PROGRAM "/usr/bin/dbclient" | |
79 | +#define DROPBEAR_PATH_SSH_PROGRAM "@TERMUX_PREFIX@/bin/dbclient" | |
80 | ||
81 | /* Whether to log commands executed by a client. This only logs the | |
82 | * (single) command sent to the server, not what a user did in a | |
10688585 | 83 | @@ -290,6 +290,6 @@ |
8bf3f3f0 FF |
84 | #define DEFAULT_IDLE_TIMEOUT 0 |
85 | ||
86 | /* The default path. This will often get replaced by the shell */ | |
87 | -#define DEFAULT_PATH "/usr/bin:/bin" | |
10688585 | 88 | +#define DEFAULT_PATH "@TERMUX_PREFIX@/bin:@TERMUX_PREFIX@/bin/applets" |
8bf3f3f0 | 89 | |
10688585 | 90 | #endif /* DROPBEAR_DEFAULT_OPTIONS_H_ */ |