Commit Graph

632 Commits (f3c98d4dfd5e5e266576c498a2fef776008ccc33)

Author SHA1 Message Date
Jacob Barthelmeh f3c98d4dfd fix for cleanup in error case 2021-05-07 14:10:52 +07:00
John Safranek 9ae319fc24
Add PacketPurge to a couple of Send functions that can error out between Prepare and BundlePacket. 2021-05-04 14:06:36 -07:00
John Safranek 35616ada1d
Add function to purge a packet in case building one fails. 2021-05-04 13:34:43 -07:00
Takashi Kojo 08af6ae911 fix indent 2021-04-27 06:05:22 +09:00
Takashi Kojo b3fc009335 fix a leak 2021-04-23 11:29:21 +09:00
Daniele Lacamera 866a582e09 removed unused variable in the WOLFSSH_NO_DH configuration 2021-03-26 15:44:22 +01:00
Daniele Lacamera 0b73cc7472 Fix configuration WOLFSSH_NO_DH 2021-03-26 15:26:02 +01:00
JacobBarthelmeh a77bc90b75
Merge pull request #324 from danielinux/nosyscall-fixes
SCP: improvements to run on embedded RTOS
2021-03-26 16:37:13 +07:00
JacobBarthelmeh 12b6a0e6d8
Merge pull request #327 from danielinux/wolfssh_small_stack
Added option for --enable-small-stack
2021-03-23 21:48:45 +07:00
Daniele Lacamera f128bea779 Fixes after reviewer's comments 2021-03-22 17:40:12 +01:00
Daniele Lacamera 801ac2d656 Fixed scope of stack variables (found via asan) 2021-03-17 08:49:51 +01:00
Daniele Lacamera a36d91bc93 Fixes after reviewer's comments. 2021-03-16 09:48:36 +01:00
John Safranek 3b61ea2ab8
Merge pull request #325 from JacobBarthelmeh/sftp
fix for handling rekey
2021-03-11 08:21:10 -08:00
Daniele Lacamera fa3919f28a Use constant expressions for array initialization 2021-03-09 10:10:19 +01:00
Daniele Lacamera cb2e988254 Fixed mixing declaration and code 2021-03-09 10:04:37 +01:00
Daniele Lacamera 40e12fd14d Added option for --enable-small-stack 2021-03-08 18:00:04 +01:00
Jacob Barthelmeh 6952d38246 client side needs to send Kex Dh on rekey 2021-03-03 18:21:09 +07:00
John Safranek c93a7418cf
SFTP
For SFTP messages, check both minimum bound and maximum bound of the length value.
2021-02-23 11:42:11 -08:00
Daniele Lacamera 5169432e39 Removed options for NO_SCP_TIMESTAMP, NO_SCP_ENTER_DIRECTORY 2021-02-19 15:02:26 +01:00
Jacob Barthelmeh 4828cef216 fix for handling rekey 2021-02-19 01:27:24 +07:00
Daniele Lacamera b95d43fd1c Reverted strtol to atoi 2021-02-17 07:19:46 +01:00
Daniele Lacamera 52a1e13470 Fixed compiler warnings, pre-commit tests 2021-02-16 13:20:19 +01:00
Daniele Lacamera 882e662bbf Exclude wolfSCP_connect from server-only build 2021-02-16 13:15:52 +01:00
Daniele Lacamera d7cd61d926 wolfSCP: allow overriding GETHDR, disable functions that call snprinf
according to compile options
2021-02-16 13:03:16 +01:00
Daniele Lacamera 4e76f3dd72 Set initial value to NULL for two variables 2021-02-16 13:02:45 +01:00
Daniele Lacamera b68f98ae70 Removed function definitions when DEBUG is disabled 2021-02-16 12:59:52 +01:00
John Safranek 49084a93f1
Fuzz Fixes
1. When processing public key user auth, use GetSize() instead of GetUint32(). (ZD 11654 and 11655)
2. When processing public key user auth, initialize the key earlier.
2021-02-09 16:24:34 -08:00
JacobBarthelmeh c3aa7ec540
Merge pull request #320 from ejohnstown/get-size
Get Size
2021-02-05 01:10:33 +07:00
John Safranek 4a518018e0
Get Size
1. Revise the bounds check in GetString() to match the old bounds checks.
2. Replace the last few instances of getting the length of a SSH string and checking it by hand with calls to GetString().
2021-02-04 09:45:56 -08:00
JacobBarthelmeh 3326c4bd0d
Merge pull request #321 from ejohnstown/nobreak
Rename the FALL_THROUGH macro as NO_BREAK as a better descriptor.
2021-02-04 01:49:14 +07:00
Jacob Barthelmeh 997bd8a0d0 fix for windows sftp build 2021-02-03 22:26:58 +07:00
John Safranek c9bced2a2b
Rename the FALL_THROUGH macro as NO_BREAK as a better descriptor. 2021-02-02 14:38:55 -08:00
John Safranek 5285132db9
Get Size
1. Add a function GetSize() that calls GetUint32() then checks that the
   value read in plus the data index is still less than the data length.
