| 1 | diff -u -r ../dropbear-2015.71/options.h ./options.h |
| 2 | --- ../dropbear-2015.71/options.h 2015-12-03 08:24:00.000000000 -0500 |
| 3 | +++ ./options.h 2015-12-03 11:48:59.745257140 -0500 |
| 4 | @@ -11,7 +11,7 @@ |
| 5 | /* IMPORTANT: Many options will require "make clean" after changes */ |
| 6 | |
| 7 | #ifndef DROPBEAR_DEFPORT |
| 8 | -#define DROPBEAR_DEFPORT "22" |
| 9 | +#define DROPBEAR_DEFPORT "8022" |
| 10 | #endif |
| 11 | |
| 12 | #ifndef DROPBEAR_DEFADDRESS |
| 13 | @@ -21,13 +21,13 @@ |
| 14 | |
| 15 | /* Default hostkey paths - these can be specified on the command line */ |
| 16 | #ifndef DSS_PRIV_FILENAME |
| 17 | -#define DSS_PRIV_FILENAME "/etc/dropbear/dropbear_dss_host_key" |
| 18 | +#define DSS_PRIV_FILENAME "@TERMUX_PREFIX@/etc/dropbear/dropbear_dss_host_key" |
| 19 | #endif |
| 20 | #ifndef RSA_PRIV_FILENAME |
| 21 | -#define RSA_PRIV_FILENAME "/etc/dropbear/dropbear_rsa_host_key" |
| 22 | +#define RSA_PRIV_FILENAME "@TERMUX_PREFIX@/etc/dropbear/dropbear_rsa_host_key" |
| 23 | #endif |
| 24 | #ifndef ECDSA_PRIV_FILENAME |
| 25 | -#define ECDSA_PRIV_FILENAME "/etc/dropbear/dropbear_ecdsa_host_key" |
| 26 | +#define ECDSA_PRIV_FILENAME "@TERMUX_PREFIX@/etc/dropbear/dropbear_ecdsa_host_key" |
| 27 | #endif |
| 28 | |
| 29 | /* Set NON_INETD_MODE if you require daemon functionality (ie Dropbear listens |
| 30 | @@ -52,7 +52,7 @@ |
| 31 | several kB in binary size however will make the symmetrical ciphers and hashes |
| 32 | slower, perhaps by 50%. Recommended for small systems that aren't doing |
| 33 | much traffic. */ |
| 34 | -#define DROPBEAR_SMALL_CODE |
| 35 | +#undef DROPBEAR_SMALL_CODE |
| 36 | |
| 37 | /* Enable X11 Forwarding - server only */ |
| 38 | #define ENABLE_X11FWD |
| 39 | @@ -193,7 +193,7 @@ |
| 40 | |
| 41 | /* The MOTD file path */ |
| 42 | #ifndef MOTD_FILENAME |
| 43 | -#define MOTD_FILENAME "/etc/motd" |
| 44 | +#define MOTD_FILENAME "@TERMUX_PREFIX@/etc/motd" |
| 45 | #endif |
| 46 | |
| 47 | /* Authentication Types - at least one required. |
| 48 | @@ -208,7 +208,7 @@ |
| 49 | |
| 50 | /* This requires crypt() */ |
| 51 | #ifdef HAVE_CRYPT |
| 52 | -#define ENABLE_SVR_PASSWORD_AUTH |
| 53 | +#undef ENABLE_SVR_PASSWORD_AUTH |
| 54 | #endif |
| 55 | /* PAM requires ./configure --enable-pam */ |
| 56 | /*#define ENABLE_SVR_PAM_AUTH */ |
| 57 | @@ -282,7 +282,7 @@ |
| 58 | /* The default file to store the daemon's process ID, for shutdown |
| 59 | scripts etc. This can be overridden with the -P flag */ |
| 60 | #ifndef DROPBEAR_PIDFILE |
| 61 | -#define DROPBEAR_PIDFILE "/var/run/dropbear.pid" |
| 62 | +#define DROPBEAR_PIDFILE "@TERMUX_PREFIX@/var/run/dropbear.pid" |
| 63 | #endif |
| 64 | |
| 65 | /* The command to invoke for xauth when using X11 forwarding. |
| 66 | @@ -342,7 +342,7 @@ |
| 67 | #define DEFAULT_IDLE_TIMEOUT 0 |
| 68 | |
| 69 | /* The default path. This will often get replaced by the shell */ |
| 70 | -#define DEFAULT_PATH "/usr/bin:/bin" |
| 71 | +#define DEFAULT_PATH "@TERMUX_PREFIX@/bin:/system/bin" |
| 72 | |
| 73 | /* Some other defines (that mostly should be left alone) are defined |
| 74 | * in sysoptions.h */ |