summaryrefslogtreecommitdiffhomepage
path: root/common-session.c
AgeCommit message (Collapse)Author
2014-03-13Fix typoMatt Johnston
2014-03-13Use AUTH_TIMEOUT only before authdone != 1.Yousong Zhou
While at it, fix a few indentations and typo.
2014-02-17Read (and enqueue) packets from interactive input even whenMatt Johnston
we're waiting for a key exchange. This should hopefully fix the situation where "~." doesn't work to terminate a client session when a laptop wakes up. The client will be stuck waiting for a key exchange on a dead connection, so won't have read the escape character
2014-02-12cleanup before clearing keysMatt Johnston
2014-01-23requirenext doesn't need two valuesMatt Johnston
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-11-14use oldstyle commentsMatt Johnston
2013-05-21merge in HEADMatt Johnston
--HG-- branch : ecc
2013-04-14requirenext fixup for firstkexfollowsMatt Johnston
2013-04-07ecc kind of works, needs fixing/testingMatt Johnston
--HG-- branch : ecc
2013-04-03Just put the version string on the queue, don't use atomicioMatt Johnston
2013-04-01Run the cleanup handler also when we close due to TCP connection being closedMatt Johnston
2013-03-31send out our kexinit packet before blocking to read the SSH version stringMatt Johnston
2013-03-19Android returns NULL for pw_crypt, set it to something elseMatt Johnston
2012-05-09Return immediate success for blank passwords if allowedMatt 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-03-17- Add the signal pipe to maxfdMatt Johnston
--HG-- extra : convert_revision : 0a8dfaa3e5365a2004db2b55895e11f65b5cefcc
2009-03-01- Get rid of decryptreadbuf, just decrypt in-place with readbufMatt Johnston
- Share make_mac function for both packet creation and validation - Split recv/trans parts of key_context into their own structures --HG-- extra : convert_revision : 043bc598c76ed43625987e6937e32238f7ed6240
2009-02-26disapproval of revision 'a101cbd046507cf723e6362a49196dbd4b924042'Matt Johnston
--HG-- extra : convert_revision : e1c100e6366c5d607af08f4abdbb0f4281df4fa9
2009-02-26- Try to write out as much as we canMatt Johnston
--HG-- extra : convert_revision : a101cbd046507cf723e6362a49196dbd4b924042
2008-11-07Idle timeout patch from Farrell Aultman. Needs testing, unsure if serverMatt Johnston
code works --HG-- extra : convert_revision : ff66e05ae040561110af70114bf83f11ed528f05
2008-09-29- Add Counter Mode supportMatt Johnston
--HG-- extra : convert_revision : 5225162bdf32d70b58b6d3ae375a290326c59f3a
2008-09-15- "-J 'nc localhost 22'" kind of works, needs fixing hostkeys, ptys etc.Matt Johnston
--HG-- extra : convert_revision : 45069dd007ebf414330e0a7abf4fb7e0727049c3
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- Split main socket var into ses.sock_in/ses.sock_out in preparationMatt Johnston
for -J proxy_cmd option (and some prelim options for that) --HG-- extra : convert_revision : 47cdea9a7d66c553c6f5eec43b899821939d4e4c
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-27Prevent invalid packets being sent during key-exchange, instead queueMatt Johnston
them until afterwards. This could sometimes terminate connections after 8 hours if (for example) a new TCP forwarded connection was sent at the KEX timeout. --HG-- extra : convert_revision : 48426bd66b8f5ba50045f7ba190d1672745132e2
2007-07-24Rearrange the channel buffer sizes into three neat use-editable values inMatt Johnston
options.h. Increasing RECV_MAX_WINDOW gives big network performance increases - even with the present buffers (which haven't changed) it performs a lot better. Next step is to make the window size a cmdline option. --HG-- extra : convert_revision : 24c7cb47fb56cf5b82e3bc0859b45ea83038eab0
2007-02-09Improve behaviour when flushing out after a process has exited.Matt Johnston
--HG-- branch : channel-fix extra : convert_revision : e73ee8f7ae404a9355685c30828a0ad4524031bc
2006-12-05Tidy up behaviour when select() is interrupted. We follow normalMatt Johnston
codepaths, just with no FDs set. --HG-- branch : channel-fix extra : convert_revision : d348546b80847bc0d42a7b5208bb31a54f1fdfaf
2006-07-27Just use the normal "remote closed" handler when reading ident stingsMatt Johnston
--HG-- extra : convert_revision : 9a4e042fd565f46141e81e0c1ab90260303348fe
2006-03-04Exit with a message if the ssh protocol version is incompatibleMatt Johnston
--HG-- extra : convert_revision : 5d396842815593611f0d61762440145d1fc74d5a
2005-09-05merge of da30137eaac417f50a323f9ddd29999ec21261e0Matt Johnston
and fb45ddf51e20f0ff007eb8abc737de3c024f45cc --HG-- extra : convert_revision : 2b620b0819e95e4181aa50b645a94e3a7f4d4840
2005-09-05* use own assertions which should get logged properlyMatt Johnston
--HG-- extra : convert_revision : 3dc365619f0840ab5781660b1257a9f22c05d3fe
2005-09-05common session initialiser doesn't need to callMatt Johnston
chansessioninnitialise(), fix up header definition --HG-- extra : convert_revision : 580bc5e6e1413daf46156a181259c244ce1ab174
2005-01-02Fixed DEBUG_TRACE macro so that we don't get semicolons left about the placeMatt Johnston
--HG-- extra : convert_revision : d928bc851e32be7bd429bf7504b148c0e4bf7e2f
2004-11-03Initialise the outgoing packet queueMatt Johnston
--HG-- extra : convert_revision : d9981dbae7bf47d3bd6d1bcf4e602e7bf682082f
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
2004-08-24Nasty.Matt Johnston
--HG-- extra : convert_revision : e1229cd01c3007206d2937ea390ad4966c289a5a
2004-08-24Allow leading lines before the ident banner when connectingMatt Johnston
--HG-- extra : convert_revision : ae4b1bdb29e60927c032674800f0258fc5966807
2004-08-01added window-size change handlingMatt Johnston
--HG-- extra : convert_revision : 93a39c7b76f478035046b9c6f88af54612cce36f
2004-07-28Client mostly works up to password authMatt Johnston
Need to rework algo-choosing etc, since server is now broken. --HG-- extra : convert_revision : 458dc4eed0e885e7c91633d4781d3348213a0e19
2004-07-27Progressing client supportMatt Johnston
--HG-- extra : convert_revision : 48946be1cef774d1c33b0f78689962b18720c627
2004-07-26snapshot of stuffMatt Johnston
--HG-- extra : convert_revision : 2903853ba24669d01547710986ad531357602633
2004-07-20switching to global varsMatt Johnston
--HG-- extra : convert_revision : 800073097767c2ac153ab834cbcf0121cb765118
2004-06-23merge of abac2150ee4f4031a98016241fbd136d24fed127Matt Johnston
and ffa047425729e478a5b49b1ab0f8ec71c08a1421 --HG-- extra : convert_revision : e9b7d4eda64d70aff736f48cc8dea680b153139b
2004-06-22- Port restriction code back inMatt Johnston
- Remove bad strerror() logging --HG-- extra : convert_revision : 8ad0c90d041d667876641822a5d870e2e73059c6
2004-06-01Sorted out the first channel init issues.Matt Johnston
--HG-- extra : convert_revision : 67676f36b78efac878c11943d78a5de827498d05
2004-06-01Makefile.in contains updated files requiredMatt Johnston
--HG-- extra : convert_revision : cc8a8c49dc70e632c352853a39801089b08149be