summaryrefslogtreecommitdiffhomepage
path: root/svr-chansession.c
AgeCommit message (Collapse)Author
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
2012-03-26Fixed compilation with unset ENABLE_{SVR,CLI}_AGENTFWD.Andrey Mazo
Got rid of ENABLE_AGENTFWD macro.
2012-04-09Rename HAVE_FORK to USE_VFORKMatt Johnston
It makes it a bit more obvious why there's a test there since HAVE_FORK is the normal case.
2012-04-08check for fork() and not __uClinux__Mike Frysinger
2011-12-04- Initialise sa_mask properlyMatt Johnston
2012-02-21- MergeMatt Johnston
2012-02-21- Make sure sa_mask is setMatt Johnston
2011-12-04- Fix use-after-free if multiple command requests were sent. MoveMatt Johnston
the original_command into chansess struct since that makes more sense
2011-03-31Avoid segfault when handling childpid raceMatt Johnston
--HG-- extra : convert_revision : 8845727a7e2b096015dbb76d8f3df13c9acee7da
2011-02-28Compile fix for when both client and server agent forwarding is disabledMatt Johnston
--HG-- extra : convert_revision : 8a608f0ed5e4b491dba4bf330e560636ec7376fd
2011-02-23Improve capitalisation for all logged stringsMatt Johnston
--HG-- extra : convert_revision : 997e53cec7a9efb7413ac6e17b6be60a5597bd2e
2010-03-04don't #include "utmp.h"Matt Johnston
--HG-- extra : convert_revision : a014a978f213e6ff424e7d10794ae426375f3191
2009-09-05Move remotehost into svr_ses structure since we can't look it upMatt Johnston
once we've forked (the connection socket has been closed). Fixes inetd mode. --HG-- extra : convert_revision : 7d5d152ec84fb11a188966c1400d213c908cc511
2009-09-02- Set $SSH_CONNECTIONMatt Johnston
- Document environment variables in the manpage --HG-- extra : convert_revision : 1a93c6112f00730f5cd21a853d3bd5ca8079f725
2009-09-01Rearrange getaddrstring() etcMatt Johnston
--HG-- extra : convert_revision : 8a18c4a60aeaec085923d13d98fa0f93c506ceba
2009-08-31- set $SSH_TTY environment variableMatt Johnston
- remove extraneous (crash causing) printf() --HG-- extra : convert_revision : cf4b256bf6785be384eca32f7b229b89e58539eb
2009-08-26- set $SSH_ORIGINAL_COMMAND if a command is forced, and log itMatt Johnston
if LOG_COMMANDS is set --HG-- extra : convert_revision : d9e8aa0ecbe7607285fa4f96f0d6f9b1523719d8
2009-07-30Agent forwarding worksMatt Johnston
--HG-- branch : agent-client extra : convert_revision : eb0dae4b62e243ba37a897beb7ba81a4f637d8b3
2008-11-05- Set a default path, since bash won't export one otherwise (though it will setMatt Johnston
one, leading to mysterious problems) - Rearrange some options --HG-- extra : convert_revision : 6e81becf6e96479e10d9244186a900fab7079bf8
2008-09-29- Add Counter Mode supportMatt Johnston
--HG-- extra : convert_revision : 5225162bdf32d70b58b6d3ae375a290326c59f3a
2008-09-23propagate from branch 'au.asn.ucc.matt.dropbear.pubkey-options' (head ↵Matt Johnston
537a6ebebb46424b967ffe787f0f8560e5f447e8) to branch 'au.asn.ucc.matt.dropbear' (head 10b2f286b9886364db39dfbb4f8f46e49e345d87) --HG-- extra : convert_revision : 6fd2597077a4e2421bf45388e058d15606f6dd74
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
2008-09-15- Get rid of some ugly #definesMatt Johnston
--HG-- extra : convert_revision : 4cfa02494ded17cdb068ec66581b720a5a0fd70b
2008-09-08* Patch from Frédéric Moulins adding options to authorized_keys.Matt Johnston
Needs review. --HG-- branch : pubkey-options extra : convert_revision : 26872f944d79ddacff1070aab32115a6d726392c
2008-01-13fix up after mergeMatt Johnston
--HG-- extra : convert_revision : 6107b89c1188975d0c60f50621afe593cb6e554f
2008-01-13merge of '295b11312e327fe6c4f33512674ea4a1a9790344'Matt Johnston
and '426d7aeea950d007ed7ef9f03f9f40b138a769cb' --HG-- extra : convert_revision : d9cc9067a1a17f312a7349781f2dbbaf2890d5a6
2008-01-13Make a copy of passwd fields since getpwnam()'s retval isn't safe to keepMatt Johnston
--HG-- extra : convert_revision : 295b11312e327fe6c4f33512674ea4a1a9790344
2007-11-02Actually use ~/.hushlogin rather than ~/hushlogin to ignore motd.Matt Johnston
--HG-- extra : convert_revision : 426d7aeea950d007ed7ef9f03f9f40b138a769cb
2007-02-12Revert to default sigchld handler after forking, don't exitMatt Johnston
on error writing to the signal_pipe. --HG-- branch : channel-fix extra : convert_revision : 1d7826f7be07ee728abb42b6a9826d8ea7142fbe
2007-02-12- Fix bug in child-exit handling where the wrong pid was being matched.Matt Johnston
- Also wait for errfd to close before closing the channel --HG-- branch : channel-fix extra : convert_revision : ed68ea8963f7d1fa600f81479e7e211efc5a31bc
2007-02-09Improve behaviour when flushing out after a process has exited.Matt Johnston
--HG-- branch : channel-fix extra : convert_revision : e73ee8f7ae404a9355685c30828a0ad4524031bc
2007-02-03propagate from branch 'au.asn.ucc.matt.dropbear' (head ↵Matt Johnston
b1dd3b94e60a07a176dba2b035ac79968595990a) to branch 'au.asn.ucc.matt.dropbear.channel-fix' (head fc77c3dea87a7c0f374e738d055f0b455495cbc3) --HG-- branch : channel-fix extra : convert_revision : dec459c955c306f9ecddc3b4e04a963f3f264a0f
2007-02-03merge of '1250b8af44b62d8f4fe0f8d9fc7e7a1cc34e7e1c'Matt Johnston
and '7f8670ac3bb975f40967f3979d09d2199b7e90c8' --HG-- extra : convert_revision : 6b61c50f4cf888bea302ac8fcf5dbb573b443251
2007-02-03disapproval of revision '2186a678a5f79ef432f6593a10e3e13df2a313d5'Matt Johnston
--HG-- extra : convert_revision : 1250b8af44b62d8f4fe0f8d9fc7e7a1cc34e7e1c
2006-12-06merge of '182c2d8dbd5321ef4d1df8758936f4dc7127015f'Matt Johnston
and '31dcd7a22983ef19d6c63248e415e71d292dd0ec' --HG-- extra : convert_revision : e84f66826c7ee6ebe99ef92cc0f6c22ecf638d01
2006-11-02comment about putenv() leaking malloced variablesMatt Johnston
--HG-- extra : convert_revision : 80deca87cb2af2dde457882170b9095eeb9c2edb
2006-11-02make code clearer and more robust (from Klocwork)Matt Johnston
--HG-- extra : convert_revision : 397b243ca9ec623ded7b5b93e115dc460527acca
2006-10-09Passes most test cases nowMatt Johnston
--HG-- branch : channel-fix extra : convert_revision : 5a5f398411a7a3baa9472daa80fea0574fbd8a9a
2006-10-02Rearranged some more bits, marked some areas that need work.Matt Johnston
* send_msg_channel_data() no longer allocates a separate buffer * getchannel() handles unknown channels so callers don't have to --HG-- branch : channel-fix extra : convert_revision : 3db645581be0fbb0d2ac8d218fbd55e096cbbbe5
2006-10-01just shuffle some variables names about, a brief commentMatt Johnston
about the "bad writefd" problem --HG-- branch : channel-fix extra : convert_revision : f0b407c3d3e047ed83174e6f4ebd85a19352df5b
2006-08-07merge of '9a4e042fd565f46141e81e0c1ab90260303348fe'Matt Johnston
and 'bea3887a5875cf3ab8a1331e15e698b37b61fe37' --HG-- extra : convert_revision : d05a6820ef6a95047d07edf66390e03afa32d556
2006-08-07Add (disabled by default) LOG_COMMANDS option to log the commands executedMatt Johnston
by clients. --HG-- extra : convert_revision : bea3887a5875cf3ab8a1331e15e698b37b61fe37
2006-07-07Make flow of execution clearer for getting process exit statusMatt Johnston
--HG-- extra : convert_revision : 9a15e5205a3fd8ac4d23118f1857db9fa9d58a90
2006-06-11progress towards exiting on writefd closure rather thanMatt Johnston
on process exit - dbclient hangs with scp, so requires work. --HG-- extra : convert_revision : 2186a678a5f79ef432f6593a10e3e13df2a313d5
2006-03-27send success message for successful window change requestMatt Johnston
--HG-- extra : convert_revision : 2a6c9eb6a9c0f8a0b7b479aaf075c8a195339fcd
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-28merge of 50848a51c2f9867bc10e81826190dbc326ea16b9Matt Johnston
and 84e3597daa468534c4a34231ae8761f841a0f5ae --HG-- extra : convert_revision : 11ad05bc47809dbfe9510b78805f6ce52896d884
2006-02-28Merge of the uClinux-dist patch, should work in inetd modeMatt Johnston
--HG-- extra : convert_revision : 976bfa569f133be97d6f57c89bffa0311a142be3