John Safranek
157b71be7c
Update wolfSSH_SFTP_Put() and wolfSSH_SFTP_SendWritePacket() for non-blocking.
2019-01-04 10:44:41 -08:00
Jacob Barthelmeh
3f1ebe292c
initial LS nonblocking (needs more work)
2019-01-03 17:15:36 -07:00
John Safranek
2662e43cf1
Fix a couple scan-build warnings.
2019-01-02 15:11:05 -08:00
John Safranek
5c49c3fd46
Changing some spots where we weren't following the pattern of setting
...
the error field of the ssh object and just returning WS_FATAL_ERROR.
Instead of changing all the downstream fucntions from DoReceive(), have
it store the return value into the error register and return WS_FATA_ERROR.
2019-01-02 15:00:02 -08:00
John Safranek
a28bf9902c
Changing some spots where we weren't following the pattern of setting
...
the error field of the ssh object and just returning WS_FATAL_ERROR.
2019-01-02 14:38:22 -08:00
John Safranek
1ff58f0a94
Fixed some of the updated functions to clean themselves up on error,
...
except for would block situations.
2019-01-02 12:42:01 -08:00
Jacob Barthelmeh
887b4fa3ba
adjust read on SFTP get
2019-01-02 13:31:20 -07:00
Jacob Barthelmeh
f0ba3a0849
malloc lstat buffer and rework SFTP send packet type
2019-01-02 11:32:41 -07:00
Jacob Barthelmeh
821b34df23
use buffer for parsing SFTP attributes rather than reads
2019-01-02 10:05:23 -07:00
Jacob Barthelmeh
05f8070fa2
sftp real path non blocking
2019-01-02 09:46:46 -07:00
John Safranek
554fbda213
Non-blocking SFTP
...
1. Updated wolfSSH_SFTP_ClearState() with missing states.
2018-12-28 14:45:14 -08:00
John Safranek
b4eff0ce7c
Non-blocking SFTP
...
1. Updated wolfSSH_SFTP_GetHandle() using the new state machine method.
2018-12-28 14:38:51 -08:00
John Safranek
6fd588f208
Non-blocking SFTP
...
1. Updated wolfSSH_SFTP_Close() using the new state machine method.
2018-12-28 10:33:00 -08:00
Jacob Barthelmeh
c06bb7db56
modify wolfSSH_stream_send behavior with non blocking want write case
2018-12-28 11:02:25 -07:00
John Safranek
af32ee760f
Fix failure in initializing the LSTAT state machine.
2018-12-28 09:57:51 -08:00
John Safranek
bf89f60f14
scan-build fixes
2018-12-27 17:53:05 -08:00
John Safranek
41beb69794
Non-blocking SFTP
...
1. Updated wolfSSH_SFTP_SendReadPacket() using the new state machine method.
2018-12-27 17:25:43 -08:00
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