summaryrefslogtreecommitdiffhomepage
path: root/dbutil.h
AgeCommit message (Collapse)Author
2018-11-05- Add adaptive authentication failure delayMatt Johnston
- Rework monotonic_now/gettime_wrapper and use clock_gettime on more platforms
2018-03-06workaround memory sanitizer FD_ZERO false positivesMatt Johnston
2018-02-17merge from mainMatt Johnston
--HG-- branch : fuzz
2018-02-16options: Complete the transition to numeric toggles (`#if')Michael Witten
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 6e0b539e9ca0b5628c6c5a3d118ad6a2e79e8039 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.
2017-08-19Pointer parameter could be declared as pointing to const (callback)Francois Perrad
2017-05-21add dbmalloc epoch cleanupMatt Johnston
--HG-- branch : fuzz
2017-05-18merge 2017.75Matt Johnston
2016-11-19Use atomic key generation in all casesMatt Johnston
2016-05-04Convert #ifdef to #if, other build changesMatt Johnston
2016-03-17move m_burn and function attributes to dbhelpersMatt Johnston
use m_burn for libtomcrypt zeromem() too
2016-03-16fix empty C prototypesFrancois Perrad
2015-12-15Allow setting syslog identifier via startsyslog().Konstantin Tokarev
2015-08-03remove extraneous semicolon from m_free #defineMatt Johnston
2015-08-03change DROPBEAR_DEFAULT_CLI_AUTHKEY to just prepend homedirMatt Johnston
rather than doing ~ expansion
2015-02-28merge from defaultMatt Johnston
--HG-- branch : fastopen
2015-02-24DROPBEAR_ prefix for include guards to avoid collisionsThorsten Horstmann
2015-02-20Fixes for backwards compatibilityMatt Johnston
--HG-- branch : fastopen
2015-02-20Move generic network routines to netio.cMatt Johnston
--HG-- branch : fastopen
2015-02-19fallback for old glibc and fastopenMatt Johnston
memset rather than = {0} initialiser --HG-- branch : fastopen
2015-02-19In theory TFO should work. Needs platform cleanup and testingMatt Johnston
--HG-- branch : fastopen
2015-02-18async connections workingMatt Johnston
--HG-- branch : fastopen
2015-02-18work in progress for async connectMatt Johnston
--HG-- branch : fastopen
2015-02-15tcp fastopen for the serverMatt Johnston
--HG-- branch : fastopen
2015-02-14connect_remote() is now always non-blockingMatt Johnston
2015-02-13Add envirnonment variable for debug timestamps to roughly matchMatt Johnston
network timestamps (in tshark)
2015-01-28Fix bad multi-statement define for m_free(), detected by CoverityMatt Johnston
2015-01-24Default client key path ~/.ssh/id_dropbearMatt Johnston
2014-07-27- Don't use multichar constants since recent gcc complainsMatt Johnston
- Add release script - Simplify print_version
2014-07-16Set tcp priority as follows:Matt Johnston
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-03-13Add new monotonic_now() wrapper so that timeouts are unaffected byMatt Johnston
system clock changes
2013-12-03- Sockets are set to lowdelay priority initially to improve conneciton setupMatt Johnston
time - Set non-pty connections to bulk for client and server
2013-12-02Set IPTOS_LOWDELAY on PTY sessions onlyCatalin Patulea
2013-10-18Merge in changes from the past couple of releasesMatt Johnston
--HG-- branch : ecc
2013-10-03Constant time memcmp for the hmac and password cryptMatt Johnston
2013-05-21merge in HEADMatt Johnston
--HG-- branch : ecc
2013-04-08add printmpint() for debuggingMatt Johnston
--HG-- branch : ecc
2013-04-03Add sentinel attributeMatt Johnston
--HG-- branch : kexguess
2013-04-01Move the more verbose TRACE() statements into TRACE2()Matt Johnston
2011-12-04- We don't need to test for NULL before free()Matt Johnston
2011-04-07Add noreturn and format attribute hints for some functions.Matt Johnston
--HG-- extra : convert_revision : 6cc8735d01f0360b918edc26be05681725c0022a
2009-09-01Rearrange getaddrstring() etcMatt Johnston
--HG-- extra : convert_revision : 8a18c4a60aeaec085923d13d98fa0f93c506ceba
2008-09-23propagate from branch 'au.asn.ucc.matt.dropbear' (head ↵Matt Johnston
4fb35083f0f46ea667e7043e7d4314aecd3df46c) to branch 'au.asn.ucc.matt.dropbear.cli-agent' (head 833d0adef6cdbf43ea75283524c665e70b0ee1ee) --HG-- branch : agent-client extra : convert_revision : 6bbab8364de17bd9ecb1dee5ffb796e48c0380d2
2008-09-22Replace calls to strtoul() with a helper m_str_to_uint()Matt Johnston
--HG-- extra : convert_revision : 1f8643c5ba7fe789c120b503c396281ac45f9730
2008-09-15- Add run_shell_command() function to run a "sh -c" command, handlingMatt Johnston
lots of the work that exechild did (and can be shared by client -J option) --HG-- extra : convert_revision : a15dfd8017af8212b3b227f18ce2539dd471f7f6
2008-09-15- Generalise spawn_command functionMatt Johnston
--HG-- extra : convert_revision : 9927a5fe084c8053c747a40515f0213141ef8139
2007-08-16propagate from branch 'au.asn.ucc.matt.dropbear' (head ↵Matt Johnston
8a7db1e2fdc5636abb338adb636babc32f465739) to branch 'au.asn.ucc.matt.dropbear.cli-agent' (head d82c25da2f7e4fb6da510d806c64344e80bb270d) --HG-- branch : agent-client extra : convert_revision : 78d02301ae8310efa2639f15da0ea62dea110e4b
2007-02-12Disable core dumpsMatt Johnston
--HG-- extra : convert_revision : ba8ebf724630561c6b9285247be7574a33853a17
2006-03-21propagate from branch 'au.asn.ucc.matt.dropbear' (head ↵Matt Johnston
0501e6f661b5415eb76f3b312d183c3adfbfb712) to branch 'au.asn.ucc.matt.dropbear.cli-agent' (head 01038174ec27245b51bd43a66c01ad930880f67b) --HG-- branch : agent-client extra : convert_revision : 12b2f59db65e7339d340e95ac67d6d9ddb193c2b
2006-03-08* Per-IP connection unauthed connection limitsMatt Johnston
* m_close() exits fatally on failure * other cleanups --HG-- extra : convert_revision : bed6155e95a293c9fce7e889d283b5958f3035dc
2005-09-05* use own assertions which should get logged properlyMatt Johnston
--HG-- extra : convert_revision : 3dc365619f0840ab5781660b1257a9f22c05d3fe