Commit Graph

628 Commits (3b2ea810c037e1dd6f3a002ea5aae8a2870a484f)

Author SHA1 Message Date
JacobBarthelmeh fc23bb9a34
Merge pull request #122 from ejohnstown/sftp-win
SFTP for Windows
2018-12-05 11:59:04 -07:00
John Safranek feb283b5c5 Updated wolfSCP and wolfSFTP to use the new syntax for wstrncat. 2018-12-03 16:27:45 -08:00
John Safranek d8797b07f8 Add the function wstrcat() which acts like strncat, but adds an extra
check for space in the destination and will fail instead of truncating
the string.
2018-12-03 16:27:45 -08:00
Jacob Barthelmeh 39ab2abf66 add sftp client VS project 2018-12-03 16:27:45 -08:00
John Safranek b57e825381 wolfSFTP for Windows
1. Clean up some type size warnings.
2. Fix the wrappers for FileRead() and FileWrite(). The Overlapped
struct is a little funky to use.
2018-12-03 16:27:45 -08:00
John Safranek 8f87568a91 Add wolfsftp.c to the wolfssh library build. 2018-12-03 16:27:45 -08:00
John Safranek d30be12a30 Move the kludge #define to hush the windows builds on the string
functions to settings.h.
2018-12-03 16:27:45 -08:00
John Safranek 4f9311890d wolfSFTP for Windows
1. Added wrappers for FileRead and FileWrite to work with Win32.
2018-12-03 16:27:45 -08:00
John Safranek 6d8e55eb8c Typecast some strlen return values to the type they are assigned to. 2018-12-03 16:27:45 -08:00
John Safranek 9e16f6ec71 Clean up actually building on VS2012. 2018-12-03 16:27:45 -08:00
John Safranek 35938eb1a2 wolfSFTP for Windows
1. Updated file functions to be usable by Win32.
2018-12-03 16:27:45 -08:00
John Safranek 9b3af16ac2 wolfSFTP for Windows
1. Add a function mapping block to port.h for Windows build file routines.
2018-12-03 16:27:45 -08:00
John Safranek 7f2663d28b
Merge pull request #121 from JacobBarthelmeh/testing
use a dynamic buffer for SCP base path with Nucleus port
2018-11-30 16:31:10 -08:00
Jacob Barthelmeh c033c6e979 use a dynamic buffer for SCP base path with Nucleus port 2018-11-30 16:58:48 -07:00
JacobBarthelmeh 26d9140507
Merge pull request #118 from ejohnstown/nonblocking-fix
Non-blocking Fix
2018-11-21 15:54:00 -07:00
John Safranek dcd924577e Non-blocking fix
When sending data, if there is pending data, try to send it first before
setting up the next message.
2018-11-21 11:42:50 -08:00
John Safranek d2a1c2ab1b Non-blocking fix
1. Added a non-blocking socket option to the client.
2. Added a non-blocking socket option to the server.
3. Added support for select to the test header.
4. Updated the usage strings so they are formatted the same.
2018-11-21 11:38:33 -08:00
John Safranek f414e7721a Non-blocking fix
1. If data is still in the buffer, try sending it again.
2018-11-21 11:38:33 -08:00
JacobBarthelmeh 4abdd1200b
Merge pull request #120 from ejohnstown/funcnamechange
Function Name Change
2018-11-21 10:03:07 -07:00
John Safranek 79646f93d1 Function Name Change
wolfSSL and wolfSSH both have a function named SendBuffered() and they
are both set to local visibility. There is at least one build
configuration where both versions of the function are visible and the
compile fails. Changing the name in wolfSSH to add the pseudonamespace
prefix wolfSSH_, and also changed the name of the function to
SendPacket() since it is used with two other functions with Packet in
the name.
2018-11-20 16:35:53 -08:00
JacobBarthelmeh 3d42337b0c
Merge pull request #117 from ejohnstown/dot-release
Touched for .1 release
2018-11-15 17:27:35 -07:00
John Safranek 97e5036b1c Touched for .1 release. 2018-11-15 16:21:52 -08:00
John Safranek 037e8f9839
Merge pull request #116 from JacobBarthelmeh/fuzz
sanity check on buffer length
2018-11-15 16:03:55 -08:00
Jacob Barthelmeh bdae414009 sanity check on buffer length 2018-11-15 16:28:22 -07:00
John Safranek 3b276aaae9
Merge pull request #115 from JacobBarthelmeh/fuzz
additional sanity checks
2018-11-15 14:44:57 -08:00
JacobBarthelmeh 3b629091f7
Merge pull request #114 from ejohnstown/static-fixes
Static Analysis Fixes
2018-11-15 15:44:03 -07:00
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