Commit Graph

602 Commits (384a00000f3db814492602cf15d72a3a643f70eb)

Author SHA1 Message Date
Jacob Barthelmeh 9f3d1f07d2 additional sanity checks 2018-11-15 15:36:51 -07:00
John Safranek b97b237695 Static Analysis Fixes
Ran the clang static analysis and infer and fixed most of the reported
items. There were many that infer found that looked like false
positives.
2018-11-15 13:28:42 -08:00
John Safranek b60ebf6cd7
Merge pull request #113 from JacobBarthelmeh/sftp
add SFTP to README
2018-11-15 09:32:51 -08:00
Jacob Barthelmeh 5c001de65a add SFTP to README 2018-11-13 10:04:47 -07:00
John Safranek fb57323623
Merge pull request #111 from JacobBarthelmeh/testing
default build of wolfSSH for Windows
2018-10-31 11:53:56 -07:00
John Safranek 1a89493bef
Merge pull request #112 from JacobBarthelmeh/sftp
gcc-7 build fall through warning
2018-10-31 11:31:40 -07:00
Jacob Barthelmeh 6c0d053f57 gcc-7 build fall through warning 2018-10-29 15:29:25 -06:00
Jacob Barthelmeh abaa38baf9 default build of wolfSSH for Windows 2018-10-23 14:59:13 -06:00
John Safranek 9eb6d8eb58
Merge pull request #110 from JacobBarthelmeh/sftp
fix for check read return value with sftp
2018-10-10 16:10:16 -07:00
Jacob Barthelmeh a14244d440 fix for check read return value with sftp 2018-10-08 17:45:23 -06:00
JacobBarthelmeh 1524c73438
Merge pull request #107 from ejohnstown/fix-no-inline
Fix disable-inline option.
2018-09-24 09:54:35 -06:00
JacobBarthelmeh cd37ea946f
Merge pull request #106 from ejohnstown/enable-all
Enable All for Configure
2018-09-21 14:49:00 -06:00
John Safranek 3a0da2023c
Merge pull request #105 from JacobBarthelmeh/sftp
free example SFTP client working directory
2018-09-21 10:06:20 -07:00
John Safranek d746c18a13 added the test client flag to the wolfsftp client 2018-09-21 09:41:12 -07:00
John Safranek 16b1e125d3
Merge pull request #103 from JacobBarthelmeh/testing
add function to check for window adjustment and fix SCP file buffer o…
2018-09-21 09:35:06 -07:00
John Safranek bbf818c587 also added test-locking group. tweaked misc.c, misc.h so they played nice with NO_INLINE 2018-09-20 16:19:25 -07:00
John Safranek cf959db741 Grouping test header functions into test-client, test-server, or
test-threading blocks. Adding flags to the examples and testsuite to
enable various test functions.
2018-09-20 16:10:13 -07:00
John Safranek 82fcbc130a Enable All for Configure
1. Add enable options for "all" and "distro". all enables all options.
distro enables all and turns on both shared and static library builds.
2. Updated the commit-tests script to perform a check on enable-all as well.
3. Made a few syntactical changes to commit-tests.
2018-09-20 15:40:16 -07:00
Jacob Barthelmeh dc34b63ce4 free example SFTP client working directory 2018-09-20 14:36:07 -06:00
Jacob Barthelmeh 1ae2bc3330 name change wolfSSH_CheckPeerWindow -> wolfSSH_CheckReceivePending 2018-09-20 14:27:53 -06:00
Jacob Barthelmeh 68e6d8308b add function to check for window adjustment and fix SCP file buffer offset
close file on SCP write fail, and add ioctl for Nucleus

window adjustment check with SFTP and handle multiple adjustment packets

