Commit Graph

998 Commits (14f9c4e63fbded8f1e42137491801c949333ed37)

Author SHA1 Message Date
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
John Safranek bd4ebe1a1d
Add check of return value of chdir(). 2020-07-08 15:23:26 -07:00
John Safranek fd0711d5c7
update readme for the shell support 2020-07-08 14:59:14 -07:00
John Safranek 9c4739e3b2
Shell Worker
1. Add the echoserver shell support as a configure option.
2. Added some header and function checks to configure.
3. Use the new header and function checks to select includes
   in the echoserver.
2020-07-08 13:40:00 -07:00
John Safranek 49bd9ad518
Shell Worker
1. Fixed issue with the testsuite failing when the shell is enabled.
2. Added option to echoserver to force the echo behavior instead of
the shell when shell is enabled.
2020-07-08 12:02:27 -07:00
John Safranek eda6c82114
Fix a typo in the configure file wrt the description of the pty option. 2020-07-08 12:01:51 -07:00
John Safranek 18ec6d927c
Shell Worker
Add customer contributed code to the echoserver for handling spawning a shell.
2020-07-08 12:00:32 -07:00
JacobBarthelmeh 8577ae147a
Merge pull request #266 from ejohnstown/db
Dropbear Interoperation Improvement
2020-07-08 09:49:22 -06:00
John Safranek 810c1459dc
Dropbear Interoperation Improvement
1. Added checking to see if the client's DH Init message is a guess or not and
if not, skip it if a kex message follows.
2. Added some strings for some other KEX methods.
2020-07-06 11:38:49 -07:00
Takashi Kojo d2eed573a8 project for EWARM 7.8 2020-07-06 15:52:44 +09:00
Takashi Kojo 2b300974ad sample user_settings.h 2020-07-04 06:23:26 +09:00
Takashi Kojo 84e3cfdeb8 EWARM sample project 2020-07-04 06:21:46 +09:00
Takashi Kojo c06a8e5c6a log to stdout by printf 2020-07-03 18:32:57 +09:00
John Safranek a4c1cb460b
Merge pull request #262 from JacobBarthelmeh/fuzz
initialize list values
2020-07-02 15:02:33 -07:00
Jacob Barthelmeh f94fe4f5a6 initialize list values 2020-07-01 17:28:14 -06:00
JacobBarthelmeh 40b079e284
Merge pull request #261 from ejohnstown/fix-oob
RSA OOB Read
2020-06-10 10:21:00 -06:00
John Safranek 765133acf2
RSA OOB Read
Added a check of the length of the RSA signature before verifying it. The
signature's length needs to be at least 2 bytes as the wolfCrypt padding
check assumes it is at least 2 bytes long. (ZD10358)
2020-05-29 14:16:03 -07:00
JacobBarthelmeh 6827dd6aa3
Merge pull request #259 from ejohnstown/auth-none
Auth Type None
2020-05-29 10:25:21 -06:00
JacobBarthelmeh 67b32ab56a
Merge pull request #260 from ejohnstown/config-uru
Revert Libool Config
2020-05-29 09:14:50 -06:00
John Safranek 8b8002f746
Removed an initialization of AR_FLAGS and let the libtool version happen.
This makes Ubuntu builds recreatable.
2020-05-28 15:32:48 -07:00
John Safranek df74449ea1
Auth Type None
1. Added a compile time option to allow None as an authentication type, mainly
for testing.
2. Added a couple updates for VxWorks builds.
2020-05-28 15:15:38 -07:00
John Safranek 9ae1ad1e08
Merge pull request #258 from JacobBarthelmeh/memory
add free of buffer to GetStringAlloc
2020-05-22 16:19:22 -07:00
Jacob Barthelmeh 9e4cb15135 add free of buffer to GetStringAlloc 2020-05-22 10:40:15 -06:00
Chris Conlon 27f5be3db7
Merge pull request #255 from ejohnstown/discon
SCP Disconnect
2020-05-08 16:44:08 -06:00
JacobBarthelmeh 322b80486a
Merge pull request #257 from ejohnstown/fuzz-fix
Fuzz Test Fix
2020-05-08 12:02:20 -06:00
John Safranek fde4640e88 Fuzz Test Fix
Fixed an issue where a too large GEX prime group size would cause problems
generating the shared secret.
1. Moved the #defines for setting the default DH min/preferred/max values
to internal.h.
2. Based the DH e value on the DH max size.
3. Check that the received prime group size is not greater than the max.
2020-05-08 10:04:14 -07:00