Commit Graph

2109 Commits (4f9e6b57329cffe7b2f859c70c8194afd63b45ee)

Author SHA1 Message Date
JacobBarthelmeh 4f9e6b5732 remove some trailing white space and initialize get current drive buffer 2025-03-18 15:13:48 +07:00
JacobBarthelmeh 7067b200b8 clear stat struct before use and treat mount as directory 2025-03-18 13:01:04 +07:00
JacobBarthelmeh 604d1e8422 ls command working 2025-03-14 09:33:42 +07:00
JacobBarthelmeh 3a4c75f651 compiling with port changes, needs work for runtime use 2025-03-02 16:42:04 -07:00
JacobBarthelmeh c4acd86df5 progress on microchip fs port 2025-03-02 15:17:16 -07:00
JacobBarthelmeh f8598217b6 adding inital function mapping 2025-02-28 16:18:00 -07:00
Jacob Barthelmeh 41cef3309f fix numbering in README steps 2025-02-28 16:17:54 -07:00
Jacob Barthelmeh 48fa1e019e add example code for MPLABX use 2025-02-28 16:17:51 -07:00
devin-ai-integration[bot] 76e8b9f4ea
Update SFTP status callback to output once per second (#779)
* Update myStatusCb to output once per second

Modified the myStatusCb function in sftpclient.c to only output status
updates once per second by tracking the last output time and comparing
it with the current time. This reduces the frequency of status updates
while maintaining all existing functionality.

Co-Authored-By: andrew@wolfssl.com <andrew@wolfssl.com>

* Reset status output timer when starting new file transfer

When starting a new file transfer, reset the lastOutputTime to ensure
the first status update for the new file is shown immediately.

Co-Authored-By: andrew@wolfssl.com <andrew@wolfssl.com>

* Fix Zephyr build by guarding lastOutputTime with WOLFSSH_NO_TIMESTAMP

The lastOutputTime variable is only used when timestamps are enabled,
so it should be guarded by the same macro to avoid unused variable
warnings in builds where timestamps are disabled.

Co-Authored-By: andrew@wolfssl.com <andrew@wolfssl.com>

* Move elapsedTime declaration to function scope

Per wolfSSL coding standards, declare all variables at function scope.
Added comment explaining that modern compilers optimize variable access
regardless of declaration placement.

Co-Authored-By: andrew@wolfssl.com <andrew@wolfssl.com>

* Fix timeout check to use elapsed time instead of current time

Co-Authored-By: andrew@wolfssl.com <andrew@wolfssl.com>

* Use elapsed time in timeout error message for consistency

Co-Authored-By: andrew@wolfssl.com <andrew@wolfssl.com>

* Move elapsedTime inside WOLFSSH_NO_TIMESTAMP guard

Co-Authored-By: andrew@wolfssl.com <andrew@wolfssl.com>

* Move currentTime outside WOLFSSH_NO_TIMESTAMP guard

Co-Authored-By: andrew@wolfssl.com <andrew@wolfssl.com>

---------

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: andrew@wolfssl.com <andrew@wolfssl.com>
2025-02-26 16:54:21 -07:00
JacobBarthelmeh a768c0f640
Merge pull request #785 from wolfSSL/devin/1740508226-sftp-state-var
Fix SFTP data truncation by moving sentSzSave to state structure
2025-02-26 16:41:31 -07:00
Devin AI 502b5a60f5 Fix SFTP data truncation issue by moving sentSzSave to state structure
Co-Authored-By: andrew@wolfssl.com <andrew@wolfssl.com>
2025-02-25 19:00:32 +00:00
David Garske da85e49a20
Merge pull request #764 from JacobBarthelmeh/release
prepare for release 1.4.20
2025-02-20 10:57:45 -08:00
JacobBarthelmeh b62b19c7cd prepare for release 1.4.20 2025-02-19 14:18:29 -07:00
David Garske 055d024b2e
Merge pull request #776 from JacobBarthelmeh/wolfsshd
fix for FD_SET call on pipes and handling of channel EOF
2025-02-19 12:35:27 -08:00
JacobBarthelmeh 3859213936 use childFd when not handling a forced command 2025-02-19 12:00:38 -07:00
JacobBarthelmeh 60cd4bca73 redirect stdin with forced command 2025-02-19 10:32:08 -07:00
JacobBarthelmeh b8b72b6dd8
Merge pull request #783 from LinuxJedi/scp-eagain
Fix SCP server side
2025-02-19 10:02:36 -07:00
Andrew Hutchings a9c7ebc36d Fix SCP server side
SCP on the server side would get an EAGAIN around the 128KB mark, which
would trigger an error. That error in-turn would cause two attempts to
close the file, which would segfault.

Also fix inverted error return status on scpclient.
2025-02-19 11:13:42 +00:00
Daniel Pouzzner 7e9f1ae0b3
Merge pull request #777 from JacobBarthelmeh/testing
sanity check and free temporary strings on failure
2025-02-18 18:09:25 -06:00
JacobBarthelmeh bbe3bac2d5 add regression test and use a better macro name 2025-02-18 10:50:05 -07:00
JacobBarthelmeh 97c3faff8f initialize array and free dynamic strings on failure 2025-02-17 17:52:59 -07:00
JacobBarthelmeh 179df42adb add sanity check before write 2025-02-17 17:40:05 -07:00
JacobBarthelmeh ab3622e672 fix for FD_SET call on pipes and handling of channel EOF 2025-02-17 10:07:39 -07:00
JacobBarthelmeh 697f54a7e5
Merge pull request #767 from LinuxJedi/more-kex
Add DH Group 16 and HMAC-SHA2-512
2025-02-12 10:48:20 -08:00
Andrew Hutchings f73a76e064 Add DH Group 16 and HMAC-SHA2-512
This adds the `diffie-hellman-group16-sha512` key exchange and
`hmac-sha2-512` mac support.

Echoserver can now take `-x` for key exchange and `-m` for mac setting,
 and `-c` for cipher so that this can be used in the test suite.
2025-02-12 07:06:51 +00:00
JacobBarthelmeh 60f90dfad2
Merge pull request #763 from LinuxJedi/RFC-4256
RFC-4256 Keyboard-Interactive authentication
2025-02-11 10:43:42 -07:00
Andrew Hutchings a4733ecd95 RFC-4256 Keyboard-Interactive authentication
This implements Keyboard-Interactive authentication.

Adds an additional callback set by `wolfSSH_KeyboarAuthPrompts()` which
will set a callback in the server to ask the application to provide the
prompt details for the client.
2025-02-11 14:19:52 +00:00
JacobBarthelmeh 34c3794396
Merge pull request #768 from LinuxJedi/client-crash
Fix crash when client has no hostname
2025-02-10 16:34:46 -07:00
Daniel Pouzzner 7ae768a223
Merge pull request #769 from LinuxJedi/testing
Add cppcheck test to GitHub actions
2025-02-07 00:32:00 -06:00
Andrew Hutchings d108c69c5d Add cppcheck test to GitHub actions
Found and fixed:

* Fix typos in Renesas demo
* Fix uninitialized variable reads
* Fix redundant condition
* Fix argument checks
* Fix some null ptr dereferences
* Fix ambiguous statement
2025-02-05 19:49:01 +00:00
Andrew Hutchings 669bf92683 Fix crash when client has no hostname
If the client is not provided a hostname, `ClientPublicKeyCheck` would
crash trying to match `targetName`. A hostname is required.
2025-02-04 11:18:51 +00:00
Sean Parkinson 759bcbd36a
Merge pull request #766 from night1rider/AES_BLOCK_SIZE_opensslcoexist
Adding define for wc_aes_block_size
2025-02-03 15:40:40 +10:00
msi-debian bcbddd0bf2 Adding define for wc_aes_block_size 2025-02-01 16:00:05 -07:00
David Garske a2676877fc
Merge pull request #765 from JacobBarthelmeh/scp
use dynamic buffer for SCP base path
2025-01-31 14:56:16 -08:00
JacobBarthelmeh 9c1f289485 use dynamic buffer for SCP base path 2025-01-31 15:20:00 -07:00
David Garske 86499a5094
Merge pull request #762 from JacobBarthelmeh/kex
Add back in P521 and P384 by default when enabled
2025-01-31 09:59:05 -08:00
JacobBarthelmeh c476e8846e refactor sshd test case script 2025-01-30 18:16:55 -07:00
JacobBarthelmeh c2fefec0eb add debug print out with test case 2025-01-30 17:42:44 -07:00
JacobBarthelmeh f6726abe89 add check for HAVE_ALL_CURVES macro 2025-01-30 17:41:31 -07:00
JacobBarthelmeh e4356dd6ed add test case 2025-01-30 17:31:05 -07:00
Daniel Pouzzner e7be0cd812
Merge pull request #751 from JacobBarthelmeh/scp
SCP hang with interop fix
2025-01-30 16:25:48 -06:00
JacobBarthelmeh 38725f6b1a add back in nistp384 and nistp521 as defaults 2025-01-30 14:58:18 -07:00
JacobBarthelmeh d5d45ca7a8 add comments on test case 2025-01-30 10:28:35 -07:00
JacobBarthelmeh 555449c264
Merge pull request #761 from LinuxJedi/fix-actions
Fix GitHub Actions upload artifact
2025-01-30 10:17:50 -07:00
Andrew Hutchings 35bf1f8521 Fix GitHub Actions upload artifact
The v3 support was removed on 2025-01-30
2025-01-30 16:42:37 +00:00
David Garske 572dbac273
Merge pull request #760 from JacobBarthelmeh/comment
update wolfSSL version listed in comment
2025-01-29 09:02:06 -08:00
JacobBarthelmeh db6d21e9d9 update wolfSSL version listed in comment 2025-01-28 16:25:06 -07:00
JacobBarthelmeh cec90f8cec
Merge pull request #758 from ejohnstown/simplify-autogen
Simplify autogen
2025-01-15 15:58:43 -08:00
John Safranek 2b2825560e Simplify autogen
The autogen script is doing too many things. The tests that are set up
in the git hooks are already tested by GitHub with actions on branch
push. Also they don't work if you install wolfSSL somewhere specific.
All one needs to do is run `autoreconf -ivf` to make the configure
script. This is all autogen does now, with the addition of warnings.
2025-01-15 15:32:37 -08:00
Sean Parkinson a2ed75ed73
Merge pull request #756 from lealem47/fatfs_build
Fix SFTP build with WOLFSSH_FATFS
2024-12-16 09:12:59 +10:00