fix for setting return value with Nucleus ioctl
2018-09-20 14:27:53 -06:00
JacobBarthelmeh ba4fae0054
Merge pull request #98 from ejohnstown/fwd
TCP Port Forwarding
2018-09-20 13:39:07 -06:00
Eric Blankenhorn 200b8cb657
Merge pull request #104 from JacobBarthelmeh/sftp-nuc
fixes for Nucleus port
2018-09-20 10:06:49 -05:00
Jacob Barthelmeh 64917a82d1 fixes for Nucleus port 2018-09-19 18:20:37 -06:00
John Safranek 1478f47296 remove an unused global request case we aren't using at this point 2018-09-19 15:42:35 -07:00
John Safranek f58cdee4a6 Removed some supplemental debugging prints from wolfSSH_worker(). 2018-09-19 15:18:35 -07:00
John Safranek 2fbd219b82 1. update the README file with a missing setting on the wolffwd tool
2. spell-check corrections
2018-09-19 15:18:35 -07:00
John Safranek 8a13a829df scan-build fixes
1. Didn't initialize errFd before calling select() in wolffwd.
2. Wasn't checking the accepted appFd in wolffwd.
3. For the test_KDF() unit test, a call to ConvertHexToBin() could succeed and leave eKey NULL, and pass it to memcmp().
2018-09-13 17:19:39 -07:00
John Safranek f8f3d125b6 punctuation correction in configure.ac 2018-09-13 14:16:08 -07:00
John Safranek 3c7c6db8a8 update README with port forwarding info 2018-09-13 12:24:11 -07:00
John Safranek dbd59aea4a TCP/IP Forwarding
1. Removed the "direction" flag from the wolffwd example. Only works in one direction at this point.
2. Added the GPL header to the wolffwd example source.
3. Removed the stray prints from the wolffwd example.
4. wolfFwd example fails out if any of the sockets report failure.
2018-09-12 15:30:18 -07:00
John Safranek 172c5fd749
Merge pull request #102 from JacobBarthelmeh/sftp
break out of "put" loop if at end of file or error
2018-09-11 16:16:34 -07:00
Jacob Barthelmeh 49cd054534 exit "put" loop if at end of file 2018-09-11 16:37:22 -06:00
JacobBarthelmeh b889645008
Merge pull request #101 from ejohnstown/small-fixes
Small Fixes
2018-09-11 15:20:48 -06:00
Chris Conlon 9c9def769b
Merge pull request #100 from JacobBarthelmeh/testing
add default SCP state of no direction set
2018-09-11 15:10:14 -06:00
John Safranek 94626a5a2c Small Fixes
1. fixed bug in DoKexDhGexGroup() where ret was initialized to an error
2. The peer channel ID set during the connect needs to be saved for use later.
2018-09-11 14:01:59 -07:00
Jacob Barthelmeh 89a4c1015e add default SCP state of no direction set 2018-09-11 14:33:06 -06:00
JacobBarthelmeh 772a1ecd57
Merge pull request #99 from ejohnstown/match-fix
Match Fix
2018-09-07 17:36:00 -06:00
John Safranek cf8b597250 Match Fix
When matching ID lists during the KEX Init, the client needs to swap lists.
2018-09-07 15:10:03 -07:00
John Safranek de5b1fbab3
Merge pull request #96 from JacobBarthelmeh/fuzz
sanity checks on arguments
2018-09-07 15:09:22 -07:00
John Safranek cbeb2cf566 TCP/IP Forwarding
1. Fixed an issue with the FD_SET copy.
2. Fixed some memory issues discovered with Valgrind.
2018-09-04 15:17:14 -07:00
Jacob Barthelmeh 634de0dc89 sanity checks on arguments 2018-08-31 16:56:55 -06:00
John Safranek dfbfe8d93f TCP/IP Forwarding
1. Removed an unused data type and unused functions.
2. Do a couple fixes for scan-build.
2018-08-31 14:26:56 -07:00
John Safranek a42075d823 TCP/IP Forwarding
1. Removed some unused macros in the configure.ac script.
2. Added option for enabling TCP/IP Forwarding.
3. Coalesced the option enable checks to one location in the configure script.
4. Removed redundant compile flags from the wolfSSH automake include.
5. Added a check of the BUILD_SCP option to leave out the wolfcsp file as needed.
6. Removed the redundant debug flags from the ax_harden macro since we add them at the configure level.
7. Modified the ax_harden macro to add the flags to AM_CFLAGS rather than CFLAGS.
8. Removed redundant AM_CFLAGS from the include.am that are adding them to their build's CFLAGS.
9. Replaced the have-wolfssl macro with AC_CHECK_LIB.
10. When adding per-target CPPFLAGS, add the AM_CPPFLAGS back in.
11. remove redundant call to wolfSSH_Init() from echoserver
12. Add runtime configuration of the session window size and max packet size.
13. Parse the TCP/IP direct connect flavor of the Channel Open message.
14. Save and release the host and origin addresses.
15. Added an example forwarding tool.
16. Move and rename the FIND_SELF and FIND_PEER constants.
17. Add planned functions ChannelSend, ChannelRead, ChannelExit, worker.
18. Add new function ChannelNext, which returns the next channel in the list.
19. Changed SendBuffered() from static to local so it could be used by the worker.
20. Separated creating a channel and sending an channel open request.
21. Added status code for pending open channel and for received data.
2018-08-31 11:21:42 -07:00
Eric Blankenhorn d7cd20bdb9
Merge pull request #93 from JacobBarthelmeh/sftp
add sftp support for file time attribute
2018-08-21 11:58:02 -05:00
Jacob Barthelmeh bd816106f6 add sftp support for file time attribute 2018-08-20 16:38:17 -06:00
JacobBarthelmeh 20dcc22c01
Merge pull request #92 from ejohnstown/release-fixes
Scan Build Fixes
2018-08-15 13:53:41 -06:00
John Safranek f08628af2b Scan Build Fixes
1. In the echoserver, free the thread context before exiting app on error.
2. In the unit test, when checking the KDF, initialize the sizes to zero
and the pointers to NULL after freeing them.
2018-08-15 12:38:20 -07:00
JacobBarthelmeh ae7531959f
Merge pull request #91 from ejohnstown/next-release
Next Release
2018-08-15 09:39:42 -06:00
John Safranek 226264a5ef Next Release
1. Removed the change log from README.md to ChangeLog.md.
2. Touched the configure and version for next release.
2018-08-14 13:20:08 -07:00