2. Replaced a few checks of the size of some data with calls to
   GetSize(). Included are public key type length, public key length,
   and the signature length in DoUserAuthPublicKey().
2021-02-02 14:19:19 -08:00
John Safranek 351bc7585e
SSH-AGENT
1. For the client agent command line option, add the flag to the flag string.
2. Update PostSignRequest() to support all flavors of ECDSA and to
   switch out code for missing algorithms.
3. Hide function SendRequestIdentities().
2021-02-02 14:13:48 -08:00
John Safranek c26f72cf98
Maintenance
1. If the public key user authentication fails, don't retry it.
2. Add some more specific logging about the type of a signature getting generated.
2021-02-02 14:03:32 -08:00
John Safranek 7ecff575c9
Remove redundant 'FALL_THROUGH' from a switch-case. 2021-02-02 13:35:44 -08:00
John Safranek 717ea6a050
Separate the ECC disable into ECDSA and ECDHE disables. 2021-02-02 10:58:04 -08:00
John Safranek b7f073faa3
More Options
1. Added general disable flags for RSA and ECDSA.
2. Replaced HAVE_ECC, NO_RSA, NO_DSA with the general disable flags.
2021-02-02 10:58:03 -08:00
Guido Vranken 2e6c670769 In ReceiveScpConfirmation reserve room for NULL-terminator.
ZD 11621
2021-02-02 13:24:07 +01:00
John Safranek 3647697d46
Merge pull request #287 from JacobBarthelmeh/testing
close local file on error case
2021-02-01 16:41:45 -08:00
Jacob Barthelmeh 68e678c59c check ret of HighWaterCheck and adjust when to increase buffer amount 2021-01-30 03:18:35 +07:00
Jacob Barthelmeh 48aababf8b fix for fall through use 2021-01-28 02:29:50 +07:00
John Safranek 322d7cd6f7
Merge pull request #314 from JacobBarthelmeh/static_analysis
sanity null check on localTime
2021-01-27 08:39:21 -08:00
Jacob Barthelmeh 714a4f6ac6 sanity null check on localTime 2021-01-27 22:06:43 +07:00
JacobBarthelmeh 58d0b54ed8 potential memory leak cleanup 2021-01-27 21:42:37 +07:00
JacobBarthelmeh 49bac53e2f
Merge pull request #306 from guidovranken/oss-fuzz-26413
Call ParseBasePathHelper only after scpBasePath has been set
2021-01-27 19:02:29 +07:00
John Safranek c7a392d351
if a handshake info has a stored kex init message already before trying to store a kex init message, free it 2021-01-26 17:36:15 -08:00
John Safranek 3653afac34
check that the generator and primeGroup are set before trying to flatten them into output 2021-01-26 16:59:42 -08:00
JacobBarthelmeh e097c234fc
Merge pull request #304 from guidovranken/oss-fuzz-27298
Use WSTRNCMP for comparing session command string
2021-01-27 03:30:51 +07:00
JacobBarthelmeh d7bffed780
Merge pull request #307 from guidovranken/fix-wsScpSendCallback-comments
Correct references to return values in comments around wsScpSendCallback
2021-01-27 03:25:43 +07:00