Matt Johnston
ef151888fb
requirenext fixup for firstkexfollows
2013-04-14 23:16:16 +08:00
Matt Johnston
7f42096d0f
Take transmit and receive keys into use separately
2013-04-04 00:18:50 +08:00
Matt Johnston
1a16da38d5
merge kexguess branch
2013-04-03 00:49:24 +08:00
Matt Johnston
78fbed8c3e
Don't usually need to recalculate dh_e for the repeated kexdh_init packet
...
--HG--
branch : kexguess
2013-04-03 00:32:55 +08:00
Matt Johnston
90b5691183
Run the cleanup handler also when we close due to TCP connection being closed
2013-04-01 22:26:55 +08:00
Matt Johnston
e5072c6b12
merge from head roundtrip changes
...
--HG--
branch : kexguess
2013-04-01 00:13:41 +08:00
Matt Johnston
36526700a9
Don't bother waiting for a ssh-connection service reply - the server
...
will disconnect if it wasn't accepted
2013-03-31 21:38:17 +08:00
Matt Johnston
32294978a3
merge
...
--HG--
branch : kexguess
2013-03-31 00:41:15 +08:00
Matt Johnston
a0e931005b
send out our kexinit packet before blocking to read the SSH version string
2013-03-31 00:40:00 +08:00
Matt Johnston
9c7485331a
Get rid of client/server specific buf_match_algo, use single
...
function with a couple of if statements instead
--HG--
branch : kexguess
2013-03-30 23:55:05 +08:00
Matt Johnston
99d9cf500b
Add kexguess2 behaviour
...
--HG--
branch : kexguess
2013-03-29 23:29:48 +08:00
Matt Johnston
4f62da0f0d
first_kex_packet_follows working, needs tidying
...
--HG--
branch : kexguess
2013-03-29 20:44:13 +08:00
Matt Johnston
5996c3824c
Add ~. and ~^Z handling to exit/suspend dbclient
2013-03-23 23:16:06 +08:00
Matt Johnston
024d268d8c
Make hmac-sha2-256 and hmac-sha2-512 work
2013-03-21 22:55:12 +08:00
Matt Johnston
2259ce4cdf
Fix "-m none" case and ugly typo
2013-03-20 23:13:45 +08:00
Matt Johnston
e719a9ef6f
- Only request "none" cipher after auth has succeeded
...
--HG--
branch : insecure-nocrypto
2012-05-17 20:52:57 +08:00
Matt Johnston
49b79fa02d
Rename HAVE_FORK to USE_VFORK
...
It makes it a bit more obvious why there's a test there since HAVE_FORK
is the normal case.
2012-04-09 20:35:13 +08:00
Mike Frysinger
c957edbe75
check for fork() and not __uClinux__
2012-04-08 01:50:52 -04: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
e3ca0513a0
- Disable compression for non-final multihops
...
--HG--
extra : convert_revision : c507a2aacb9e0db4c0266891b8915c614e32857e
2009-09-11 14:02:04 +00:00
Matt Johnston
4dfb834f7c
Move remotehost into svr_ses structure since we can't look it up
...
once we've forked (the connection socket has been closed).
Fixes inetd mode.
--HG--
extra : convert_revision : 7d5d152ec84fb11a188966c1400d213c908cc511
2009-09-05 11:40:00 +00:00
Matt Johnston
f88bed7a30
Rearrange getaddrstring() etc
...
--HG--
extra : convert_revision : 8a18c4a60aeaec085923d13d98fa0f93c506ceba
2009-09-01 16:38:26 +00:00
Matt Johnston
bacd2a8c79
propagate from branch 'au.asn.ucc.matt.dropbear' (head bbe4e11695a7b22bd89a722600eb4a4020b6fdf3)
...
to branch 'au.asn.ucc.matt.dropbear.cli-agent' (head 276cf5e82276b6c879d246ba64739ec6868f5150)
--HG--
branch : agent-client
extra : convert_revision : d23b0c21649eb2f0b2d13dbf33c0a9faca25628a
2009-07-29 02:58:33 +00:00
Matt Johnston
a996e61a2e
- For uclinux, only cleanup on exit for the main process. This avoids
...
trashing the state when a failing child exits.
--HG--
extra : convert_revision : 5d029ce4602908c3becf0035cf2b7e62816959bc
2009-07-09 16:01:30 +00:00
Matt Johnston
c742137dc8
New standard linked list to use, rather than adhoc SignKeyList or TCPFwdList
...
--HG--
branch : agent-client
extra : convert_revision : 5465e639cc3f5ee0c6c55f0de6e7b6d5a8769da3
2009-07-06 12:59:13 +00:00
Matt Johnston
9dc9aff016
Talking to the agent works now. Can't interpret the pubkeys.
...
--HG--
branch : agent-client
extra : convert_revision : 357373f28e889108178b8627480fd24bc26dcbd7
2009-07-01 06:27:27 +00:00
Matt Johnston
c6582dbe37
Make it compile, update for changes in channel structure.
...
--HG--
branch : agent-client
extra : convert_revision : 84676a98a0848224078a716b1292744a34e9d80c
2009-07-01 04:53:17 +00:00
Matt Johnston
ff763e4005
- Get rid of decryptreadbuf, just decrypt in-place with readbuf
...
- 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-03-01 16:15:57 +00:00
Matt Johnston
adc4d0194f
Idle timeout patch from Farrell Aultman. Needs testing, unsure if server
...
code works
--HG--
extra : convert_revision : ff66e05ae040561110af70114bf83f11ed528f05
2008-11-07 14:11:06 +00:00
Matt Johnston
511f6555c9
- Add Counter Mode support
...
--HG--
extra : convert_revision : 5225162bdf32d70b58b6d3ae375a290326c59f3a
2008-09-29 13:53:31 +00:00
Matt Johnston
049fcf1ac5
Add support for zlib@openssh.com delayed compression.
...
Are still advertising 'zlib' for the server, need to allow
delayed-only as an option
--HG--
extra : convert_revision : 319df675cc3c9b35a10b7d8357c94f33fdab1a46
2008-09-29 02:23:04 +00:00
Matt Johnston
e44aa503f0
- "-J 'nc localhost 22'" kind of works, needs fixing hostkeys, ptys etc.
...
--HG--
extra : convert_revision : 45069dd007ebf414330e0a7abf4fb7e0727049c3
2008-09-15 14:40:30 +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
b619e88f54
- Split main socket var into ses.sock_in/ses.sock_out in preparation
...
for -J proxy_cmd option (and some prelim options for that)
--HG--
extra : convert_revision : 47cdea9a7d66c553c6f5eec43b899821939d4e4c
2008-09-15 12:51:50 +00:00
Matt Johnston
75ec4d6510
- Add -K keepalive flag for dropbear and dbclient
...
- Try to reduce the frequency of select() timeouts
- Add a max receive window size of 1MB
--HG--
extra : convert_revision : 9aa22036cb511cddb35fbc0e09ad05acb39b64d1
2007-08-08 15:12:06 +00:00
Matt Johnston
57ae0bfedf
Prevent invalid packets being sent during key-exchange, instead queue
...
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-27 17:13:42 +00:00
Matt Johnston
7f12251fbb
Fix for -pedantic -ansi compilation, change // to /**/, plus some signedness
...
and trailing-comma-in-array issues
--HG--
extra : convert_revision : c22be8b8f570b48e9662dac32c7b3e7148a42206
2007-02-16 14:42:08 +00:00
Matt Johnston
f5ad5c1553
Improve behaviour when flushing out after a process has exited.
...
--HG--
branch : channel-fix
extra : convert_revision : e73ee8f7ae404a9355685c30828a0ad4524031bc
2007-02-09 10:43:16 +00:00
Matt Johnston
876b7081d8
added keyboard-interactive client support
...
--HG--
extra : convert_revision : 3df738e42f4fc8b7f0f3ff9ca767386f54edb1ea
2005-09-20 17:35:21 +00:00
Matt Johnston
fb1fd7f6f4
rename PubkeyList to SignKeyList for clarity
...
--HG--
extra : convert_revision : 838e354daf3ae9a1dce710526c37fec9859ee6d1
2005-07-08 11:32:09 +00:00
Matt Johnston
074d8f0a26
* Reset the non-blocking status of stdout and stderr as well on exit
...
--HG--
branch : nonblock-stdout-stderr
extra : convert_revision : b33adcc19cf4616e1ec529da774659530dd551f4
2005-03-02 04:14:26 +00:00
Matt Johnston
9d43183704
Log the IP along with auth success/fail attempts
...
--HG--
extra : convert_revision : 25eab43bd46e931fd4afecec49c22b9311062099
2004-12-23 17:00:15 +00:00
Matt Johnston
e7677a5e8d
Rearrange preprocessor parts so that compilation with various options
...
disabled works OK.
--HG--
extra : convert_revision : cc92f744e34125062d052b757967e167f19d6db5
2004-12-22 15:37:50 +00:00
Matt Johnston
c2af67efd3
propagate of 82bb923d0154750ef716b66b498561f882891946 and f51a272341ee12268fe7028bc2f2bad66c603069 from branch 'matt.dbclient.work' to 'matt.dbclient.rez'
...
--HG--
branch : private-rez
extra : convert_revision : 440ee4177122c8a873ebf8984a90f96a9bd8a56a
2004-09-21 10:08:21 +00:00
Matt Johnston
51a74b4799
- added circular buffering for channels
...
- 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-26 13:16:40 +00:00
Matt Johnston
a69e355a06
Don't leave the stdin FD non-blocking on exit - busybox doesn't like it.
...
--HG--
extra : convert_revision : 9c2b10bf10f9d38f62490346b53268a07afa0c3a
2004-08-18 12:42:21 +00:00
Matt Johnston
e1057cd477
TCP forwarding works.
...
--HG--
extra : convert_revision : 57dfb36d0d482ad84f31506904eb67863bd303ab
2004-08-12 13:48:42 +00:00
Matt Johnston
0bbe2fa862
- client pubkey auth works
...
- rearrange the runopts code for client and server (hostkey reading is needed
by both (if the client is doing pubkey auth. otherwise....))
--HG--
extra : convert_revision : 5420858803bfff1e27dfe7fa877ba6fdd747e0c5
2004-08-06 16:18:01 +00:00
Matt Johnston
7cdad3c200
Pubkey auth is mostly there for the client. Something strange with
...
remote hostkey verification though.
--HG--
extra : convert_revision : 8635abe49e499e16d44a8ee79d474dc35257e9cc
2004-08-03 17:26:56 +00:00
Matt Johnston
9c91ea1caf
Banner printing
...
--HG--
extra : convert_revision : a38558944355bb9b4c8e9e22147c1f2d8d327775
2004-08-02 04:25:05 +00:00