Commit Graph

1086 Commits (d3bd96f210362c0c87d0ed2eb730e7d7160d236d)

Author SHA1 Message Date
David Garske d3bd96f210
Merge pull request #790 from JacobBarthelmeh/pic32
microchip example and filesystem port
2025-04-04 10:04:16 -07:00
JacobBarthelmeh 6e8ea49c38 remove extra debug log message and commented out stat items 2025-04-03 16:01:18 -06:00
aidan garske 77c8db6cc2 Rebase for tpm public key authentication with wolfssh 2025-04-01 16:44:55 -07: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 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
Andrew Hutchings d8ad0c307b Move (void) to below variable declaration 2025-03-07 06:42:51 +00: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
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 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
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
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
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
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
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
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
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 db6d21e9d9 update wolfSSL version listed in comment 2025-01-28 16:25:06 -07:00
Lealem Amedie fd45a864fb Fix SFTP build with WOLFSSH_FATFS 2024-12-13 15:08:40 -07:00
JacobBarthelmeh 3f1e96eed8 set return error with scp failure 2024-11-13 14:53:25 -07:00
Daniel Pouzzner 563e6c4353
Merge pull request #750 from JacobBarthelmeh/scp_example
Scp example free memory on failure
2024-11-09 00:26:26 -06:00
JacobBarthelmeh d288a0deb2 try to close file on socket send failure 2024-11-08 11:18:41 -07:00
JacobBarthelmeh 8ec3bcaa25 pass heap hint to init rng call 2024-11-07 16:47:29 -07:00
Daniel Pouzzner d3a8ec6dc0
Merge pull request #743 from JacobBarthelmeh/sftp
keep trailing delimiter with SFTP open
2024-11-01 14:24:23 -05:00
JacobBarthelmeh 6037d0bba8 error out when buffer is too small for null terminator 2024-10-30 09:43:13 -06:00
Daniel Pouzzner fe25b4ef99
Merge pull request #746 from JacobBarthelmeh/testing
add CI test against master and last two wolfSSL releases
2024-10-15 12:49:25 -05:00
JacobBarthelmeh 9e68977945 test setting different wolfssl version for test 2024-10-11 16:23:20 -06:00
JacobBarthelmeh 8a1b62ffea add sanity checks 2024-10-10 14:28:19 -06:00
JacobBarthelmeh 52e4e32529 keep trailing delimiter with SFTP open 2024-10-04 14:59:40 -06:00
JacobBarthelmeh f0922715af adjust macro guard to avoid leak for build without cert support 2024-09-27 11:30:30 -06:00
JacobBarthelmeh df17913967 sanity check on arguments passed in 2024-09-27 11:11:25 -06:00
JacobBarthelmeh 45534b0418 sanity check on state before dereference 2024-09-27 10:59:14 -06:00
JacobBarthelmeh 76a8d8262d adjust sanity check on sz before adding null terminator 2024-09-27 09:54:05 -06:00
JacobBarthelmeh 1dc46d5fe9 remove dead code 2024-09-27 09:31:30 -06:00
JacobBarthelmeh 34dfcec788 use heap hint passed in 2024-09-27 09:27:33 -06:00
John Safranek 7454ed05ee Modes Update
Several of the TTY mode bits we are checking and setting aren't a part
of POSIX, but are available on Linux. Adds guards to the non-POSIX
value checks and updates.
2024-09-25 09:31:56 -07: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
Anthony Hu 20287f5568 Purge OQS from wolfSSH. Use kyber from wolfssl. 2024-08-20 14:57:39 -04: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
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