Matt Johnston
3939321750
Make re-exec work with "dropbearmulti dropbear"
...
The re-exec needs to know to use the dropbearmulti binary instead.
Add a test for this case.
2022-02-01 22:19:49 +08:00
Matt Johnston
a7ef149463
Bring back recently removed channel->flushing
...
This resolves the "sleep 10&echo hello" case which should
return immediately
2021-10-14 20:55:15 +08:00
Matt Johnston
02ffdd09dc
- Add adaptive authentication failure delay
...
- Rework monotonic_now/gettime_wrapper and use clock_gettime on more platforms
2018-11-05 23:36:34 +08:00
Matt Johnston
a60725740b
workaround memory sanitizer FD_ZERO false positives
2018-03-06 21:51:51 +08:00
Matt Johnston
7e8094d53a
merge from main
...
--HG--
branch : fuzz
2018-02-17 19:29:51 +08:00
Michael Witten
3ee685ad1c
options: Complete the transition to numeric toggles (`#if')
...
For the sake of review, this commit alters only the code; the affiliated
comments within the source files also need to be updated, but doing so
now would obscure the operational changes that have been made here.
* All on/off options have been switched to the numeric `#if' variant;
that is the only way to make this `default_options.h.in' thing work
in a reasonable manner.
* There is now some very minor compile-time checking of the user's
choice of options.
* NO_FAST_EXPTMOD doesn't seem to be used, so it has been removed.
* ENABLE_USER_ALGO_LIST was supposed to be renamed DROPBEAR_USER_ALGO_LIST,
and this commit completes that work.
* DROPBEAR_FUZZ seems to be a relatively new, as-yet undocumented option,
which was added by the following commit:
commit 6e0b539e9c
Author: Matt Johnston <matt@ucc.asn.au>
Date: Tue May 23 22:29:21 2017 +0800
split out checkpubkey_line() separately
It has now been added to `sysoptions.h' and defined as `0' by default.
* The configuration option `DROPBEAR_PASSWORD_ENV' is no longer listed in
`default_options.h.in'; it is no longer meant to be set by the user, and
is instead left to be defined in `sysoptions.h' (where it was already being
defined) as merely the name of the environment variable in question:
DROPBEAR_PASSWORD
To enable or disable use of that environment variable, the user must now
toggle `DROPBEAR_USE_DROPBEAR_PASSWORD'.
* The sFTP support is now toggled by setting `DROPBEAR_SFTPSERVER', and the
path of the sFTP server program is set independently through the usual
SFTPSERVER_PATH.
2018-02-16 23:13:47 +08:00
Francois Perrad
598056d168
Pointer parameter could be declared as pointing to const (callback)
2017-08-19 22:39:53 +02:00
Matt Johnston
fb8fb7fed0
add dbmalloc epoch cleanup
...
--HG--
branch : fuzz
2017-05-21 10:54:11 +08:00
Matt Johnston
45b27b0194
merge 2017.75
2017-05-18 22:59:38 +08:00
Matt Johnston
597f12c44a
Use atomic key generation in all cases
2016-11-19 00:31:21 +08:00
Matt Johnston
32a28d0d9c
Convert #ifdef to #if, other build changes
2016-05-04 15:33:40 +02:00
Matt Johnston
420151dbd9
move m_burn and function attributes to dbhelpers
...
use m_burn for libtomcrypt zeromem() too
2016-03-17 23:21:33 +08:00
Francois Perrad
3e20c442de
fix empty C prototypes
2016-03-16 22:41:20 +08:00
Konstantin Tokarev
c59827334c
Allow setting syslog identifier via startsyslog().
2015-12-15 16:43:29 +03:00
Matt Johnston
c7bd5ac77d
remove extraneous semicolon from m_free #define
2015-08-03 20:46:29 +08:00
Matt Johnston
941c067765
change DROPBEAR_DEFAULT_CLI_AUTHKEY to just prepend homedir
...
rather than doing ~ expansion
2015-08-03 20:45:04 +08:00
Matt Johnston
31e379c300
merge from default
...
--HG--
branch : fastopen
2015-02-28 09:06:40 +08:00
Thorsten Horstmann
fdb7ffa864
DROPBEAR_ prefix for include guards to avoid collisions
2015-02-24 20:43:01 +08:00
Matt Johnston
f04a3a2cfa
Fixes for backwards compatibility
...
--HG--
branch : fastopen
2015-02-20 23:38:05 +08:00
Matt Johnston
364a53577e
Move generic network routines to netio.c
...
--HG--
branch : fastopen
2015-02-20 23:16:38 +08:00
Matt Johnston
86a717c80c
fallback for old glibc and fastopen
...
memset rather than = {0} initialiser
--HG--
branch : fastopen
2015-02-19 22:33:51 +08:00
Matt Johnston
76a3eb393c
In theory TFO should work. Needs platform cleanup and testing
...
--HG--
branch : fastopen
2015-02-19 00:32:00 +08:00
Matt Johnston
755c1458f0
async connections working
...
--HG--
branch : fastopen
2015-02-18 22:46:15 +08:00
Matt Johnston
8795d733ec
work in progress for async connect
...
--HG--
branch : fastopen
2015-02-18 00:05:27 +08:00
Matt Johnston
28f61c8b3a
tcp fastopen for the server
...
--HG--
branch : fastopen
2015-02-15 22:34:05 +08:00
Matt Johnston
9abcc7b909
connect_remote() is now always non-blocking
2015-02-14 09:56:11 +08:00
Matt Johnston
2c35f1c8fd
Add envirnonment variable for debug timestamps to roughly match
...
network timestamps (in tshark)
2015-02-13 23:47:53 +08:00
Matt Johnston
9174de47a9
Fix bad multi-statement define for m_free(), detected by Coverity
2015-01-28 22:43:01 +08:00
Matt Johnston
6165f53fcd
Default client key path ~/.ssh/id_dropbear
2015-01-24 00:05:26 +08:00
Matt Johnston
923fc9087c
- Don't use multichar constants since recent gcc complains
...
- Add release script
- Simplify print_version
2014-07-27 22:55:29 +08:00
Matt Johnston
da57dd13c5
Set tcp priority as follows:
...
if (connecting || ptys || x11) tos = LOWDELAY;
else if (tcp_forwards) tos = 0;
else tos = BULK;
TCP forwards could be either lowdelay or bulk, hence the default priority.
2014-07-16 22:53:32 +08:00
Matt Johnston
e767bbb41f
Add new monotonic_now() wrapper so that timeouts are unaffected by
...
system clock changes
2014-03-13 23:50:09 +08:00
Matt Johnston
998d6cdfc4
- Sockets are set to lowdelay priority initially to improve conneciton setup
...
time
- Set non-pty connections to bulk for client and server
2013-12-03 00:04:48 +08:00
Catalin Patulea
ddc10b2d0c
Set IPTOS_LOWDELAY on PTY sessions only
2013-12-02 22:55:43 +08:00
Matt Johnston
45bd0edae5
Merge in changes from the past couple of releases
...
--HG--
branch : ecc
2013-10-18 21:38:01 +08:00
Matt Johnston
d1dec41f76
Constant time memcmp for the hmac and password crypt
2013-10-03 22:25:30 +08:00
Matt Johnston
04518e9e80
merge in HEAD
...
--HG--
branch : ecc
2013-05-21 12:09:35 +08:00
Matt Johnston
a7d1a9cfcb
add printmpint() for debugging
...
--HG--
branch : ecc
2013-04-08 23:12:35 +08:00
Matt Johnston
f267ca1f3a
Add sentinel attribute
...
--HG--
branch : kexguess
2013-04-03 00:32:05 +08:00
Matt Johnston
90cf7f012c
Move the more verbose TRACE() statements into TRACE2()
2013-04-01 00:07:26 +08:00
Matt Johnston
2e0145fb95
- We don't need to test for NULL before free()
2011-12-04 05:23:43 +08:00
Matt Johnston
2028b1b517
Add noreturn and format attribute hints for some functions.
...
--HG--
extra : convert_revision : 6cc8735d01f0360b918edc26be05681725c0022a
2011-04-07 12:59:18 +00:00
Matt Johnston
f88bed7a30
Rearrange getaddrstring() etc
...
--HG--
extra : convert_revision : 8a18c4a60aeaec085923d13d98fa0f93c506ceba
2009-09-01 16:38:26 +00:00
Matt Johnston
e674c73ee6
propagate from branch 'au.asn.ucc.matt.dropbear' (head 4fb35083f0f46ea667e7043e7d4314aecd3df46c)
...
to branch 'au.asn.ucc.matt.dropbear.cli-agent' (head 833d0adef6cdbf43ea75283524c665e70b0ee1ee)
--HG--
branch : agent-client
extra : convert_revision : 6bbab8364de17bd9ecb1dee5ffb796e48c0380d2
2008-09-23 16:05:04 +00:00
Matt Johnston
643626d546
Replace calls to strtoul() with a helper m_str_to_uint()
...
--HG--
extra : convert_revision : 1f8643c5ba7fe789c120b503c396281ac45f9730
2008-09-22 14:13:44 +00:00
Matt Johnston
12929e8cf0
- Add run_shell_command() function to run a "sh -c" command, handling
...
lots of the work that exechild did (and can be shared by client -J option)
--HG--
extra : convert_revision : a15dfd8017af8212b3b227f18ce2539dd471f7f6
2008-09-15 14:04:55 +00:00
Matt Johnston
7ac24b10b9
- Generalise spawn_command function
...
--HG--
extra : convert_revision : 9927a5fe084c8053c747a40515f0213141ef8139
2008-09-15 13:41:18 +00:00
Matt Johnston
e41452afeb
propagate from branch 'au.asn.ucc.matt.dropbear' (head 8a7db1e2fdc5636abb338adb636babc32f465739)
...
to branch 'au.asn.ucc.matt.dropbear.cli-agent' (head d82c25da2f7e4fb6da510d806c64344e80bb270d)
--HG--
branch : agent-client
extra : convert_revision : 78d02301ae8310efa2639f15da0ea62dea110e4b
2007-08-16 13:34:37 +00:00
Matt Johnston
47e76de56a
Disable core dumps
...
--HG--
extra : convert_revision : ba8ebf724630561c6b9285247be7574a33853a17
2007-02-12 10:43:44 +00:00
Matt Johnston
f7caf6f5c6
propagate from branch 'au.asn.ucc.matt.dropbear' (head 0501e6f661b5415eb76f3b312d183c3adfbfb712)
...
to branch 'au.asn.ucc.matt.dropbear.cli-agent' (head 01038174ec27245b51bd43a66c01ad930880f67b)
--HG--
branch : agent-client
extra : convert_revision : 12b2f59db65e7339d340e95ac67d6d9ddb193c2b
2006-03-21 16:20:59 +00:00