John Safranek
91ca3ee43b
Fix a mix up between two prime names in a lookup table.
2020-10-14 15:23:04 -07:00
John Safranek
740d47d0b7
More Options
...
1. Wrapped the user keys in client.c with guards.
2. Added the ECC-521 key for hansel.
3. Touched up the loads of the keys with guards.
2020-10-14 14:28:26 -07:00
John Safranek
4d5ce88cc9
More Options
...
Wrapped more items with guards to disable them if not usable.
2020-10-13 17:42:02 -07:00
John Safranek
b63d3c4914
More Options
...
Added many more guards for algorithms that may be disabled in wolfCrypt
including DH, AES-GCM-CTR-CBC, SHA1, ECC, RSA, etc.
2020-10-13 17:42:02 -07:00
John Safranek
6849e6bd09
Merge pull request #292 from kojo1/mqx
...
minor fix for MQX
2020-10-13 13:42:31 -07:00
Takashi Kojo
69791e1ff2
moving WOLFSSH_TEST guard into test.h
2020-10-11 11:54:39 +09:00
Takashi Kojo
28b8e745b1
fix for MQX
2020-10-11 06:53:46 +09:00
Jacob Barthelmeh
a83a0c62f5
add special case for real path and refactor clean_path
2020-10-09 13:27:57 -06:00
JacobBarthelmeh
b2d2edc6d9
Merge pull request #290 from ejohnstown/user-auth-bounds
...
User Authentication Bounds Checks
2020-10-07 17:15:57 -06:00
John Safranek
0e065459bc
User Authentication Bounds Checks
...
Added some additional bounds checking to some of the parameters in the
public key user auth messages. There was a chance that an out of bounds
buffer read could happen.
2020-10-07 15:46:23 -07:00
John Safranek
06ea6eb2d0
Merge pull request #289 from JacobBarthelmeh/interop
...
add peek when waiting for data
2020-10-01 12:05:06 -07:00
John Safranek
b7a6a51f4f
Merge pull request #284 from JacobBarthelmeh/sftp
...
add example timeout to sftp example
2020-10-01 11:48:20 -07:00
Jacob Barthelmeh
000b8544c6
add peek when waiting for data
2020-09-30 13:22:07 -06:00
Jacob Barthelmeh
a4b2c693fe
use word32 type with timeout example
2020-09-30 11:45:33 -06:00
JacobBarthelmeh
0b1e0345c4
Merge pull request #288 from ejohnstown/ecc-keys
...
ECC Key Reading
2020-09-29 10:04:52 -06:00
John Safranek
b44ba5b1e3
Remove redundant printf() from testing.
2020-09-29 08:54:23 -07:00
John Safranek
82c69b9758
Keys
...
1. Add P-384 and P-521 sample user public and private keys.
2. Add DER format versions of the sample user private keys.
3. Add the sample user public keys for P-256 and RSA-2048.
4. Fix a bug where the user authentication signing would fail if using an ECDSA curve other than P-256.
2020-09-25 16:59:44 -07:00
John Safranek
a269b1e843
ECC Key Reading
...
Update wolfSSH_ReadKey_buffer() to handle P-384 and P-521 when reading a key from a buffer.
2020-09-25 14:45:12 -07:00
JacobBarthelmeh
962540fd4e
Merge pull request #286 from ejohnstown/include-guard
...
Include File Guards
2020-09-25 10:53:47 -06:00
John Safranek
1be4042711
Change examples' header file including guard from pragma-once to ifndef-define.
2020-09-24 16:50:35 -07:00
Jacob Barthelmeh
df8de608d6
close local file on error case
2020-09-24 11:06:02 -06:00
John Safranek
6cbc0d855e
Change file including guard from pragma-once to ifndef-define.
2020-09-24 09:06:10 -07:00
John Safranek
c37e54b2bf
Merge pull request #285 from JacobBarthelmeh/auth
...
add debug message
2020-09-24 08:45:01 -07:00
Jacob Barthelmeh
496754c12f
add debug message
2020-09-23 11:36:45 -06:00
Jacob Barthelmeh
69b91a3a2e
adjust size of strncpy and time limit
2020-09-17 11:16:22 -06:00
Jacob Barthelmeh
f8b092c5b4
add example timeout to sftp example
2020-09-17 10:43:38 -06: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