Commit Graph

384 Commits

Author SHA1 Message Date
Brendan Shanks 336f62e29b Hide 'Encryption', 'Authentication', 'Compression' menus in Edit Favorites. 2021-01-16 23:07:30 -08:00
Brendan Shanks fd1000cfc8 Add "Failed to retrieve authentication methods" dialog 2019-08-26 22:47:28 -07:00
Brendan Shanks 8b4b98515a Fix "password" authentication with retries and error dialogs 2019-08-05 00:10:48 -07:00
Brendan Shanks 3c2acd81c8 SSH2ErrorDialog() const argument 2019-08-05 00:04:32 -07:00
Brendan Shanks 0782520773 Remove getenv() 2019-08-04 23:39:24 -07:00
Brendan Shanks 19f2abd166 Add more NULL checking/error handling 2018-11-04 22:16:39 -08:00
Brendan Shanks e40173c290 Put more debug messages behind the 'trace' checkbox 2018-11-04 22:11:10 -08:00
Brendan Shanks 55aa3f0f08 Only enable libssh2 trace when 'trace' checkbox is checked 2018-10-09 23:02:07 -07:00
Brendan Shanks 1bc577b987 Bump version number to 3.0b1, change copyright string to '(c) 2016-2018 Brendan Shanks' 2018-09-02 23:40:10 -07:00
Brendan Shanks 92d848d916 AboutBox: Remove lsh credits, add libssh2/mbed TLS copyrights 2018-09-02 23:35:35 -07:00
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 89b1621668 Remove gmp paths from CW project 2018-06-29 17:27:32 -07:00
Brendan Shanks 0d02f4e407 Remove lsh includes from ssh2.c 2018-06-28 23:49:50 -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 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 e3ceb20ccd Remove lsh_object stuff from lshcontext 2018-05-31 12:14:06 -07:00
Brendan Shanks 2bf4e595c9 Add SSH window resize support 2018-05-30 22:36:12 -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