Commit Graph

107 Commits

Author SHA1 Message Date
Russ Magee 205e68dcf8 Changed vis diagrams to PNG
Signed-off-by: Russ Magee <rmagee@gmail.com>
2019-01-12 13:16:49 -08:00
Russ Magee d5f083c8fb Added vis diagrams
Signed-off-by: Russ Magee <rmagee@gmail.com>
2019-01-12 12:51:25 -08:00
Russ Magee e07c5ee996 Updated vis targets to match go-callvis updated cmdline options
Signed-off-by: Russ Magee <rmagee@gmail.com>
2019-01-09 23:35:34 -08:00
Russ Magee ea01123b87 GoReporter recommended cleanup 2018-12-12 00:34:23 -08:00
Russ Magee 3dab963bc9 Commented on client custom io.Copy and copyBuffer
Signed-off-by: Russ Magee <rmagee@gmail.com>
2018-12-08 21:53:35 -08:00
Russ Magee a0e90c14ba Praise Bob!
Signed-off-by: Russ Magee <rmagee@gmail.com>
2018-12-08 21:44:06 -08:00
Russ Magee 9641fd3fff Console esc seqs no longer affect in-band input
Signed-off-by: Russ Magee <rmagee@gmail.com>
2018-12-08 21:37:26 -08:00
Russ Magee 55fdffbd9e Moved herradurakex to its own package
Signed-off-by: Russ Magee <rmagee@gmail.com>
2018-12-06 17:20:43 -08:00
Russ Magee 20dcfd7bb2 Regen of graphviz diagrams
Signed-off-by: Russ Magee <rmagee@gmail.com>
2018-11-29 18:38:15 -08:00
Russ Magee 5ad08fd3b3 tty state restored prior to printing nonzero exit status for interactive shell sessions
Signed-off-by: Russ Magee <rmagee@gmail.com>
2018-11-29 18:28:30 -08:00
Russ Magee 291bacf2df Fix for issue #11 2018-11-29 18:06:03 -08:00
Russ Magee 103d76989e Fixed mis-named goroutine in doShellMode
Signed-off-by: Russ Magee <rmagee@gmail.com>
2018-11-25 21:08:37 -08:00
Russ Magee 85619f3cc9 Fixed graphviz tag for stdinToPtyWorker goroutine
Signed-off-by: Russ Magee <rmagee@gmail.com>
2018-11-25 18:55:07 -08:00
Russ Magee 556a9fcfd0 Merge branch 'metalint'
Signed-off-by: Russ Magee <rmagee@gmail.com>
2018-11-25 18:47:33 -08:00
Russ Magee fc05a9a4a3 Added fixup-gv.sh and Makefile rules to generate annotated goroutines in graphviz output.
Signed-off-by: Russ Magee <rmagee@gmail.com>
2018-11-25 18:43:53 -08:00
Russ Magee 6fbbcdadb6 Gometalinter cleanup/audit of hkexsh, hkexshd, hkexpasswd
Signed-off-by: Russ Magee <rmagee@gmail.com>
2018-11-25 10:24:10 -08:00
Russ Magee 2da0d8b198 Tweaks to sed expr in code comments 2018-11-24 19:40:45 -08:00
Russ Magee 5eb80f4226 Further graphviz work; named hkexsh goroutines 2018-11-22 23:43:03 -08:00
Russ Magee 738bcf3ba9 Begin experiments with graphviz 2018-11-22 23:09:22 -08:00
Russ Magee fa398159e3 Merge branch 'metalint' 2018-11-22 19:02:41 -08:00
Russ Magee 6c6d0cbbb6 Added PNG go-callvis diagrams
Signed-off-by: Russ Magee <rmagee@gmail.com>
2018-11-22 18:13:11 -08:00
Russ Magee 0b668630e7 hkexsh gometalinter cleanup 2018-11-22 16:49:09 -08:00
Russ Magee c6cbd8d681 Replaced go-code-visualizer with go-callvis
Signed-off-by: Russ Magee <rmagee@gmail.com>
2018-11-21 17:06:09 -08:00
Russ Magee 5fb227b9f8 -Removed WriteDeadline in hkexnet.Close()
-hkexsh: fixed (non-)error handling for file copies

