Commit Graph

873 Commits (6cbc0d855e0e1a73820b0fc2e7a078044872d00b)

Author SHA1 Message Date
John Safranek 6cbc0d855e
Change file including guard from pragma-once to ifndef-define. 2020-09-24 09:06:10 -07:00
JacobBarthelmeh 4dad28da55
Merge pull request #280 from ejohnstown/fix-id-list
Fix ID List
2020-09-11 11:41:51 -06:00
JacobBarthelmeh a3dd039224
Merge pull request #283 from ejohnstown/hmac-free
HMAC Free
2020-09-08 15:21:16 -06:00
JacobBarthelmeh c4578da7a2
Merge pull request #282 from ejohnstown/optional-build
Optional Builds
2020-09-08 15:15:22 -06:00
JacobBarthelmeh a859ca4184
Merge pull request #281 from ejohnstown/fix-mem
Fix Memory
2020-09-08 14:42:31 -06:00
John Safranek cacea588b5
Add calls to wc_HmacFree(). Normally, HMAC isn't allocating resources.
This is future proofing when using wolfSSH with async crypto.
2020-09-08 10:22:32 -07:00
John Safranek 9fced1fe7d
Optional DH
1. If DH is disabled in the wolfCrypt build, the DH related code
   in wolfSSH shall be disabled.
2020-09-08 09:48:40 -07:00
John Safranek 39f30e25a4
Optional RSA
1. If RSA is disabled in the wolfCrypt build, the RSA related code
   in wolfSSH shall be disabled.
2. Examples will force themselves to use ECC if RSA is disabled.
2020-09-04 15:28:25 -07:00
John Safranek 487bcef2cc
Fix Memory
1. A couple places weren't passing the correct heap pointer to free.
   Normally this was ignored in the build because the WMALLOC macro left
   them out. Found using wolfCrypt memory logging.
2. Replaced the call to strdup() with wstrdup() that takes a heap and
   type parameter so sit may allocate a buffer with WMALLOC() and be
   freed correctly by WFREE().
3. Tweaked the client to use a preallocated buffer for the private key
   rather than letting ReadKey allocate one. (Another WFREE() heap/type
   issue.)
2020-09-02 12:11:24 -07:00
John Safranek 21451a9243
Fix ID List
1. Increase the size of the processed ID list from the peer from 8 to 16. (ZD 9820)
2020-09-02 11:49:06 -07:00
JacobBarthelmeh 45048426e0
Merge pull request #277 from ejohnstown/release-1.4.5
Release 1.4.5
2020-08-31 13:13:57 -06:00
John Safranek 132a0a52f6
Clean up a couple issues where building the code with a C++ reported build errors.
1. Typecasting the return from malloc.
2. strncpy() checking.
2020-08-31 09:31:47 -07:00
John Safranek 4b021fcfa0
Release v1.4.5
1. Update changelog and readme.
2. Update configure.ac.
2020-08-28 16:34:21 -07:00
John Safranek 8c719f5f57
Merge pull request #274 from JacobBarthelmeh/sftp
fix for non blocking interop with winscp
2020-08-27 17:09:13 -07:00
JacobBarthelmeh 849797a398 handle dangling directory opens 2020-08-27 14:33:23 -07:00
Jacob Barthelmeh f380c4f653 add check for WS_WINDOW_FULL error 2020-08-27 13:49:48 -06:00
John Safranek e052108d0c
Merge pull request #271 from JacobBarthelmeh/scp
add callback and example for no file system with SCP
2020-08-27 09:23:17 -07:00
JacobBarthelmeh 12f86ea267
Merge pull request #276 from ejohnstown/send-fix
SendChannel fix
2020-08-27 10:13:51 -06:00
John Safranek ede1f01752
SendChannel fix
When changing the functions SendChannelData() and
SendChannelAdjustWindow() to use the self channel ID instead of the peer
channel ID, forgot to update a couple instances. The test case at the
time had matching ID numbers for self and peer and happened to work.
2020-08-26 14:56:32 -07:00
Jacob Barthelmeh 76bdcd9438 add error out when receiving a file larger than the buffer 2020-08-26 15:14:54 -06:00
Jacob Barthelmeh 64d8d21209 remove accessing WS_SFTP_BUFFER directly 2020-08-26 13:33:23 -06:00
John Safranek e5c90b31e1
Merge pull request #273 from JacobBarthelmeh/testing
graceful shutdown with scp interop
2020-08-26 10:28:23 -07:00
Jacob Barthelmeh 04511bafa6 add guard on file system use in example client 2020-08-26 10:38:36 -06:00
Jacob Barthelmeh 9a8b9e72c9 adjust check for :/ and check on compare of file name 2020-08-26 10:22:56 -06:00
Jacob Barthelmeh 44d18953ed allow scp to '/' and increase file buffer in example server 2020-08-26 10:22:56 -06:00
Jacob Barthelmeh c2a2c03095 fix check on file size 2020-08-26 10:22:56 -06:00
Jacob Barthelmeh 9a83d7998a add status callback to SCP no filesystem 2020-08-26 10:22:56 -06:00
Jacob Barthelmeh 649a523b35 sanity check for file name size and typo fix from review 2020-08-26 10:22:56 -06:00
Jacob Barthelmeh 1a7a80544d make shutdown error message unique to client used 2020-08-26 10:22:56 -06:00
Jacob Barthelmeh 217a7d6520 add callback and example for no file system with SCP 2020-08-26 10:22:56 -06:00
Chris Conlon 728a6c2e73
Merge pull request #275 from ejohnstown/update-ecc
ECC Update for wolfSSL v4.5.0
2020-08-25 11:17:08 -06:00
John Safranek 7aedc31045
Add comment block to internal.c to start listing all the flags used in the file. 2020-08-24 09:37:15 -07:00
John Safranek 4055d91c11
ECC Update for wolfSSL v4.5.0
wolfSSL v4.5.0 introduced a new function, `wc_ecc_set_rng()`, which is
present when ECC_TIMING_RESISTANCE is enabled. Added a check to the
configure script for that function, and disable calls to the function
if it isn't present. This allows wolfSSH to build against older
versions of wolfSSL.
2020-08-21 16:57:43 -07:00
JacobBarthelmeh a81c3f6a6e
Merge pull request #269 from ejohnstown/agent
Agent
2020-08-21 16:21:27 -06:00
John Safranek 5a4e022337
Added a note about the user accounts used by the echoserver to the readme. 2020-08-21 14:48:49 -07:00
Jacob Barthelmeh 03fac18efd graceful shutdown with scp interop 2020-08-19 10:55:45 -06:00
Jacob Barthelmeh bc6a51888c fix for non blocking interop with winscp 2020-08-18 15:23:44 -06:00
John Safranek bfa3d5717c
SSH-AGENT Touchup
1. Add function to request the channel ID for the last message received.
2. Changed the send channel functions to use the self channel ID rather
   than the peer's channel ID.
