Commit Graph

2146 Commits (bc6974f875363bee28682afe854c879792dad939)

Author SHA1 Message Date
gojimmypi bc6974f875
spelling edits 2025-04-12 16:36:11 +02:00
JacobBarthelmeh b7418a21a3
Merge pull request #797 from falemagn/patch-1
Fixed typo
2025-04-10 14:31:48 -06:00
Fabio 6af7d1daa3
Fixed typo
Fixed small typo: Attirbutes -> Attributes
2025-04-09 12:23:43 +02:00
David Garske cd04ae5c34
Merge pull request #796 from LinuxJedi/fix-fatfs-warning
Fix warning on FATFS builds
2025-04-08 15:03:52 -07:00
Andrew Hutchings 7ab2b27fdd Fix warning on FATFS builds
Triggered on a customer's FATFS build with -Werror.
2025-04-08 17:01:32 +01:00
David Garske d3bd96f210
Merge pull request #790 from JacobBarthelmeh/pic32
microchip example and filesystem port
2025-04-04 10:04:16 -07:00
JacobBarthelmeh ae5fa76f74 update include.am for correct mplabx files 2025-04-04 10:15:30 -06:00
JacobBarthelmeh f567065102
Merge pull request #794 from anhu/WS_SOCKET_ERROR_E
Forgive a socket error
2025-04-04 10:05:41 -06:00
Anthony Hu 03afce7236 Forgive a socket error 2025-04-03 19:19:36 -04:00
JacobBarthelmeh 6e8ea49c38 remove extra debug log message and commented out stat items 2025-04-03 16:01:18 -06:00
JacobBarthelmeh ff9dabe8ba fix typo 2025-04-03 09:51:50 -06:00
JacobBarthelmeh 79d32d0f80 create library build exmaple 2025-04-02 17:17:40 -06:00
David Garske 90b69ff144
Merge pull request #754 from aidangarske/tpm_ssh_support
wolfSSH support for using TPM based key for authentication
2025-04-02 11:23:56 -07:00
aidan garske a52c3b120e Used W port.h file operations for keyblob and added username argument so can append any username needed. 2025-04-02 10:33:27 -07:00
aidan garske 3775d1843a newline 2025-04-01 22:05:47 -07:00
aidan garske 69e266178f Used port.h macros 2025-04-01 21:58:49 -07:00
aidan garske 77c8db6cc2 Rebase for tpm public key authentication with wolfssh 2025-04-01 16:44:55 -07:00
Sean Parkinson e5042df0c1
Merge pull request #792 from anhu/mlkem
Replace Kyber 512 with ML-KEM 768.
2025-03-27 13:05:56 +10:00
Anthony Hu 175bbc17b2 Doc edit. 2025-03-21 20:05:09 -04:00
Anthony Hu 0183905dbe Replace Kyber 512 with ML-KEM 768.
Devin did some work here.
2025-03-21 19:35:02 -04:00
David Garske 85bc7ba413
Merge pull request #791 from ejohnstown/sftp-symlink
Fix SFTP Symlink Indication
2025-03-20 10:53:29 -07:00
John Safranek 3386b636cf Fix SFTP Symlinks
1. When making a longname, mask the permission file type bits and check
   it being a link.
2. Mask the permission bits the same way for checking the item being a
   directory.
2025-03-20 09:02:39 -07:00
JacobBarthelmeh af7d58bf95
Merge pull request #789 from ejohnstown/ed25519-compat
Curve25519 Compat with LibSSH
2025-03-19 21:11:19 +07:00
JacobBarthelmeh 5fb496b9aa add chmod support, update readme and example app 2025-03-19 14:32:18 +07:00
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
John Safranek 599c4b856e Curve25519 Compat with LibSSH
1. Add curve25519-sha256@libssh.org back to the list of key exchange
   algorithms.
2. Treat curve25519-sha256@libssh.org as an alias for curve25519-sha256.
3. Remove the reference to ID_ECDH_SHA2_ED25519 from the list of algo
   IDs. It isn't actually a thing.
2025-03-10 14:11:45 -07:00
David Garske cea99e5e83
Merge pull request #787 from wolfSSL/devin/1740666408-add-fatfs-test-action
FATFS improvements, test and Linux example
2025-03-07 06:32:22 -08:00
Andrew Hutchings d8ad0c307b Move (void) to below variable declaration 2025-03-07 06:42:51 +00:00
Andrew Hutchings dfc0f72480 Make the FATFS a cache step 2025-03-06 11:15:29 +00:00
Andrew Hutchings a37591f3f5 Remove FATFS and link to it instead 2025-03-06 10:33:40 +00:00
JacobBarthelmeh c1b983a9d4
Merge pull request #788 from wolfSSL/devin/1740739538-github-action-sftp-test
Add GitHub Action for testing wolfSSH server with Paramiko SFTP client
2025-03-05 14:52:29 -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 647508beb8 Add GitHub Action for testing wolfSSH server with Paramiko SFTP client
Co-Authored-By: andrew@wolfssl.com <andrew@wolfssl.com>
2025-02-28 11:44:42 +00:00
Andrew Hutchings 648bee2314 Add copyright header to fatfs_example.c 2025-02-28 07:21:44 +00:00
Devin AI 86a6544c52 Fix C-style comments in fatfs_example.c
Co-Authored-By: andrew@wolfssl.com <andrew@wolfssl.com>
2025-02-27 20:11:14 +00:00
Devin AI d8e94e55f3 Fix C-style comments in diskio.c
Co-Authored-By: andrew@wolfssl.com <andrew@wolfssl.com>
2025-02-27 19:56:02 +00:00
Devin AI da01ceac13 Add GitHub Action to test FATFS support for wolfsftp client
This adds a GitHub Action workflow to test the FATFS support for the wolfsftp client.
The workflow:
- Installs dependencies
- Clones and builds wolfSSL with appropriate flags
- Compiles the FATFS library
- Configures and builds wolfSSH with FATFS support
- Creates a test file
- Sets up an SSH server
- Uses the wolfsftp client to transfer a test file
- Verifies the file in the FATFS image

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

Co-Authored-By: andrew@wolfssl.com <andrew@wolfssl.com>
2025-02-27 15:40:06 +00:00
Andrew Hutchings 08759f1943 Add FATFS Linux example
This allows a file on the Linux filesystem to be used as a FATFS file.

It also fixes a bug in `port.h` when opening file on a FATFS filesystem.
2025-02-27 12:18:05 +00:00
Andrew Hutchings 0fd8b2033b Fix FATFS compiling
FATFS compiling is currently broken due to several reasons. This fixes:

* Bad parameter count for `WRENAME`
* Missing `WFFLUSH` define
* `WOLFSSH_STOREHANDLE` required for `WOLFSSH_FATFS` to work
* Conflict when `NO_FILESYSTEM` is defined for wolfSSL and
  `WOLFSSH_FATFS` is defined by wolfSSH
* Function called that can't be used with `WOLFSSH_FATFS`
* Functions defined but not used with `WOLFSSH_FATFS`
* Function parameters defined but not used
2025-02-27 09:03:02 +00: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