Commit Graph

471 Commits

Author SHA1 Message Date
Brendan Shanks e535c4d4f2 Remove lsh paths from CW project 2018-07-31 23:35:54 -07:00
Brendan Shanks 5881e310c6 Copy GUSITTY.cp out of lsh directory 2018-07-31 23:29:58 -07:00
Brendan Shanks 31db19f8da Remove strsignal(), only used by lsh 2018-07-31 23:04:05 -07:00
Brendan Shanks b2aed0bdf4 Move struct lshcontext into ssh2.h and remove more lsh includes 2018-07-31 23:01:43 -07:00
Brendan Shanks e133135151 Remove _window_changed from lshcontext 2018-07-30 22:26:17 -07:00
Brendan Shanks c791d602bf Remove g_error_fd and _error_fd/buffer/pos/write 2018-07-30 22:26:17 -07:00
Brendan Shanks 6ad279e3c8 Remove everything related to termios from lshcontext 2018-07-30 22:26:10 -07:00
Brendan Shanks 0c7dc7ae7b Update mbedtls submodule to my macos branch of mbedtls-2.12.0 2018-07-30 21:43:31 -07:00
Brendan Shanks 89b1621668 Remove gmp paths from CW project 2018-06-29 17:27:32 -07:00
Brendan Shanks 7323f69920 Remove gmp 2018-06-28 23:49:51 -07:00
Brendan Shanks 0d02f4e407 Remove lsh includes from ssh2.c 2018-06-28 23:49:50 -07:00
Brendan Shanks 62dc159aa9 Update mbedtls submodule to my macos branch of mbedtls-2.11.0 2018-06-28 23:33:19 -07:00
Brendan Shanks 894a25dddf Fix crash when multiple windows are open and a window is closed
Fix crash when multiple windows are open and a window is closed. libssh2_exit() was
being called, de-init'ing mbed TLS. libssh2_init/exit() are now called at application launch/quit.
2018-06-28 23:27:10 -07:00
Brendan Shanks bf9958a273 Fix crash after failed authentication 2018-06-28 23:27:10 -07:00
Brendan Shanks 152f7a8d10 Route outgoing keystrokes through ssh_protocol_write(), rather than sockets and GUSI 2018-06-28 23:27:10 -07:00
Brendan Shanks 7208d01e91 ssh2_thread: Initialize 'context' to NULL 2018-06-28 23:27:10 -07:00
Brendan Shanks 76af9acc2a Disable _convertLFs, was causing CR ('\r') sent by remote to beocme a newline ('\n') 2018-06-28 23:27:09 -07:00
Brendan Shanks 1c41674e23 Update mbedtls submodule to my macos branch of mbedtls-2.9.0 (fixed)
Update to fixed commit. I previously squash merged upstream mbedtls into
the macos branch, this was not a good idea.
2018-06-27 13:14:22 -07:00
Brendan Shanks e8566de54f Reformat AboutBox.r and telnet.r using Rez includes (#11)
By passing type declaration files to DeRez, the resource files can be output as meaningful
resource statements, rather than just hex dumps.

Also, 'Types.r' is used as the Rez prefix file in the CodeWarrior project.

Commands used to generate these files:

OS X 10.6, using system Rez and Universal Headers from CW:
DeRez AboutBox.rsrc Types.r -i /Volumes/CodeWarrior/Metrowerks\ CodeWarrior\ 8.0/Metrowerks\ CodeWarrior/MacOS\ Support/Universal/Interfaces/RIncludes/ > AboutBox.r

macOS 10.13, using Xcode Rez and Carbon headers:
DeRez -isysroot `xcrun --sdk macosx --show-sdk-path` AboutBox.rsrc Carbon.r > AboutBox.r

Both methods produce the exact same file.

Thanks to eschaton for the suggestion
2018-06-15 14:13:38 -07:00
Brendan Shanks b823b4337b Update libssh2 submodule 2018-05-31 22:47:05 -07:00
Brendan Shanks e3ceb20ccd Remove lsh_object stuff from lshcontext 2018-05-31 12:14:06 -07:00
Brendan Shanks b545990164 Remove CVSROOT (#9) 2018-05-31 11:10:38 -07:00
Brendan Shanks 2bf4e595c9 Add SSH window resize support 2018-05-30 22:36:12 -07:00
Brendan Shanks cf5a038d74 Update mbedtls submodule to my macos branch of mbedtls-2.9.0 2018-05-29 00:16:26 -07:00
Brendan Shanks 63bc285a57 Add known_hosts handling for libssh2 implementation
Add known_hosts handling for libssh2 implementation. known_hosts file is stored in
same place as before, but is now written with the app's creator code ('Ssh2').
If a known_hosts file with 'CWIE' is found, it will be renamed and a new file written
in its place (the old lsh format is not compatible).
SHA256 hostkey hashes are used, and stored in the file by the hostname as entered by the user
(I think this matches the OpenSSH client behavior). Port numbers are not added though.
2017-09-11 23:42:22 -07:00
Brendan Shanks 732738ff99 Add known_hosts error string 2017-09-10 23:27:19 -07:00
Brendan Shanks 0d20a02bcd Correctly handle channel closing (i.e. logging out of shell) by closing window 2017-09-07 23:59:32 -07:00
Brendan Shanks d56cb8d5a6 Correctly handle EOF when reading from stdin (on window close) 2017-09-05 23:57:11 -07:00
Brendan Shanks 28dacfe5d5 Modify getprefsd() to take a Pascal string as 'name' 2017-08-18 00:09:02 -07:00
Brendan Shanks d59263d9df Replace internal pstrcat() with PLstrcat() 2017-08-16 11:26:55 -07:00
Brendan Shanks 6f46df7db9 Replace internal pstrcpy() with PLstrcpy() 2017-08-16 10:54:37 -07:00
Brendan Shanks 3645371ed9 Add PLStringFuncs.c from CWPro6 to replace incomplete implementation in ssh2.c 2017-08-16 10:24:55 -07:00
Brendan Shanks 08829eb326 Modify getprefsd() to make path optional (we really only need the vRefNum and dirID) 2017-08-15 07:37:57 -07:00
Brendan Shanks 19717f0105 Move (unfinished) authentication code into separate function 2017-08-08 23:39:22 -07:00
Brendan Shanks ca060c253d Move (unfinished) hostkey checking code into separate function 2017-08-08 23:32:04 -07:00
Brendan Shanks f9e256f0f2 Remove unused variables from ssh2_thread() and unused functions 2017-08-07 00:02:17 -07:00
Brendan Shanks df9a0075a0 Add simple keyboard-interactive implementation using already entered password for single prompt 2017-08-06 23:50:28 -07:00
Brendan Shanks 745183ce05 Request 'vt100' rather than 'vanilla' terminal type 2017-08-06 23:41:54 -07:00
Brendan Shanks d81f76338c Post disconnect event and free context before returning from ssh2_thread() 2017-08-06 23:39:21 -07:00
Brendan Shanks 3b7054c2fc Use WriteCharsToTTY() directly rather than routing through stdout fd 2017-08-06 23:25:29 -07:00
Brendan Shanks 9db4db74bc Handle NULL userauth list 2017-08-05 18:17:15 -07:00
Brendan Shanks db22002b7f Add closesocket/done gotos in ssh2_thread() 2017-08-05 18:08:05 -07:00
Brendan Shanks cf3df904a9 Use WindRec portNum instead of hardcoding 22 2017-08-05 18:01:52 -07:00
Brendan Shanks d301ab2c04 Remove fd/socket tracking needed to close files/sockets after lsh would exit 2017-08-03 23:53:15 -07:00
Brendan Shanks 67e2c69620 Remove lsh MemPool (used to ensure allocations were free'd when lsh exited) 2017-08-03 00:02:25 -07:00
Brendan Shanks 51817eedf7 Remove lsh from CW project and start commenting out lsh integration 2017-08-02 23:40:51 -07:00
Brendan Shanks 7de6f19e69 Remove SSH key generation/export functionality and hide buttons 2017-07-27 00:10:34 -07:00
Brendan Shanks 09d2d96a2e Generate SHA256 hash of host key and prompt on every connect (for now) 2017-07-24 23:12:13 -07:00
Brendan Shanks 003159ac68 Add base64 to CodeWarrior project 2017-07-24 20:57:12 -07:00
Brendan Shanks 29183ac171 Add public-domain base64 code from github.com/OrangeTide/libcgi 2017-07-24 20:33:57 -07:00