Commit Graph

881 Commits (7ff76751f63b5bb54e2aa6f080a6adce78d1c8da)

Author SHA1 Message Date
Daniele Lacamera 7ff76751f6 Fix compile errors when WOLFSSH_TERM is undefined 2023-09-18 08:23:30 +02:00
JacobBarthelmeh ef394908a7
additional sanity check on input buffer size 2023-09-15 15:35:35 -06:00
JacobBarthelmeh d84e3b3f4b
Merge branch 'master' into pull-reqs/cca01a4_WOLFSSH_FTP_FSETSTAT 2023-09-15 15:33:59 -06:00
John Safranek f8ac5285bf
Fix Terminal Window Size Update
1. Change sizeof a pointer to a string to WSTRLEN(). It was only copying
   part of the string "window-change" to the channel status message.
2023-09-15 10:45:12 -07:00
JacobBarthelmeh 999154677e sanity check on first read with opcode 2023-09-06 12:45:23 -07:00
John Safranek 36c170445f
Partial Success
User authentication partial successes are controlled by the user
authentication callback. If the public key is accepted by the user
authentication callback, but considers it a partial success, the
signature is still checked and if successful, is still treated as a
failure in the response message.

1. Add new user authentication callback return value of
   WOLFSSH_USERAUTH_PARTIAL_SUCCESS.
2. Update the password user authentication function to parallel the
   public key version more. Treat failure and partial success similarly.
3. Check the public key user authentcation callback for partial success.
   In that case, still check the signature.
2023-09-01 12:00:45 -07:00
John Safranek 491f3dce57 WMACRO Update
1. Fix missing updates to wolfSSHd.
2. Fix missing update to scp.
2023-09-01 09:34:26 -07:00
John Safranek d4fa4ebd69
Merge branch 'master' into pull-reqs/f4021bb_All_the_filesystem-related_W_macros_accept_a_filesystem_context_pointer_as_first_parameter 2023-09-01 09:08:34 -07:00
John Safranek ad2b0d7b99
Merge pull request #568 from JacobBarthelmeh/sftp 2023-08-30 16:15:47 -07:00
JacobBarthelmeh 034ed7fe9f fix ups for format, spelling, includes, and string compare 2023-08-30 13:32:17 -07:00
JacobBarthelmeh 0bd4539ef6 adjust req-pty terminal size sent with Windows 2023-08-30 09:08:25 -07:00
JacobBarthelmeh a37b709e20 add better initial setting of terminal size with pty-req packet 2023-08-30 09:08:25 -07:00
JacobBarthelmeh ecd47ddfd6 add OSX semaphore use, and fix warning 2023-08-30 09:08:25 -07:00
JacobBarthelmeh ab742ca766 wolfSSHd port to Windows
handling of terminal size adjustments

stub case for ECH virtual terminal command
2023-08-30 09:08:25 -07:00
JacobBarthelmeh 335afde474 additional checks on packet size 2023-08-30 09:02:51 -07:00
John Safranek f7958e10ee
Merge pull request #565 from JacobBarthelmeh/blocking 2023-08-28 11:40:26 -07:00
John Safranek 1a82574073
OQS Cleanup
1. Fixed used of a local variable whose name had changed and wasn't
   updated.
2. Added typecast to a 64-bit value that is added to a 32-bit value and
   stored as a 32-bit value for the kem size.
2023-08-25 15:48:58 -07:00
JacobBarthelmeh bd1506db93 reset want read before attempting to read 2023-08-25 15:29:23 -06:00
Sean Parkinson 6ff70225db
Merge pull request #548 from falemagn/pull-reqs/48833f4_Support_large_file_sizes_in_long_file_names
Support large file sizes in long file names.
2023-08-23 08:19:19 +10:00
Sean Parkinson 601682cf11
Merge pull request #559 from JacobBarthelmeh/sftp-fix
fix for SFTP interop
2023-08-23 08:15:56 +10:00
JacobBarthelmeh 1015a8be63
Merge pull request #553 from falemagn/pull-reqs/bb7773a_Correctly_send_out_the_CHANNEL_OPEN_FAIL_message_in_case_opening_a_channel_didnt_succeed
Correctly send out the CHANNEL_OPEN_FAIL message on failure.
2023-08-08 10:24:09 -06:00
JacobBarthelmeh efa7188b6d
use WSNPRINTF and rename variable 2023-08-08 09:37:35 -06:00
JacobBarthelmeh 543901632d fix for dh group connections 2023-08-07 14:38:14 -07:00
JacobBarthelmeh f018455f43 Use already defined max 32bit size 2023-08-07 08:25:08 -07:00
JacobBarthelmeh fd20feff0f fix file offest on Windows and change offset increment 2023-08-04 14:29:59 -07:00
JacobBarthelmeh 825b33d649
Merge pull request #545 from falemagn/pull-reqs/4ee19d0_wolfSSH_CTX_SetSshProtoIdStr
wolfSSH_CTX_SetSshProtoIdStr
2023-08-04 09:20:52 -06:00
Fabio bf223a4d62 Removed unneeded WOLFSSH_API and added null check for the ctx argument. 2023-08-04 07:23:13 +02:00
JacobBarthelmeh c651fc72e5 handle all unexpected public key auth callback return values and send auth failure to peer 2023-08-03 16:12:04 -07:00
JacobBarthelmeh 864ef1e3c4
Merge pull request #550 from falemagn/pull-reqs/cf9e96e_Add_a_state_for_the_receiving_of_SFTP_init_message
Support partial packet reads during the SFTP server-side initialization.
2023-08-03 16:39:51 -06:00
David Garske 67de4fdfea
Merge pull request #539 from JacobBarthelmeh/sftp
make dir handle list local to WOLFSSH object
2023-08-03 14:08:00 -07:00
JacobBarthelmeh 6b73b99408 move SFTP DIR ID count to WOLFSSH struct 2023-08-03 13:20:12 -07:00
JacobBarthelmeh b5ea47dafa
Merge pull request #547 from falemagn/pull-reqs/7e4bad0_Increase_buffer_size_to_accomodate_for_big_RSA_keys
Increase buffer size to accomodate for big RSA keys
2023-08-03 10:41:02 -06:00
JacobBarthelmeh 75c78d0608 fix for SFTP interop 2023-07-21 15:46:21 -07:00
Fabio Alemagna 092c04fe30 All the filesystem-related W* macros accept a filesystem context pointer as first parameter, to make portability better. 2023-07-21 11:53:40 +02:00
Fabio Alemagna 975b145a0c Add a state, with buffer, for the receiving of SFTP init message, so that partial read don't cause issues. Activated for the server only at the moment. 2023-07-21 11:53:32 +02:00
Fabio Alemagna 3d6dfb3504 WOLFSSH_FTP_FSETSTAT 2023-07-21 11:53:30 +02:00
Fabio Alemagna ed82a1bad2 Correctly send out the CHANNEL_OPEN_FAIL message in case opening a channel didn't succeed. Currently the implementation doesn't support having session channels coexist with other channels (including other sessions channels themselves), hence administratively forbid opening the channel in case such a situation arises. 2023-07-21 11:53:28 +02:00
Fabio Alemagna 977618ed15 Increase buffer size to accomodate for big RSA keys 2023-07-21 11:53:23 +02:00
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
John Safranek 9384019874
Merge pull request #532 from JacobBarthelmeh/fuzz
account for partial send cases
2023-07-06 13:24:19 -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
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
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