summaryrefslogtreecommitdiffhomepage
path: root/svr-main.c
AgeCommit message (Collapse)Author
2018-02-17more linting (#55)François Perrad
* dropbear_exit: remove priority parameter confusion with dropbear_log() * const parameter
2018-02-16mergeMatt Johnston
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.
2018-02-15disallow inetd -vMatt Johnston
2018-02-14make signal flags volatile, simplify handlingMatt Johnston
2016-05-04Convert #ifdef to #if, other build changesMatt Johnston
2016-03-16fix empty C prototypesFrancois Perrad
2016-03-16add static in function definitionFrancois Perrad
like in function declaration
2016-03-16Suspicious use of ;Francois Perrad
2016-03-16rename loop variableFrancois Perrad
2 nested loops with the same variable 'i', line 219 and line 309
2016-01-01more hard tabFrancois Perrad
2015-12-15Allow setting syslog identifier via startsyslog().Konstantin Tokarev
2015-12-15Moved usingsyslog from svr_runopts to runopts.Konstantin Tokarev
2015-05-29separate client/server fastopen optionsMatt Johnston
2015-02-15tcp fastopen for the serverMatt Johnston
--HG-- branch : fastopen
2015-01-28Initialise sa_maskMatt Johnston
2014-08-19Make keepalive handling more robust, this should now match what OpenSSH doesMatt Johnston
2014-02-15- Save errno in signal handlersMatt Johnston
- Use _exit() in segv handler
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-11-14rename random.h to dbrandom.h since some OSes have a system random.hMatt Johnston
--HG-- rename : random.c => dbrandom.c rename : random.h => dbrandom.h
2013-05-03ecdsa is workingMatt Johnston
--HG-- branch : ecc
2013-03-23Fix a few compile warningsMatt Johnston
2012-06-29Improve RNG seeding.Matt Johnston
Try to read from /dev/urandom multiple times, take input from extra sources, and use /dev/random when generating private keys
2011-12-04- Initialise sa_mask properlyMatt Johnston
2012-02-21- Make sure sa_mask is setMatt Johnston
2011-02-23Improve capitalisation for all logged stringsMatt Johnston
--HG-- extra : convert_revision : 997e53cec7a9efb7413ac6e17b6be60a5597bd2e
2009-09-01Rearrange getaddrstring() etcMatt Johnston
--HG-- extra : convert_revision : 8a18c4a60aeaec085923d13d98fa0f93c506ceba
2009-06-08use memset() rather than bzero()Matt Johnston
--HG-- extra : convert_revision : d44b31a46d0fdfcc92bf4f16e7c49fd49eb40aa1
2008-09-12- Rework pubkey options to be more careful about buffer lengths. Needs review.Matt Johnston
--HG-- branch : pubkey-options extra : convert_revision : 537a6ebebb46424b967ffe787f0f8560e5f447e8
2007-08-08- Add -K keepalive flag for dropbear and dbclientMatt Johnston
- Try to reduce the frequency of select() timeouts - Add a max receive window size of 1MB --HG-- extra : convert_revision : 9aa22036cb511cddb35fbc0e09ad05acb39b64d1
2007-07-19Patch from Nicolai Ehemann to try binding before going to the background,Matt Johnston
so that if it exits early (because something's already listening etc) then it will return an exitcode of 1. --HG-- extra : convert_revision : 4e68851f89a773bc502b30dec2b8f6edaa36d473
2007-07-19"backgrounding" is more user-understandable than "forking"Matt Johnston
--HG-- extra : convert_revision : 53a3f244adf908dac18f2fa7e1d94309497da790
2007-02-22merge of 'a9b0496634cdd25647b65e585cc3240f3fa699ee'Matt Johnston
and 'c22be8b8f570b48e9662dac32c7b3e7148a42206' --HG-- extra : convert_revision : 066f6aef2791d54b9ec6a0c3033fd28fa946251f
2007-02-22Add -p [address:]port option for binding to addresses, patch fromMatt Johnston
Max-Gerd Retzlaff --HG-- extra : convert_revision : a9b0496634cdd25647b65e585cc3240f3fa699ee
2007-02-16Fix for -pedantic -ansi compilation, change // to /**/, plus some signednessMatt Johnston
and trailing-comma-in-array issues --HG-- extra : convert_revision : c22be8b8f570b48e9662dac32c7b3e7148a42206
2007-02-12Disable core dumpsMatt Johnston
--HG-- extra : convert_revision : ba8ebf724630561c6b9285247be7574a33853a17
2007-01-04Load hostkeys before daemon(), since daemon()'s chdir("/") will prevent usMatt Johnston
finding keys in $PWD. --HG-- extra : convert_revision : 02c413252c90e9de8e03d91e9939dde3029f5c0a
2006-06-07Add -P pidfile patch from Swen SchilligMatt Johnston
--HG-- extra : convert_revision : 2dd1bf9162d8fc4c14b33c5b3c6ca3cbe2ecd587
2006-03-22minor cleanups for some warningsMatt Johnston
--HG-- extra : convert_revision : 6ace12c71fc2773210f2f3d374c96622ca54fe48
2006-03-090.48 progressMatt Johnston
--HG-- extra : convert_revision : 23abf9a27f91b8191c12b24a8b2557e5e8750c21
2006-03-08merge of 4c883eb469d2d251ee8abddbc11ae4005db6da17Matt Johnston
and bed6155e95a293c9fce7e889d283b5958f3035dc --HG-- extra : convert_revision : fff0894a0399405a9410ea1c6d118f342cf2aa64
2006-03-08* Per-IP connection unauthed connection limitsMatt Johnston
* m_close() exits fatally on failure * other cleanups --HG-- extra : convert_revision : bed6155e95a293c9fce7e889d283b5958f3035dc
2006-02-11Only read /dev/random once when the program startsMatt Johnston
rather than for every connection, to "conserve entropy". --HG-- extra : convert_revision : 21df240b71c0af8454725dec9abb428dd4bb97a2
2005-12-04 * add -g (dbclient) and -a (dropbear) options for allowing non-localMatt Johnston
hosts to connect to forwarded ports. Rearranged various some of the tcp listening code. * changed to /* */ style brackets in svr-authpam.c --HG-- extra : convert_revision : c1e04e648867db464fe9818c4910e4320cd50c32
2005-09-05* use own assertions which should get logged properlyMatt Johnston
--HG-- extra : convert_revision : 3dc365619f0840ab5781660b1257a9f22c05d3fe
2005-01-02Fixed DEBUG_TRACE macro so that we don't get semicolons left about the placeMatt Johnston
--HG-- extra : convert_revision : d928bc851e32be7bd429bf7504b148c0e4bf7e2f
2004-12-23Log the IP along with auth success/fail attemptsMatt Johnston
--HG-- extra : convert_revision : 25eab43bd46e931fd4afecec49c22b9311062099
2004-12-22Rearrange preprocessor parts so that compilation with various optionsMatt Johnston
disabled works OK. --HG-- extra : convert_revision : cc92f744e34125062d052b757967e167f19d6db5
2004-08-30Load the hostkeys for inetd too - oopsMatt Johnston
--HG-- extra : convert_revision : 815f75b9a450396fd5a9cca286803a91f0edc1a9
2004-08-26- added circular buffering for channelsMatt Johnston
- added stderr support for the client - cleaned up a bunch of "unused" warnings, duplicated header definitions - added exit-status support for the client --HG-- extra : convert_revision : 5bdf806d8b440c87f7235414662f4189195618f4