Commit Graph

460 Commits

Author SHA1 Message Date
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
Brendan Shanks c5c76dda60 Update mbedtls submodule for project fixes 2017-07-20 15:32:21 -07:00
Brendan Shanks d55f97e20f Build 68K target against libssh2, and update mbedTLS/libssh2 submodules for 68k target updates 2017-07-20 00:24:22 -07:00
Brendan Shanks 4044a39ed4 Fix redundant typedef errors when compiling against CWPro6 MSL 2017-07-20 00:09:37 -07:00
Brendan Shanks ff4727df59 Update libssh2 submodule for latest upstream commits 2017-07-12 23:56:55 -07:00
Brendan Shanks bb69f4951d Use mbed TLS instead of OpenSSL (currently PPC only) 2017-07-10 23:45:42 -07:00
Brendan Shanks 089400b75e Fix 68K segments in MacSSH.mcp
Fix 68K segments in MacSSH.mcp, now builds for 68K (although without libssh/OpenSSL)
2017-07-01 15:44:28 -07:00
Brendan Shanks 6a1bec314f Update libssh2 submodule for 68K project fixes 2017-05-28 14:52:35 -07:00
Brendan Shanks e91f8f8a0a Update openssl submodule for 68K project fixes 2017-05-28 14:31:00 -07:00
Brendan Shanks 335edce6c9 Initial implementation of libssh2 in MacSSH
Initial implementation of libssh2 in MacSSH. Only works with password authentication.
2017-05-28 14:30:59 -07:00
Brendan Shanks e7dae000df Add gitignore for .DS_Store 2017-05-28 14:30:59 -07:00
Brendan Shanks 60a19bd209 Update libssh2 submodule to get gitignore changes 2017-05-28 14:30:53 -07:00