Commit Graph

766 Commits (257e885cc8b31c92485470e3b97c8550b1f7b4c4)

Author SHA1 Message Date
John Safranek 945703b791 Fuzz Test Fixes
1. A bounds check in `KexDhReply()` for fSz could be tricked into using an incorrect value and trigger a crash. Rearranged the inequality so it can't be tricked.
2. A bounds check in `GetUint32()` for the size of the length value being used could cause crashes. Rearranged the inequality so it can't be tricked.
3. Modified other similar bounds checks.
4. In `KexDhReply()` check the sigSz after reading.
2018-05-24 10:50:53 -07:00
Chris Conlon ed4b978542
Merge pull request #65 from ejohnstown/update-flags
Update Flags
2018-05-23 17:22:08 -06:00
John Safranek 76ec35c716 Update Flags
In ax_harden_compiler_flags.m4, a couple of the AC_REQUIRE macros were being used to check for the presence of another macro. Replaced them with uses of AX_REQUIRE_DEFINED which checks for the presence of a macro. AC_REQUIRE ensures a macro is expanded.
2018-05-23 15:48:23 -07:00
Chris Conlon 8d790ba894
Merge pull request #64 from ejohnstown/update-configure
Update Configure
2018-05-23 11:16:20 -06:00
John Safranek a3da921219 Update Configure
1. Removed some redundant macros.
2. Added missing quotes to some macro parameters.
3. Condensed some sets of macros into a single macro with a parameter list.
4. Removed some ignored parameters to macros.
2018-05-23 09:48:38 -07:00
Chris Conlon 946531c6b0
Merge pull request #62 from ejohnstown/update-m4
Update M4
2018-05-23 09:38:25 -06:00
John Safranek a7dde2bec6 Update M4
1. Remove the reinitialize of CFLAGS from the AX_HARDEN_CC_FLAGS macro.
2018-05-22 16:19:32 -07:00
John Safranek 14ac7331cb
Merge pull request #63 from JacobBarthelmeh/readme
update readme with tip for resource reduction
2018-05-22 14:06:46 -07:00
John Safranek a41b292484 Update M4
1. Update several of the macro files paralleling wolfSSL's m4 files.
2. Check the ar options and if available add the "U" options.
3. Add the -Xcompiler flag ahead of -Qunused-arguments for -pthreads.
2018-05-21 15:22:35 -07:00
Jacob Barthelmeh 0278fd59f2 update readme with tip for resource reduction 2018-05-21 10:34:46 -06:00
John Safranek d23a47bd19
Merge pull request #60 from JacobBarthelmeh/testing
revert increment of nameListIdx for RSA connection
2018-05-18 17:00:02 -07:00
Jacob Barthelmeh 9312179ec8 revert increment of nameListIdx for RSA connection 2018-05-18 09:45:40 -06:00
JacobBarthelmeh c2a3de1332
Merge pull request #59 from ejohnstown/test-errcode
Error Code Unit Test
2018-05-10 15:06:10 -06:00
John Safranek e1f242f451
Merge pull request #54 from JacobBarthelmeh/fuzz
check for overflow case
2018-05-10 14:02:35 -07:00
John Safranek c77345fc6c Error Code Unit Test
1. Add a unit test to check all error codes have strings.
2. Add public function to return the error string for an error code.
3. Fill in the missing error strings.
4. Fix an error string (change a "verify" to "create").
2018-05-10 13:55:59 -07:00
John Safranek 988c45b042
Merge pull request #58 from cconlon/scanbuild
fixes for scan-build warnings
2018-05-10 13:52:41 -07:00
JacobBarthelmeh 7f8250fb0f
Merge pull request #57 from cconlon/spacing
remove hard tabs in DoChannelClose()
2018-05-10 14:20:53 -06:00
Chris Conlon fb8b9d5ee3 scanbuild: fix for value is never read 2018-05-03 15:22:51 -06:00
Chris Conlon f87adbd82c scanbuild: fix for possible null pointer dereferences 2018-05-03 15:19:39 -06:00
Chris Conlon d2b96e9335 scanbuild: fix begin var value never read warning 2018-05-03 15:10:32 -06:00
Chris Conlon c0cb237881 scanbuild: fix bufName dead assignment 2018-05-03 14:56:27 -06:00
Chris Conlon 634a356993 scanbuild: fix for sigKeyBlock.useRsa evaluating to garbage 2018-05-03 14:51:53 -06:00
Chris Conlon 6ff33be668 remove hard tabs, gcc 7.2.0 complains 2018-05-03 14:32:30 -06:00
Jacob Barthelmeh b4e02d77b1 check for overflow case 2018-04-10 13:19:39 -06:00
John Safranek 6d6c0ed23b
Merge pull request #53 from JacobBarthelmeh/fuzz
additional sanity checks on buffers
2018-04-10 09:45:53 -07:00
Jacob Barthelmeh a8ddc51331 buffer size check with sig verify 2018-04-09 13:56:22 -06:00
Jacob Barthelmeh f8a8fd51fa additional sanity checks on buffers 2018-04-06 16:30:54 -06:00
John Safranek 5e15ae7061
Merge pull request #51 from JacobBarthelmeh/testing
Adds extra checks for AES buffer size and update verify mac return error
2018-04-05 15:14:13 -07:00
Jacob Barthelmeh 7ef8b02e90 extra check on buffer size before AES-CBC encrypt/decrypt 2018-04-05 15:16:57 -06:00
Jacob Barthelmeh e3228ee300 return value for verify mac result 2018-04-05 15:16:48 -06:00
John Safranek 989d0f3d55
Merge pull request #47 from JacobBarthelmeh/testing
use of buffer keys in examples with no filesystem
2018-04-05 13:59:56 -07:00
John Safranek ed37ae9fd0
Merge pull request #48 from JacobBarthelmeh/pic32
initial port to pic32
2018-04-05 13:59:39 -07:00
Jacob Barthelmeh ed2f9c6cbe add port to test.h file 2018-04-05 13:21:23 -06:00
John Safranek 2cea13ab52
Merge pull request #49 from JacobBarthelmeh/fuzz
additional sanity checks
2018-03-30 17:49:21 -07:00
Jacob Barthelmeh ce1ced27dc additional sanity checks 2018-03-30 17:05:04 -06:00
Jacob Barthelmeh bb668fe743 use of buffer keys in examples with no filesystem 2018-03-30 10:45:24 -06:00
Jacob Barthelmeh ae70eb7b44 initial port to pic32 2018-03-30 10:33:25 -06:00
Chris Conlon 48590f6896
Merge pull request #44 from ejohnstown/scp-submission
SCP Contribution
2018-03-29 15:11:20 -06:00
John Safranek 5b739831fc
Merge pull request #46 from JacobBarthelmeh/testing
update SHA256 name
2018-03-27 14:51:59 -07:00
Jacob Barthelmeh 3b6b70adeb update SHA256 name 2018-03-27 14:42:06 -06:00
JacobBarthelmeh 2e42701c35
Merge pull request #45 from ejohnstown/bugs
Bug Fixes
2018-03-27 14:04:09 -06:00
John Safranek b578aadc6d SCP Contribution 2018-03-26 11:09:21 -07:00
John Safranek bbbc14ea6b Bug Fixes
1. Fix an incorrect memory free when releasing a bad WOLFSSH object.
2. Pass correct context to the I/O Send Callback function.
2017-12-01 12:04:56 -08:00
dgarske fe3f19190e Merge pull request #43 from ejohnstown/logging2
Logging
2017-10-04 15:10:52 -07:00
dgarske 83db50f7b6 Merge pull request #40 from ejohnstown/testsuite
Test Suite
2017-10-04 15:10:36 -07:00
John Safranek e2fc544eac Logging
Removed the `INLINE` tag from the accessor `wolfSSH_LogEnabled()`, it was causing trouble under Windows.
2017-10-04 14:14:00 -07:00
JacobBarthelmeh 7361c98314 Merge pull request #42 from ejohnstown/channelclose
Channel Close
2017-09-29 17:25:14 -06:00
John Safranek 911a00ae2c Channel Close
1. Renumbered a few error codes.
2. Added an error code for stream reading when the channel is closed during the read action.
2017-09-29 16:11:04 -07:00
JacobBarthelmeh 4715a00d58 Merge pull request #41 from ejohnstown/logging
Logging Update
2017-09-29 15:37:16 -06:00
John Safranek fe14efc62d Logging Update
1. Added a logging function that always works whether or not debugging is enabled.
2. Modified the WLOG macro to always be built in, but disables cleanly.
2017-09-29 14:15:38 -07:00