Commit Graph

2022 Commits (master)

Author SHA1 Message Date
Daniel Pouzzner 958cfacaa7
Merge pull request #738 from ejohnstown/rm-inline
Remove Inline
2024-09-12 16:56:10 -05:00
John Safranek 49eedd26c3 Remove Inline
1. The function HashForId() was declared as INLINE. Remove it. The
   function is getting exported as WOLFSSH_LOCAL which conflicts with
   the inline.
2024-09-12 14:38:25 -07:00
John Safranek ceb461897b
Merge pull request #736 from wolfSSL/rm_oqs_kyber
Purge OQS from wolfSSH. Use kyber from wolfssl.
2024-08-20 15:19:37 -07:00
Anthony Hu 20287f5568 Purge OQS from wolfSSH. Use kyber from wolfssl. 2024-08-20 14:57:39 -04:00
JacobBarthelmeh d57f53b852
Merge pull request #735 from ejohnstown/fixup
Fixup
2024-08-16 16:20:45 -06:00
John Safranek af66f4a9c2 Fixup
1. Initialize a local variable DoKexInit() as a compiler complains it is
   getting used with a garbage value. (Not true, but hushing the
   compiler.)
2. In GetInputText() add braces around the error check if clauses, and
   give the version error its own check instead of a ternary return.
3. In GetInputData(), if the recv return was anything else, return a
   general socket error.
2024-08-16 15:01:04 -07:00
JacobBarthelmeh 456fac474d
Merge pull request #734 from ejohnstown/readme-update
Update Readme
2024-08-12 10:02:42 -06:00
John Safranek e1c9590648 Update Readme
1. Fixed a couple spots where the wolfSSL name was used instead of
   wolfSSH.
2024-08-12 08:55:52 -07:00
John Safranek f51889430f
Merge pull request #732 from JacobBarthelmeh/scp_example
continue to cleanup on fail case and use WLOG for debug messages
2024-08-08 18:11:06 -07:00
John Safranek 468a205cb7
Merge pull request #719 from JacobBarthelmeh/cat
cat of large file with ssh shell
2024-08-08 18:06:21 -07:00
JacobBarthelmeh 2fbe01092d account for partial sends 2024-08-05 14:48:51 -06:00
JacobBarthelmeh 15f4dc9d0f adjustments to test case 2024-08-05 13:31:47 -06:00
JacobBarthelmeh 781aa27582 touch up after rebase 2024-08-05 13:31:47 -06:00
JacobBarthelmeh 46832e46b4 add test case 2024-08-05 13:31:47 -06:00
JacobBarthelmeh 2722cb9da8 handle send retry when SSH window is full 2024-08-05 13:31:47 -06:00
JacobBarthelmeh fdecd765b9 continue to cleanup on fail case and use WLOG for debug messages 2024-08-05 13:23:04 -06:00
David Garske 40aabc253b
Merge pull request #729 from ejohnstown/new-kdf
Use wolfCrypt SSHv2 KDF
2024-07-30 09:42:06 -07:00
John Safranek 6e151e45c5 Use wolfCrypt SSHv2 KDF
1. Switching to use the new SSH-KDF function in wolfCrypt when the
   correct version of wolfSSL (v5.0.0 at a minimum) is used, when
   certified version of wolfCrypt is used or Kyber is disabled.
2. Add WOLFSSL_WOLFSSH to the wolfSSL user_settings files for the Zephyr
   testing.
2024-07-30 08:43:05 -07:00
JacobBarthelmeh 06dc40df87
Merge pull request #731 from ejohnstown/dh-group14-sha256
DH Group 14 with SHA256
2024-07-26 17:30:15 -06:00
John Safranek 9302c73713 DH Group 14 with SHA256
1. Add the strings, switch cases, and guards to support DH Group 14 with
   SHA256.
2. Move a couple constants around.
3. Moved diffie-hellman-group14-sha256 to the head of the list.
2024-07-26 09:13:36 -07:00
John Safranek 4af1312802
Merge pull request #730 from gojimmypi/pr-release-timelib-fix
Adjust Espressif wolfssl_echoserver example timehelper
2024-07-23 09:05:24 -07:00
gojimmypi fa23bf58df
Adjust Espressif wolfssl_echoserver example timehelper 2024-07-22 20:57:03 -07:00
Daniel Pouzzner bbba8aef04
Merge pull request #727 from ejohnstown/release-v1.4.18-2
Release v1.4.18: Release Fixes
2024-07-19 18:25:16 -05:00
John Safranek ee42ef651f Release v1.4.18: Release Fixes
1. Need to use the old RSA key read function if using FIPS wolfCrypt.
2. Update release date.
2024-07-19 15:41:51 -07:00
JacobBarthelmeh 4833238318
Merge pull request #726 from ejohnstown/release-v1.4.18
Prepare Release v1.4.18
2024-07-19 15:58:22 -06:00
John Safranek a4f860d071 Release v1.4.18: Release Fixes
1. Update scp.test to delete the empty test file.
2. In wolfSSHd, when coverting an IP address to a printable
   representation, the destination needs to be able to handle IPv6
   addresses potentially.
2024-07-19 14:38:07 -07:00
John Safranek 1a6225671b Release v1.4.18: Release Testing Fixes (Windows)
1. For the ASCII and Wide versions of types and functions, make sure
   the wolfSSHd is being consistent using them.
