Commit Graph

1745 Commits (0e3ec03c2d7b569a44769d7467acf79b299456d5)

Author SHA1 Message Date
Fabio Alemagna 52c24c7a29 Convert WS_SUCCESS to string. 2023-07-21 11:53:21 +02:00
Fabio Alemagna 866dc37601 wolfSSH_CTX_SetSshProtoIdStr 2023-07-21 11:53:16 +02:00
Fabio Alemagna dba0b8791d Support large file sizes in long file names. 2023-07-21 11:50:36 +02:00
JacobBarthelmeh bdd49717f7 make dir handle list local to WOLFSSH object 2023-07-14 16:30:14 -06:00
Sean Parkinson 87caf4ad04
Merge pull request #538 from JacobBarthelmeh/sftp
check on absolute path from Linux to Windows machine
2023-07-14 10:53:35 +10:00
JacobBarthelmeh 5d8a64f062 check on absolute path from Linux to Windows machine 2023-07-13 13:24:32 -07:00
David Garske d6f0294dcf
Merge pull request #537 from JacobBarthelmeh/sshd
better handling of want read/write cases with SFTP + SSHD
2023-07-12 12:32:54 -07:00
JacobBarthelmeh 4c0c0124ec better handling of want read/write cases with SFTP + SSHD 2023-07-12 07:38:45 -07:00
David Garske 31c98b8c68
Merge pull request #534 from JacobBarthelmeh/release
prepare for release 1.4.14
2023-07-06 15:54:28 -07:00
JacobBarthelmeh 981d946d8e prepare for release 1.4.14 2023-07-06 13:27:32 -07:00
John Safranek 9384019874
Merge pull request #532 from JacobBarthelmeh/fuzz
account for partial send cases
2023-07-06 13:24:19 -07:00
David Garske 50e9f69f65
Merge pull request #533 from JacobBarthelmeh/build_test
fix warnings for g++ build
2023-07-05 15:43:05 -07:00
JacobBarthelmeh 57f07802a2 fix warnings for g++ build 2023-07-05 15:10:48 -07:00
JacobBarthelmeh 9d5d871771 account for partial send cases 2023-07-05 10:47:06 -07:00
David Garske 469efd6abf
Merge pull request #531 from JacobBarthelmeh/windows
fix for building client on windows with shell support
2023-06-28 16:03:58 -07:00
JacobBarthelmeh b589883539 fix for building client on windows with shell support 2023-06-28 14:32:15 -06:00
David Garske 9e83349745
Merge pull request #530 from JacobBarthelmeh/sftp
better handling of window full cases and chroot with SFTP
2023-06-28 09:27:48 -07:00
David Garske 2f9a263a69
Merge pull request #527 from JacobBarthelmeh/groups
adjust set and get groups
2023-06-28 09:11:44 -07:00
JacobBarthelmeh e55b4f7e70 fix for getgroups with QNX 2023-06-27 23:30:32 -07:00
JacobBarthelmeh 711470e2d4 sanity check on return value 2023-06-27 15:14:55 -07:00
JacobBarthelmeh f3922d14cd improve chroot with SShd 2023-06-27 00:08:25 -07:00
JacobBarthelmeh 049e40bb1c better handling of window full cases with SFTP 2023-06-26 22:58:28 -07:00
David Garske b17f73a585
Merge pull request #525 from ejohnstown/even-more-rsa-userauth
RFC 8332: Part 2
2023-06-23 09:55:28 -07:00
John Safranek a4e194ba96
RFC 8332 (user auth updates)
1. Rename one of the new constants.
2. Change a couple new string values to be file-static.
3. Add word32 typecasts to all the sizeof() uses in internal.c where
   they are assigned to or used with word32 values. (Some compilers
   complain about the implicit typecasting to values of smaller size.)
2023-06-22 22:33:38 -07:00
John Safranek 2dcb010d05
RFC 8332 (user auth updates)
1. Add logging of the signature type used in both server authentication
   and user authentication.
2. Fix issue with the user authentication request message using the key
   type rather than the signature type in the message.
2023-06-21 19:37:48 -07:00
JacobBarthelmeh be522e8267 fix warning about unused stored value 2023-06-21 16:10:15 -07:00
David Garske 42cc83f5dd
Merge pull request #528 from ejohnstown/grow-fix
Buffer Grow Fix
2023-06-20 10:16:08 -07:00
John Safranek 6a3e4856b4
I/O Buffer Refactor
1. Started changing LENGTH_SZ to UINT32_SZ. The RFCs define the length
   of strings and mpints as uint32 values.
2. Some whitespace changes.
3. The getting data into the input buffer is done based on the goal size.
   The pattern is to get the first block, decrypt it if necessary, then read
   the size out, then get that much data plus the size of the length and the
   MAC.
