John Safranek
b841fdb33a
Non-blocking SFTP
...
1. Updated wolfSSH_SFTP_LSTAT() using the new state machine method.
2018-12-27 16:15:41 -08:00
Jacob Barthelmeh
db09f672f2
add -N flag to SFTP client
2018-12-27 16:15:15 -07:00
Jacob Barthelmeh
915b383cd3
touch up to SFTP_GetHeader for nonblocking
2018-12-27 11:22:21 -07:00
Jacob Barthelmeh
dbbe886efb
add wolfSSH_SFTP_ClearState function for free'ing states
2018-12-27 10:00:43 -07:00
John Safranek
42f116bf1d
Non-blocking SFTP
...
1. Move the non-blocking state types to wolfsftp.c.
2. Updated wolfSSH_SFTP_Open() to use the non-blocking state machine.
3. Updated wolfSSH_SFTP_Get() using the new state machine method.
2018-12-26 16:28:30 -08:00
John Safranek
4dc799ebeb
Non-blocking SFTP
...
Rewrite wolfSSH_SFTP_Get() to be reenterant with its own state machine.
2018-12-21 15:58:06 -08:00
JacobBarthelmeh
2e58d95727
Merge pull request #130 from ejohnstown/inline-fix
...
Inline Fix
2018-12-14 15:16:37 -07:00
John Safranek
8c8e1191a5
Merge pull request #129 from JacobBarthelmeh/testing
...
check on mpint shared secret
2018-12-14 14:04:27 -08:00
John Safranek
2e92d9c1ee
Add check if building echoserver to test.h so the static functions aren't included when building not-inline.
2018-12-14 13:58:47 -08:00
Jacob Barthelmeh
5b917ef1c6
add log.h include and fix typo
2018-12-14 14:54:38 -07:00
Jacob Barthelmeh
d34900b6ae
refactor code and add more CreateMpint calls
2018-12-14 14:01:20 -07:00
John Safranek
fb28cdab48
Merge pull request #128 from JacobBarthelmeh/fuzz
...
sanity check that WOLFSSH struct has handshake info
2018-12-14 10:27:52 -08:00
Jacob Barthelmeh
f0f286fd41
check on mpint shared secret
2018-12-13 15:55:51 -07:00
John Safranek
98fd1d7200
Merge pull request #125 from JacobBarthelmeh/testing
...
fix return check on ReadFile and WriteFile
2018-12-12 14:10:08 -08:00
Jacob Barthelmeh
86344c7e68
make check condition exact
2018-12-12 14:58:22 -07:00
Chris Conlon
e313e66a1e
Merge pull request #127 from JacobBarthelmeh/sftp
...
change check in external test script
2018-12-12 12:42:27 -08:00
Chris Conlon
8aa9f6103a
Merge pull request #126 from JacobBarthelmeh/examples
...
use int type for getting example args
2018-12-12 12:41:20 -08:00
Jacob Barthelmeh
7911c70349
sanity check that WOLFSSH struct has handshake info
2018-12-12 13:34:18 -07:00
Jacob Barthelmeh
7b5ec6924f
change check in external test script
2018-12-11 17:31:37 -07:00
Jacob Barthelmeh
fc92e85853
use int type for getting example args
2018-12-11 17:01:56 -07:00
Jacob Barthelmeh
10c888b855
fix return check on ReadFile and WriteFile
2018-12-11 16:33:10 -07:00
John Safranek
3994d0f538
Merge pull request #123 from JacobBarthelmeh/testing
...
remove test.h fcntl from build with nucleus port
2018-12-05 16:43:00 -08:00
Jacob Barthelmeh
b6e59fb3cd
remove test.h fcntl from build with nucleus port
2018-12-05 12:00:56 -07:00
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