Commit Graph

490 Commits

Author SHA1 Message Date
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
Brendan Shanks 60d4a82204 GUSI: Fix prototype for fdopen() to work with CW Pro 6.1 2017-03-10 22:52:59 -08:00
Brendan Shanks 8b4aee054c Add libssh2 as subproject and link against it 2017-02-25 19:20:17 -08:00
Brendan Shanks 4c6a934f66 Add libssh2 and openssl as submodules 2017-02-25 19:19:59 -08:00
Brendan Shanks 0a2a8ea1e5 Add and use enum for window/connection protocol (telnet, rlogin, rsh, rexec, ssh) 2017-02-06 00:19:59 -08:00
Brendan Shanks e58448dc38 init.c: Require AppleEvent support, and remove gAEavail variable 2016-08-19 00:30:01 -07:00
Brendan Shanks 5b8aa1657e init.c: Remove ROM version check (Mac 128k/XL can't run System 7) 2016-08-19 00:09:16 -07:00
Brendan Shanks 034aeefc17 init.c: Remove remnants of pre-System 7 support 2016-08-18 23:52:11 -07:00
Brendan Shanks e777bb2287 gmp.mcp: Convert settings for CWPro 8 2016-08-13 15:26:45 -07:00
Brendan Shanks c7d75bd251 zlib.mcp: Convert settings for CWPro 8 2016-08-13 15:26:00 -07:00
Brendan Shanks 17eabff34a MacSSH.mcp: Link against MSL_C_PPC.lib rather than MSL_C_PPC_Classic.lib 2016-08-13 15:17:57 -07:00
Brendan Shanks 35774ba7a8 Un-AppleSingle ICGlue.o and ICGlueCFM-PPC.lib
Un-AppleSingle ICGlue.o and ICGlueCFM-PPC.lib, and strip resource fork.
Both files only have a 'vers' resource indicating they come from
Internet Config 1.4
2016-08-13 15:11:44 -07:00
Brendan Shanks cb988797d2 Merge branch 'convert_applesingle'
Convert all files needed to compile from AppleSingle to data-fork-only formats
2016-08-13 14:47:56 -07:00
Brendan Shanks 3b34f90065 Convert TelnetHelp.bh to text and strip resource fork 2016-07-02 13:52:07 -07:00
Brendan Shanks f24b4e47fc Convert AboutBox.rsrc and telnet.rsrc to Rez
Convert AboutBox.rsrc and telnet.rsrc to Rez (.r) format, remove the
'ckid' resource (Projector source control), and add to the mcp file
2016-07-01 19:17:11 -07:00
Brendan Shanks f7595bf055 Convert TelnetHeader.pch to text and strip resource fork 2016-07-01 18:39:04 -07:00
Brendan Shanks 44fd103dd0 lsh: Convert .x source files back to text 2016-07-01 18:08:37 -07:00
Brendan Shanks 417bef6826 gmp: Replace gmp.mcp with copy downloaded from CVS
For some reason the git-converted one was missing ~40 bytes and
CW won't open it.
2016-06-26 14:19:02 -07:00
Brendan Shanks ae23a81e7a zlib: Strip resource forks/AppleSingle from some documentation 2016-06-25 23:05:23 -07:00
Brendan Shanks 4fc367a676 Convert SOURCES to text and strip resource fork 2016-06-25 22:50:47 -07:00
Brendan Shanks 4197677ed6 Convert QuickStart to text and strip resource fork 2016-06-25 22:45:57 -07:00