2023-06-15 13:25:33 -07:00
John Safranek 68f026dc00
I/O Buffer Refactor
1. Change LENGTH_SZ to be UINT32_SZ.
2. Change the buffer's length to be the insert point for adding data,
   and the idx is where is it removed.
3. Changed the buffer's available size to be the length minus the idx.
4. Updated the copy behavior of GrowBuffer() and ShrinkBuffer().
2023-06-15 13:03:44 -07:00
JacobBarthelmeh aaf8b04fae adjust set and get groups 2023-06-15 01:48:31 -06:00
John Safranek 67f7db23a3
I/O Buffer Refactor
Fuzzing found an issue with the I/O buffer handling. This refactor
simplifies the handling inside the existing functions.
2023-06-13 21:31:43 -07:00
John Safranek 522401e196
Whitespace and Distraction Cleanup
1. Cleaned up some whitespace.
2. A couple functions were using a couple strings repeatedly. Assigned
   to a pointer and used that instead. Also used strlen rather then
   sizeof for them.
2023-06-12 09:55:01 -07:00
JacobBarthelmeh 15cc7c491d
Merge pull request #526 from ejohnstown/mac-build
Mac Build Fix
2023-06-08 09:25:52 -06:00
John Safranek 8b4ae3681c
Mac Build Fix
Put macro wrapper around function getgrouplist(). The mac is treating it
as taking a pointer to int rather than gid_t.
2023-06-07 17:33:32 -07:00
John Safranek 83aa2650c2
Merge pull request #463 from danielinux/improve-fatfs-support
Support for FATFS on Xilinx targets
2023-06-07 11:13:56 -07:00
Daniele Lacamera ea854c8b0f Added option WOLFSSH_XILFATFS 2023-06-07 18:08:53 +02:00
Daniele Lacamera 35fc7dd4e8 Improve FATFS: correct lifetime on ff_open/close 2023-06-06 11:48:54 +02:00
John Safranek 9afc6a3cc0
RFC 8332 (user auth updates)
1. Pick the algorithm based on the server's user auth algo list for
   SHA2 signing.
2. When PrepareUserAuthRequest is called based on keySigId, do it
   conditionally on error.
2023-06-02 15:05:43 -07:00
John Safranek 169d2c6bb5 RFC 8332 (user auth updates)
1. Add sending and decoding the RFC 8308 extensions, specifically the
   server signature algorithms extension.
2. Add function CountNameList() to count items in a name list.
3. Split GetNameList() to make GetNameListRaw() that is given the
   pointer to the start of the list and its size.
4. Store the list of server user auth algos in the WOLFSSH object.
2023-06-02 14:43:15 -07:00
John Safranek 9d1996ae20 RFC 8332: User Authentication
1. Updating DoUserAuthPublicKey parsing.
2. Add the RFC 8308 extension support to indicate user authentication
   public key types.
2023-06-02 13:57:00 -07:00
JacobBarthelmeh 77e28cf324
Merge pull request #517 from ejohnstown/even-more-rsa-serverauth
RFC 8332: Part 1
2023-06-02 11:14:25 -06:00
John Safranek 639f896320
Merge pull request #519 from JacobBarthelmeh/scp
break between SSH accept and SCP operation
2023-06-01 20:54:43 -07:00
John Safranek db443df99b
RFC 8332 (server auth updates)
1. Increased the number of private keys stored.
2. Increased the number of items processed in the received KexInit
   message. Other SSH implementations are sending many more possible
   algorithm selections.
3. Split the adding of private keys and certificates to a WOLFSSH_CTX
   into two functions. Both share an action to make sure certificates
   and keys are married up as appropriate.
4. Removed the function UpdateKeyID() as it was modifying the
   WOLFSSH_CTX after having created WOLFSSH objects with it. Its other
   behaviors were incorporated into 3 above.
2023-06-01 20:49:06 -07:00
John Safranek 826a045bf4 RFC 8332
1. Add server auth support for RSA signing with SHA2-256 and SHA2-512.
2023-06-01 16:10:45 -07:00
JacobBarthelmeh 981a506967 add check for channel eof and remove shutdown call 2023-06-01 15:05:24 -07:00
John Safranek f41135dbd9
Merge pull request #520 from JacobBarthelmeh/auth
fix empty password support regression
2023-06-01 11:17:55 -07:00
John Safranek 1f531265f8
Merge pull request #523 from JacobBarthelmeh/groups
fix for setting secondary groups
2023-06-01 10:59:08 -07:00
JacobBarthelmeh 066aa22259 fix for setting secondary groups 2023-05-26 07:56:24 -07:00
John Safranek 6fabf0084c
Merge pull request #521 from JacobBarthelmeh/qnx
keep raised permissions for startup
2023-05-24 14:59:47 -07:00
John Safranek d349d15192
Merge pull request #522 from JacobBarthelmeh/shell
add cr for enter with shell connections to windows server
2023-05-24 14:58:48 -07:00