Commit Graph

2166 Commits (429cf16566879486b2344429447c3aa921e4eac0)

Author SHA1 Message Date
gojimmypi 429cf16566
DoAsn1Key now fails when WOLFSSH_NO_RSA is defined 2025-06-11 14:24:30 -07:00
John Safranek 7f625da9d5
Merge pull request #809 from gojimmypi/pr-disable-old-threading
Disable old threading functions when SINGLE_THREADED
2025-06-11 10:02:46 -07:00
gojimmypi 4da7e53b24
Disable old threading functions when SINGLE_THREADED 2025-06-10 10:54:43 -07:00
Sean Parkinson 5cd826c5eb
Merge pull request #795 from JacobBarthelmeh/decrypt
adjust highwater check location to avoid masking return value
2025-05-22 08:45:02 +10:00
Sean Parkinson e32ea9078c
Merge pull request #806 from LinuxJedi/fs-fixes
Fix double-free on `wolfSSH_SFTPNAME_readdir`
2025-05-22 08:12:15 +10:00
Andrew Hutchings e515ea9dc8 Fix double-free on `wolfSSH_SFTPNAME_readdir`
The filename of the `WS_SFTPNAME` could be freed in this function upon
an error, but it is not set to `NULL`, so when
`wolfSSH_SFTPNAME_free` is called, a double-free occurs.

Found when working on ZD 16290.
2025-05-21 15:51:26 +01:00
JacobBarthelmeh 1422697e43 add check for want write in example echoserver to handle new test case 2025-05-20 16:55:42 -06:00
JacobBarthelmeh 71cda6d16c add test case for want write return from highwater callback 2025-05-20 15:18:27 -06:00
JacobBarthelmeh 1cc4418bdf adjust highwater check location to avoid masking return value 2025-05-20 15:17:37 -06:00
Andrew Hutchings e0a1bdd9c4
Merge pull request #804 from ejohnstown/vvv
Soft Disable AES-CBC
2025-05-17 15:53:55 +01:00
Daniel Pouzzner 597a71be60
Merge pull request #802 from LinuxJedi/kbi-fixes
Keyboard Interactive bug fixes
2025-05-16 15:23:45 -05:00
John Safranek 0f650789de Soft Disable AES-CBC
1. By default, soft disable AES-CBC. It isn't offered as a default
   encrypt algorithm, but may be set at runtime.
2. Add guard where AES-CBC can be added back as a default.
3. Add option to example client to run it with a custom encrypt
   algorithm list.
4. In the client, add macro to add items to the arg lists while checking
   the number of items in the list.
2025-05-16 11:41:52 -05:00
Andrew Hutchings 3e4d9c0b95 Keyboard Interactive bug fixes
* `keyboardAuthCb` was not initalized correctly, meaning we could
  enable the mode without callback.
* `SendUserAuthKeyboardRequest` didn't check `keyboardAuthCb` for
  `NULL`.
* `DoUserAuthInfoResponse` left `authData` partially uninitialized.
* `DoUserAuthInfoResponse` new checks that KB auth is in progress.
2025-05-06 10:06:22 +01:00
Andrew Hutchings ee9bc3b6fd
Merge pull request #801 from ejohnstown/kb-fix
KeyboardInteractive Fix
2025-05-06 07:20:50 +01:00
John Safranek 56189a3775 KeyboardInteractive Fix
1. Snip out some extraneous states from the server handshake tracking
   for accept.
2. Change sending the keyboard interactive info response to a reaction
   to a request.
2025-05-05 14:12:21 -07:00
John Safranek 24b7629d78
Merge pull request #800 from LinuxJedi/kbi-fixes
Make Keyboard Interactive a compile time option
2025-05-05 14:02:16 -07:00
Sean Parkinson b84b9581ca
Merge pull request #799 from anhu/null
Init a pointer to NULL
2025-04-29 08:53:36 +10:00
Anthony Hu 12d37328ac Customer reported possible unitialized usage 2025-04-28 16:13:42 -04:00
Andrew Hutchings c368efb8b2 Make Keyboard Interactive a compile time option
Now an off-by-default compile-time option. This saves resources and
confusion if you are not expecting it.

ZD #19704
2025-04-22 13:12:42 +01:00
David Garske ea5f28d943
Merge pull request #798 from gojimmypi/pr-spelling
spelling edits
2025-04-12 10:06:29 -07:00
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