Signed-off-by: Russ Magee <rmagee@gmail.com>
2018-11-20 18:50:09 -08:00
Russ Magee d28a4af924 Added example openrc init script
Signed-off-by: Russ Magee <rmagee@gmail.com>
2018-11-13 23:59:34 -08:00
Russ Magee 2cb254ef69 Basic -T tun opt parsing
Signed-off-by: Russ Magee <rmagee@gmail.com>
2018-11-12 00:44:16 -08:00
Russ Magee a9ebb102bd Stubbed tun option parsing
Signed-off-by: Russ Magee <rmagee@gmail.com>
2018-11-11 23:26:22 -08:00
Russ Magee b0f614f82e Tunnel keepalives from client implemented. If client dies/exits unexpectedly the server
tunnel will disconnect from rport in a timely manner.

Signed-off-by: Russ Magee <rmagee@gmail.com>
2018-11-11 22:46:39 -08:00
Russ Magee 0943797300 Minor cleanup prior to tackling os.Exit() in doShellMode() and server-side tun hangs 2018-11-11 21:05:25 -08:00
Russ Magee 6f1fcbbf7a Corrected tun chan Ctl cmd comments 2018-11-11 20:25:34 -08:00
Russ Magee 2a9e6af2ae Tunnels w/reconnect refinements:
-200ms deadlink timeouts
-Fixed TunConnRefused client hangup handling

Signed-off-by: Russ Magee <rmagee@gmail.com>
2018-11-11 20:12:29 -08:00
Russ Magee ba3cda95e8 Tunnels with reconnect working.
TODO: interactive client exit must collapse all open tunnels prior to exit.

Signed-off-by: Russ Magee <rmagee@gmail.com>
2018-11-11 18:56:08 -08:00
Russ Magee 3b35751e2e WIP tunnel states, re-dial when not required needs debugging. 2018-11-07 19:35:32 -08:00
Russ Magee 492c7290b0 Much improved tunnel state management: server-side mostly working, client-side re-Accept() -> svr re-Dial() still required 2018-11-01 22:14:44 -07:00
Russ Magee a425afe9b6 Tunnels working again to basic level w/o re-connect or re-dial 2018-11-01 18:52:01 -07:00
Russ Magee 081d88b9ad tunnel setup stubs moved into Conn Read()/Write() handling 2018-10-31 20:11:00 -07:00
Russ Magee fcbdb77c79 Cleaned up error handling in hkexnet.Conn.Read() a bit 2018-10-30 21:07:42 -07:00
Russ Magee 632f24354b Tunnel rough work-in-progress; data sent (wrong length) and CSOTunClose handling needs work, but it's a start... 2018-10-28 19:17:47 -07:00
Russ Magee 1e6da733a2 Work on setup for tunnels
Signed-off-by: Russ Magee <rmagee@gmail.com>
2018-10-27 01:51:40 -07:00
Russ Magee 2f83d488d6 Pushed logging into sub-package to preserve windows client build
Signed-off-by: Russ Magee <rmagee@gmail.com>
2018-10-26 16:05:01 -07:00
Russ Magee 752dbf6080 logging now uses syslog 2018-10-25 22:14:18 -07:00
Russ Magee 4cb535fcc9 Added support for cryptMTv1
Signed-off-by: Russ Magee <rmagee@gmail.com>
2018-10-24 00:16:34 -07:00
Russ Magee 798661a0cf kex-spurious-failures branch:
-Modified KyberDialSetup()/KyberAcceptSetup() to use []byte for reading/writing
ciphertext to avoid errors caused by leading zero bytes (big.Int can't explicitly
represent these)

-TODO: Consider the same for HerraduraKEx HKexDialSetup()/HKexAcceptSetup()
2018-10-18 20:44:23 -07:00
Russ Magee 5d9a110d57 Added more (explicit) sizes for all KEX algs 2018-10-12 16:16:49 -07:00
Russ Magee 231ede1734 KYBER768 KEM works. :O 2018-10-10 21:12:38 -07:00
Russ Magee 4c286ae6c1 Set up to handle Kyber768 KEM 2018-10-08 21:31:11 -07:00
Russ Magee cd9f7914e0 Dial() and Accept() again conform to net.Dial(), net.Accept() return signature 2018-09-29 12:15:53 -07:00
Russ Magee b810fa7f4a tightened up some const types 2018-09-17 23:07:04 -07:00
Russ Magee 8b0b833d6e Split hkexsh and hkexnet consts into separate files 2018-09-17 17:27:13 -07:00
Russ Magee 84e29bdf51 Fixes to authtoken/password indication at login 2018-09-16 22:22:14 -07:00