Commit Graph

998 Commits (14f9c4e63fbded8f1e42137491801c949333ed37)

Author SHA1 Message Date
John Safranek c6145a452c
Initialize the buffer for the path when receving a ReadDir message. 2019-10-29 15:58:08 -07:00
John Safranek e7e90fc0ce
API Test on Windows needed the echoserver source and the NO_MAIN_DRIVER flag. 2019-10-29 15:52:33 -07:00
John Safranek 70255b5b34
When disabling ECDHE, DHE wasn't working as expected. It was a bug with storing the group domain parameters for use in the key agreement. 2019-10-29 14:53:39 -07:00
John Safranek 1cc53ef330 removed a dead assign from the echoserver 2019-10-29 14:51:55 -07:00
John Safranek 2346585c99
Merge pull request #209 from JacobBarthelmeh/sftp-nuc
adjust nucleus filesystem after adding in nonblocking sftp support
2019-10-28 08:16:12 -07:00
John Safranek 56be98ae5e
Merge pull request #210 from JacobBarthelmeh/sftp
adjust example sftp client chmod command parsing
2019-10-28 08:15:22 -07:00
JacobBarthelmeh a5442ea338
Merge pull request #204 from cconlon/mqx
SFTP port to MQX 4.2 (MQX/MFS/RTCS)
2019-10-25 16:24:35 -06:00
Jacob Barthelmeh cbd166a43d be more lenient on CR with protocol exchange 2019-10-25 16:14:00 -06:00
JacobBarthelmeh de794125f0
Merge pull request #212 from ejohnstown/fix-error-code
Fix Error Code
2019-10-25 15:15:24 -06:00
John Safranek 31379b2ed7
Fix the error code for sending data on a channel that hasn't confirmed open yet to be an error code rather than a dummy value. 2019-10-25 14:01:10 -07:00
Chris Conlon 7892aad690 check sz before WSTRNCMP calls 2019-10-25 14:56:08 -06:00
Chris Conlon 73a0afaba1 fix compiler warnings with IAR-EWARM 7.50.2 2019-10-25 14:56:08 -06:00
Chris Conlon 8e989810b9 SFTP port to MQX 4.2 2019-10-25 14:56:08 -06:00
Chris Conlon 9e5adc0697 fix loop bound in wolfSSH_oct2dec 2019-10-25 14:54:42 -06:00
JacobBarthelmeh f0c93bdd08
Merge pull request #206 from ejohnstown/auto-test
Automatic Client Test
2019-10-25 14:11:27 -06:00
John Safranek 8328ad57a6
Added an error message when the wolfsftp client fails to copy a file on autopilot. Prints out the whole remote file name. Deleted a now unused constant. 2019-10-25 13:07:18 -07:00
Jacob Barthelmeh ca1f59d7fc adjust example sftp client chmod command parsing 2019-10-25 14:00:37 -06:00
JacobBarthelmeh 24c6130e31
Merge pull request #208 from ejohnstown/pw-discon
Password Failure Disconnection
2019-10-25 13:37:05 -06:00
John Safranek c07a743c1a
Autopilot SFTP Test
1. Added some command line options to the wolfSFTP client to show how to
use a hardcoded automatic file transfer rather than using the command
shell. On top of that, added a script to get and put some sample files.
It was built into the wolfSFTP client to allow for using all forms of
authentication as well as using the command line password.
2. Update wolfSSH_SFTP_STAT() with clearing the error register if it is WANT_READ.
2019-10-25 10:51:36 -07:00
Jacob Barthelmeh caf710e0ba adjust nucleus filesystem after adding in nonblocking sftp support 2019-10-25 10:27:23 -06:00
John Safranek 06699c82dd
Merge pull request #207 from JacobBarthelmeh/valgrind
add hmac initialization and add sanity check on macsz
2019-10-24 11:41:57 -07:00
John Safranek 8d2900cbab
1. Reflowed some whitespace.
2. Removed a redundant function that was an artifact of the rebase.
3. Added a reset of the retry count.
2019-10-24 11:10:28 -07:00
Takashi Kojo 97c1324095 fix 2019-10-24 10:55:05 -07:00
Takashi Kojo 6c979231c7 option for no SendUserAuthFailure on USERAUTH_REGENCTED 2019-10-24 10:55:05 -07:00
Takashi Kojo 55c0352a76 sendDisconnect at password reject, example code in echoserver 2019-10-24 10:55:05 -07:00
John Safranek 1063b60b66
Merge pull request #203 from JacobBarthelmeh/testing
fix for pscp interop
2019-10-24 10:39:56 -07:00
JacobBarthelmeh d1a82da642 add hmac initialization and add sanity check on macsz 2019-10-24 08:54:29 -07:00
JacobBarthelmeh e0562d2337
Merge pull request #205 from ejohnstown/maint-error
Error Code Maintenance
2019-10-24 09:14:04 -06:00
Jacob Barthelmeh d0dcb241a6 fix for pscp interop 2019-10-23 11:27:22 -06:00
JacobBarthelmeh 74e42d582b
Merge pull request #201 from ejohnstown/shutdown-fix
Echoserver Maintenance
2019-10-10 15:54:31 -06:00
John Safranek e69eada485 In the wolfsftp file, change all the logging statements to log to WS_LOG_SFTP. 2019-10-10 14:42:49 -07:00
John Safranek 216008133f Maintenance
1. Add new error WS_ERROR to replace WS_FATAL_ERROR.
2. Added error WS_SSH_NULL_E and WS_SSH_CTX_NULL_E for the error to
string functions for when ssh is actually NULL.
2019-10-10 11:45:15 -07:00
John Safranek 744a67e53b
Echoserver Maintenance
1. When printing server worker errors, print out the error string on the
stored error code, not the return value.
2. If the error is a socket error, don't try to send a shutdown message
to the peer.
3. Update the echoserver to close the connection cleanly when the SFTP
peer exits.
4. Added a function to check a WOLFSSL_CHANNEL if it is in eof.
2019-10-10 10:57:39 -07:00
John Safranek 5fe810aa96
Merge pull request #200 from JacobBarthelmeh/testing
add include of wolfssl types.h for XMALLOC and add debug message
2019-10-10 10:03:13 -07:00
Jacob Barthelmeh aebe908223 set host/user/password in test to be from env 2019-10-09 16:58:05 -06:00
Jacob Barthelmeh 377073d684 add include of wolfssl types.h for XMALLOC and add debug message 2019-10-07 15:38:11 -06:00
JacobBarthelmeh 4a246abc76
Merge pull request #197 from ejohnstown/maintenance
Maintenance
2019-09-19 22:36:48 -06:00
John Safranek 1ad4ea3232 Fix off by one error in SCP command processing. 2019-09-13 09:52:05 -07:00
John Safranek 915c1bced9 Add a public API for the SendDisconnect() function. 2019-09-12 16:13:47 -07:00
John Safranek 66ff87c0a8 Remove a confusing log entry with a comment. 2019-09-12 14:04:10 -07:00
John Safranek 365be7d63c Maintenance
1. Clean up a few compiler warnings.
2. Between Windows, MacOS, and Linux, the %llu printf tag varies
slightly, add a typecast of the word64 to unsigned long long to hush the
compiler warning.
2019-09-11 14:10:16 -07:00
John Safranek 208d76730c
Merge pull request #195 from kojo1/GlobalReq2
MSGID_REQUEST_FAILURE to response MSGID_GLOBAL_REQUEST
2019-09-11 12:51:35 -07:00
John Safranek acd80a1976 Maintenance
When DoReceive starts, it saves a copy of the current peerMacSz. After
the call to DoPacket, it adds the peerMacSz size to the input buffer
index, then calls ShrinkBuffer(). Because it was adding the session
stored peerMacSz, and not the local copy, the input buffer was appearing
to be overrun in one packet case, NEW_KEYS. This message updates the
session's peerMacSz, but it's mac size is still the old size.
2019-09-11 10:54:59 -07:00
John Safranek f59ea6f1ac Maintenance
Fix a typo in a string.
2019-09-11 10:54:26 -07:00
Takashi Kojo be799ed412 success param as a boolean 2019-09-11 10:44:09 +09:00
Takashi Kojo 8e06fd2dcf Merge SendRequestSuccess/Failure 2019-09-10 09:30:02 +09:00
Takashi Kojo 968c1dd30c MSGID_REQUEST_FAILURE to response MSGID_GLOBAL_REQUEST 2019-09-08 07:27:32 +09:00
JacobBarthelmeh e3f8d81e98
Merge pull request #194 from ejohnstown/aes-bug
AES Bug Fix
2019-09-06 16:08:23 -06:00
John Safranek ff704663dd Fix a bug with the AES support. AES keys weren't set if only AES-CBC or
AES-CTR were enabled. Changed the AND comparison to OR.
2019-09-06 14:09:56 -07:00
JacobBarthelmeh 018ddbaf31
Merge pull request #193 from cconlon/cygwinfixes
Fixes for Cygwin build
2019-08-30 14:34:21 -06:00