3. Modified client and echoserver to use the channel ID for the agent
   to send messages.
4. Modify client to receive the entire message from the agent before
   trying to relay it to the peer.
2020-07-30 14:00:28 -07:00
John Safranek 95ebbe9e59
Merge pull request #270 from JacobBarthelmeh/fuzz
add sanity check on amount requested to be sent
2020-07-22 15:45:51 -07:00
John Safranek 2be3f15106
Remove the select.h header from examples if autoconf cannot find it. 2020-07-22 15:25:51 -07:00
John Safranek 2bf3d5bd87
SSH-AGENT (peer review)
1. Cleanup redundant includes.
2. Add comments to the Read Key function pair.
3. Remove my name as an example user.
4. Change ECC sig build arrays to use macro for size rather than
   bare number.
5. Remove empty if state for agent.
6. Added a couple needed NULL checks on allocs for the agent.
7. If unable to create an agent object on connect, disable agent use.
2020-07-22 14:48:45 -07:00
Jacob Barthelmeh ec6e7463d2 add sanity check on amount requested to be sent 2020-07-20 23:11:59 -06:00
John Safranek c552af214e
SSH-AGENT
1. Replace strsep() with strtok_r() for portability with Win32.
2. Check return code from fopen as well as the provided fd.
3. Remove a redundant null check when using the agent to sign.
2020-07-19 17:31:45 -07:00
John Safranek 365d1fd8ea
SSH-AGENT
1. Added option to client to load a public key.
2. Added function ReadKey to load a key from a buffer or from a file
   and store it. Utility for the client.
2020-07-17 14:54:36 -07:00
John Safranek 636cd81d32
SSH-AGENT
1. Example client should check the authType passed into the function,
   not the type stored in the authData.
2. Restore the hansel keys to example client.
3. Add user ECC option to the example client for selecting
   hansel's RSA or ECC key.
4. Restore the ordering of public key and password in
   SendUserAuthRequest().
2020-07-15 09:30:41 -07:00
John Safranek 98c9c853dd
When removing an accept state, didn't take the state ID out
or skip it. Handshake would then stall with non-blocking
sockets. Cleaned up the state issue.
2020-07-15 09:30:23 -07:00
John Safranek 1250e1f9d8
SSH-AGENT
1. Added the agent support to the configure.ac script.
2. Updated the gitignore file to ignore any stamp-h file.
3. Changed to use the parsing functions and to make the parsing functions
   local.
4. Updates to multichannel.
5. Add -lutil only if needed.
6. Add configure checks for some headers that change based on target OS.
7. Bump version.
8. Test doesn't have real account or real key so agent doesn't test well.
2020-07-15 09:29:49 -07:00
Chris Conlon 5949cd32de
Merge pull request #265 from kojo1/ewarm
IAR Ewarm sample project
2020-07-13 17:32:11 -06:00
JacobBarthelmeh 8621e757bb
Merge pull request #267 from ejohnstown/shell-worker
Shell Worker
2020-07-13 16:26:54 -06:00
John Safranek a996d1e1c2
Clean up some scan-build complaints. 2020-07-09 09:33:30 -07:00