2. In SFTP, use WSOCKETCLOSE to close the socket. Use the correct type
   for the socket.
3. Add parens around part of a ternary operator check to clear up some
   ambiguous order of operations.
4. Add a variable initializer for a COORD structure.
5. Add parameter checks to the Base16_Decode function.
6. Fix a double-freed handle.
7. Clean up a bunch of build warnings.
2024-07-19 12:03:32 -07:00
John Safranek dc2065719f Release v1.4.18: Release Testing Fixes
1. Fix echoserver's load_file function. Could potentially dereference
   null if a file size is passed in, but using a null buf to get the
   file's size only.
2024-07-18 14:44:03 -07:00
John Safranek e9ec4fd9fd Release v1.4.18
The usual updates for the release.
2024-07-18 14:43:57 -07:00
John Safranek c821a8c609 Revert "Configure Updates"
This reverts commit 63a3068dc7.
2024-07-18 11:44:29 -07:00
JacobBarthelmeh 995a047dad
Merge pull request #724 from ejohnstown/term-update
Configure Update
2024-07-17 17:02:52 -06:00
JacobBarthelmeh ba2a9b952f
Merge pull request #725 from ejohnstown/scp-nonblock
Nonblocking SCP
2024-07-17 17:02:27 -06:00
John Safranek a15e24cc37 Configure Updates
1. Update the configure.ac for an incorrect TERM flag. Was mixing
   TERM and PTERM, but most things use TERM, switch to TERM.
2024-07-17 15:06:52 -07:00
John Safranek 6a8f27c135 Nonblocking SCP
1. Splitting the top level SCP functions for either from or to, and
   incorporating the sub-functions in appropriately.
2. Put making the scp command line to send to the peer into its own
   function.
2024-07-17 15:03:18 -07:00
John Safranek e7ad7dd922
Merge pull request #722 from JacobBarthelmeh/sshd-windows
Fixes for SSHD Windows virtual terminal sequences
2024-07-17 14:06:37 -07:00
JacobBarthelmeh 5a06817e1d
Merge pull request #723 from ejohnstown/fix-match
Fix MAC Algo Match
2024-07-17 14:25:51 -06:00
John Safranek 0608db49e1 Fix MAC Algo Match
1. Rearrange the matching of the MAC Algos when decoding the KEX Init
   message. It should only dereference the handshake info to check if it
   is using an AEAD cipher if ret is WS_SUCCESS. (If the handshake info
   isn't present, there will be an error present.) This prevents a
   possible NULL dereference.
2024-07-16 19:33:17 -07:00
Daniel Pouzzner 01c1aadfba
Merge pull request #720 from ejohnstown/sshd-banner
SSHD Banners
2024-07-16 15:43:17 -05:00
Daniel Pouzzner e3bed88ead
Merge pull request #718 from ejohnstown/wolfsshd-closure
wolfSSHd Connection Closure
2024-07-16 15:41:50 -05:00
Daniel Pouzzner 9054adf534
Merge pull request #717 from ejohnstown/scp-alloc
Reduce SCP Allocations
2024-07-16 15:41:02 -05:00
Daniel Pouzzner 24884dcb7a
Merge pull request #713 from ejohnstown/channel-callbacks
Channel Callbacks
2024-07-16 15:40:32 -05:00
John Safranek 6c69c12bf7 wolfSSHd Connection Closure
1. Initialize all the fds to -1.
2. Add flags for peerConnected and stdoutEmpty.
3. Remove the idle counter.
4. When the socket would block on write, set a flag to check the socket for
   writing later to call the worker which will send pending data.
5. When reading the pipes, a 0 returns means the pipe is closed. Deal
   with that.
6. If the ssh write fails, interrupt the subordinate process.
7. When waiting for the peer to close its channel and shutdown, sleep
   for 100ms, rather than 1us. It takes a little while to tear down.
8. Shutdown the peer socket. Spin on receiving the peer socket until it
   closes or has an error.
9. Fixed a few function wrappers; was using Xname instead of Wname.
2024-07-16 10:50:12 -07:00
JacobBarthelmeh 94ebc62b18
Merge pull request #721 from lealem47/zd18257
Don't exit wolfSSHd daemon on recoverable fcntl failure
2024-07-16 09:27:05 -06:00
Lealem Amedie 5ea74bc22d Free resources 2024-07-15 17:19:20 -06:00
JacobBarthelmeh 89a24568a6 remove extra debug print outs 2024-07-12 01:02:33 -06:00
JacobBarthelmeh 25a0414378 handling virtual terminal sequences with exec command 2024-07-12 00:43:13 -06:00
Lealem Amedie b0cf4cfa5d Don't exit wolfSSHd daemon on recoverable fcntl failure 2024-07-11 16:56:39 -06:00
Lealem Amedie ff3e0177f7 Don't set banner unless specified in config 2024-07-10 15:06:51 -07:00
John Safranek 0f9e87357b
Merge pull request #715 from JacobBarthelmeh/examples
case of non-console ouptut handle
2024-07-10 11:20:32 -07:00
John Safranek bfdcd73eb5
Merge pull request #716 from embhorn/forum7734
Fix testsuite with singlethreaded
2024-07-10 10:05:49 -07:00