John Safranek
919ed1f944
Optionally compile keygen.c.
2016-10-14 13:16:07 -07:00
John Safranek
b6cda842e8
add function to notify peer of window size adjustment
2016-10-14 12:45:09 -07:00
John Safranek
a69b7fba26
More Tweaks
...
1. Made default window size updatable at configure time.
2. Lowered the default highwater mark by 32k.
3. Removed a parameter name from a couple function protypes.
2016-10-14 12:45:09 -07:00
John Safranek
d9808cec31
tweak the peerWindowSz updating and logging
2016-10-14 12:45:09 -07:00
JacobBarthelmeh
1524047311
Merge pull request #20 from ejohnstown/keygen
...
RSA Private Key Generation Wrapper Function
2016-10-13 15:20:20 -06:00
John Safranek
da4b19524d
RSA Private Key Generation Wrapper Function
...
1. Implemented the RSA key generation wrapper function.
2. Rearrange the unit test code.
3. Added RSA key generation wrapper function to unit test.
4. Removed certificate load from echoserver.
5. Not using certificates, removed the functions and storage.
6. Removed unused certificate files.
7. Renamed certs directory as keys.
8. Removed the example server from the build for now.
9. Created new server key with the RSA key generation function.
10. Add IDs for public keys for keygen use.
11. Whitespace cleanup.
2016-10-13 10:02:03 -07:00
JacobBarthelmeh
00b6383b11
Merge pull request #19 from ejohnstown/fix-warning
...
fix scan-build warning on ConstantCompare
2016-10-07 11:07:06 -06:00
John Safranek
04e361a558
1. fix scan-build warning on ConstantCompare
...
2. fix visibility label typos
2016-10-07 10:04:04 -07:00
JacobBarthelmeh
7952fdf035
Merge pull request #17 from ejohnstown/highwater
...
Transfer Highwater Mark, Session Key Refactoring
2016-10-05 17:07:10 -06:00
John Safranek
569890067a
Added a transfer highwater callback to the echoserver that
...
prints that the highwater mark was hit and doubles the
highwater mark value. It is disabled by default. To use,
when configuring add the CPPFLAG "DEFAULT_HIGHWATER_MARK".
For example, `CPPFLAGS=-DDEFAULT_HIGHWATER_MARK=128`
2016-10-05 14:56:21 -07:00
JacobBarthelmeh
69a6fbccb1
Merge pull request #18 from ejohnstown/wolfCrypt
...
wolfCrypt
2016-10-05 13:26:04 -06:00
John Safranek
b0d318fce0
wolfCrypt Update
...
Include wolfSSL's options.h to echoserver.c. When building wolfSSL
with AES-NI and wolfSSH in debug, the ALIGN16 on the SHA-256
structure is lost in wolfSSH, where the wolfCrypt code is expecting
the parameters to be ALIGN16.
2016-10-05 12:14:05 -07:00
John Safranek
2cf5ad63ac
wolfCrypt
...
1. Add call to wolfCrypt_Init() to wolfSSH_Init().
2. Modify have_wolfssl.m4 to check for wolfCrypt, not wolfSSL.
2016-10-05 10:55:30 -07:00
John Safranek
6561da9ce2
Updates to the data highwater marks for a callback.
2016-10-04 09:55:09 -07:00
John Safranek
7c8801409c
Move the WOLFSSH and WOLFSSH_CTX initializer and free functions from
...
ssh.c to internal.c.
2016-10-04 09:55:09 -07:00
John Safranek
73e4e58795
1. Regroup the session keys into a separate structure.
...
2. Separate sets of keys for client and server.
3. Store generated keys in handshake info record.
4. Copy session keys over when sending and receiving the
New Keys message.
2016-10-04 09:55:09 -07:00
John Safranek
30c4a32611
1. Add accessors for session data high water mark.
...
2. Check transmit and receive against high water mark and log.
2016-10-04 09:55:09 -07:00
dgarske
db57a01613
Merge pull request #16 from ejohnstown/commit-tests
...
Add pre-commit test script
2016-10-04 06:37:43 -07:00
John Safranek
eea065727b
Add pre-commit test scripts like wolfSSL.
2016-10-03 15:52:38 -07:00
dgarske
626708de86
Merge pull request #15 from ejohnstown/errsys
...
err_sys() static analysis issue
2016-08-27 15:46:07 -07:00
John Safranek
c71f4e8948
tweaked the err_sys to follow the updated wolfSSL version
2016-08-27 14:08:53 -07:00
John Safranek
629cb8d160
Copied change to err_sys() from wolfSSL. Cleaned up a static analysis
...
issue. Also added the attribute noreturn to the function since it
doesn't actually return.
2016-08-25 13:15:24 -07:00
dgarske
31b411bbed
Merge pull request #14 from ejohnstown/misc-inline
...
Update misc inline code
2016-08-10 08:56:13 -07:00
John Safranek
2c3d78b4a6
Change misc.c error to warning and exclude the misc.c code from being compiled. Most people include all .c files and by default inlining is allowed, which in turn causes an #error in misc.c and it must be excluded. Since we know its already been properly included there is no reason to throw error here. Instead, show warning and exclude code in .c file.
...
Copied from wolfSSL pull request #521 .
2016-08-09 10:44:33 -07:00
JacobBarthelmeh
1039cb9d43
Merge pull request #13 from ejohnstown/more-cleanup
...
More Cleanup
2016-07-22 10:31:34 -06:00
John Safranek
c8da16cbe8
use the proper memcpy alias for wolfSSH
2016-07-22 09:30:02 -07:00
John Safranek
2e1744265b
more return code checking
2016-07-21 20:07:29 -07:00
Chris Conlon
bc368d01d8
Merge pull request #12 from ejohnstown/missing-files
...
added a couple more missing files to the makefile
2016-07-21 10:06:37 -06:00
John Safranek
f865ad2487
move the primitive data decoders, use them more
2016-07-20 19:57:54 -07:00
John Safranek
45f489d1f3
added a couple more missing files to the makefile
2016-07-20 16:22:22 -07:00
JacobBarthelmeh
f794e43f69
Merge pull request #11 from ejohnstown/gpl-change
...
GPL Update
2016-07-19 15:06:34 -06:00
John Safranek
de31a95dbc
update copyright date on configure.ac
2016-07-19 14:02:50 -07:00
John Safranek
1a278fe713
update copyright dates and licensing to GPLv3
2016-07-19 13:44:02 -07:00
John Safranek
bebe452d12
removed goto from processing the public key authentication
2016-07-19 11:03:37 -07:00
dgarske
e62b09520b
Merge pull request #10 from ejohnstown/multistream
...
Multistream Start
2016-07-19 08:10:37 -07:00
John Safranek
6655f1cdea
bump version
2016-07-18 21:23:39 -07:00
John Safranek
4041ecf408
Updated many functions with better error checking.
2016-07-18 21:21:42 -07:00
John Safranek
1e77d1595b
1. Sending data to a channel needs to use the peer channel ID.
...
2. Added a default peer channel ID for transmits.
3. Refactor the SendChannelData and SendChannelOpenConf functions.
2016-07-18 14:19:20 -07:00
John Safranek
79c8a503c4
1. Added some more return code checking and returning.
...
2. Look up channels in the channel list when processing
channel based messages rather than assuming the first
channel in the list.
2016-07-15 14:51:09 -07:00
John Safranek
1389df80bc
initial multi-channel support
2016-07-14 22:46:06 -07:00
JacobBarthelmeh
20d97b299e
Merge pull request #9 from ejohnstown/fix-userauth
...
Fix User Auth
2016-07-14 20:00:55 -06:00
John Safranek
9ebcd5c44a
fix trying to decrypt messages where the body fits in with the length block
2016-07-14 15:42:23 -07:00
John Safranek
525a8858c5
Add return code when the peer window is too small on a send. Echoserver wasn't properly checking the return code on the stream receive.
2016-07-14 14:47:30 -07:00
John Safranek
a2c5e8e793
React to invalid username with a regular auth failure, nothing fancy. Fancy was causing a crash.
2016-07-14 13:53:23 -07:00
John Safranek
d101f1d537
fix a few stray memory leaks
2016-07-14 12:58:37 -07:00
John Safranek
0994a1816d
fix a couple initialization issues found in scan-build
2016-07-13 23:53:13 -07:00
John Safranek
cf2cb5f67b
deleted extra print statements
2016-07-13 15:11:33 -07:00
John Safranek
4dc3c56a88
fixing RSA public key user auth, failover to password
2016-07-13 15:11:33 -07:00
John Safranek
a1e07e3161
1. Added extra debugging logs to the user authentication.
...
2. Reject invalid user names.
3. Fix the readme with regards to the public key log in testing.
2016-07-13 15:11:33 -07:00
John Safranek
995cf111e8
Merge pull request #8 from ejohnstown/include-fix
...
Update the automake include files to add missing items
2016-07-13 15:07:59 -07:00