8a3170571e
Fix bug in ssl_write_supported_elliptic_curves_ext
...
Passing invalid curves to mbedtls_ssl_conf_curves potentially could caused a
crash later in ssl_write_supported_elliptic_curves_ext. #373
2016-04-22 00:41:54 +01:00
55abc21521
Fix ci break in builds without platform.h
2016-04-19 15:15:53 +01:00
1ed9f99ef3
Fix null pointer dereference in the RSA module.
...
Introduced null pointer checks in mbedtls_rsa_rsaes_pkcs1_v15_encrypt
2016-04-19 10:16:31 +01:00
8ca7bc42d0
Adds verbose mode to the test suites
...
Added a verbose option to the generated test suites which can list the
dependencies not met for skipped test cases.
Also clarifies internal interfaces between the main_test.function and test code,
and fixed a bug on calculating available tests in run-test-suites.pl.
2016-04-17 23:24:50 +01:00
098a3b5025
Makes basic-build-test.sh test the full config
...
Previously the test worked on the default configuration which missed deprecated
or legacy features. This change tests the full configuration and all available
tests.
2016-04-16 21:56:59 +01:00
2e23c82753
Adds check to avoid overwriting files
...
Adds check to avoid accidental overwriting of config.h or the yotta module, as
well as a force option to override any changes.
2016-04-16 21:54:39 +01:00
3f5c875654
Adds test for odd bit length RSA key size
...
Also tidy up ChangeLog following review.
2016-04-15 19:06:59 +01:00
10c575be3e
Fix odd bitlength RSA key generation
...
Fix issue that caused a hang up when generating RSA keys of odd
bitlength.
2016-04-15 18:49:13 +01:00
0e4d9afa61
Use Freescale's RNGA on the K64F
2016-04-15 10:40:31 +01:00
42d47f0fb5
Silence a clang-analyze warning
...
The check is already effectively performed later in the function, but
implicitly, so Clang's analysis fail to notice the functions are in
fact safe. Pulling the check up to the top helps Clang to verify the
behaviour.
2016-04-13 11:57:36 +01:00
5d5e421d08
Refactor slightly to silence a clang-analyze warning
...
Since the buffer is used in a few places, it seems Clang isn't clever
enough to realise that the first byte is never touched. So, even though
the function has a correct null check for ssl->handshake, Clang
complains. Pulling the handshake type out into its own variable is
enough for Clang's analysis to kick in though.
2016-04-13 11:57:36 +01:00
daf534dcf9
Remove a dead store to silence clang-analyze
2016-04-13 11:57:36 +01:00
409401c044
Shut up a few clang-analyze warnings about use of uninitialized variables
...
The functions are all safe, Clang just isn't clever enough to realise
it.
2016-04-13 11:56:22 +01:00
2cc69fffcf
Shut up a clang-analyzer warning
...
The function appears to be safe, since grow() is called with sensible
arguments in previous functions. Ideally Clang would be clever enough to
realise this. Even if N has size MBEDTLS_MPI_MAX_LIMBS, which will
cause the grow to fail, the affected lines in montmul won't be reached.
Having this sanity check can hardly hurt though.
2016-04-13 11:56:22 +01:00
6eaf3659ea
Fixes Travis post-mortem script dump following review
...
Changes made:
* Added copyright and project statement
* Limited size of each file to dump to 1Mbyte
* Changed name of script
2016-04-10 15:11:27 +01:00
371a9e0ae9
Merge branch 'iotssl-683-travis-failing-intermittently'
2016-04-10 14:24:31 +01:00
73883c12bc
Fixes formatting of spacing in config.pl
2016-04-04 13:49:10 +01:00
ba9dd1ec13
Adds to footprint.sh MBEDTLS_NO_PLATFORM_ENTROPY
...
For baremetal builds MBEDTLS_NO_PLATFORM_ENTROPY must now be set to avoid the
build failing.
Fixes #449 .
2016-04-03 15:06:52 +01:00
60f2cf93f5
Adds option to config.pl to force config changes
...
The script config.pl fails when setting a #define symbol if the symbol isn't
already in the configuration header. This adds an option '--force' to append
the symbol to the end of the file if it isn't already present.
Also clarified usage, and added copyright to the config.pl.
2016-04-03 14:16:08 +01:00
a7ffc8f739
Update the yotta module version number
...
The minor version must rise to allow other software with dependencies on mbed
TLS to be dependent on the next version following the 2016 Q1 release.
yotta-2.3.0
mbedos-16.01-release
mbedos-16.03-release
mbedos-2016q1-oob3
2016-03-23 16:22:24 +00:00
3527514e94
Update the yotta module number
...
Changed the yotta module number to 2.2.3
yotta-2.2.3
2016-03-23 15:38:37 +00:00
f2d18a29da
Merge branch 'development'
2016-03-21 22:55:56 +00:00
cd0ee5e499
Fixes following review of 'iotssl-682-selftest-ci-break'
2016-03-21 22:54:37 +00:00
c2b0efcebe
Fix the basic test build script to always build
...
The test script, 'basic-build-test.sh', wasn't consistently building with
symbols and coverage data, nor doing a forced rebuild.
2016-03-21 22:40:13 +00:00
831a65ffa7
Make Travis more chatty.
...
Include the logs in the report after failing.
2016-03-21 14:52:25 +00:00
c351d18c0e
Restore a change in the documentation.
...
Using the wildcard name MBEDTLS_PLATFORM_XXX_ALT made the Travis build
fail.
2016-03-21 08:43:59 +00:00
be412aaca9
Fix the basic test build script to always build
...
The test script, 'basic-build-test.sh', wasn't consistently building with
symbols and coverage data, nor doing a forced rebuild.
2016-03-18 18:28:43 +00:00
d75b782d0d
Fix a typo that confuses check-names.sh
2016-03-18 16:47:10 +00:00
2e3aca2c9e
Fix test break in 'test-ref-configs.pl'
2016-03-18 16:25:52 +00:00
9194744595
Add exit value macros to platform abstraction layer.
2016-03-18 14:05:28 +00:00
68c0bd72bc
Clarified current status of RC4 usage
...
Made clear RC4 has been deprecated by IETF standard, and disabled
by default in the library.
2016-03-17 21:08:46 +00:00
7ef5cf3c54
Provided doxygen function definitions for debug.h
...
Documented each function definition.
2016-03-17 21:08:29 +00:00
9a5c0aa076
Update the version number of the yotta module
yotta-2.2.2
mbedos-2016q1-oob2
2016-03-17 16:03:39 +00:00
1404ddbd78
Added clarification text on benchmark usefulness.
2016-03-17 16:00:13 +00:00
60ddf167c1
Fix yotta examples baud rate.
2016-03-17 13:55:07 +00:00
00aea9a36d
Fix function name in hashing module doxygen file
2016-03-17 00:30:35 +00:00
f1547632dc
Fixes to style following review
...
Made code spacing consistent with guidelines, and corrected the misnamed test
steps in basic-build-test.sh
2016-03-14 23:12:32 +00:00
ab0c51d782
Fix minor issues with basic test script
...
Following fixes:
* In the test script, 'basic-build-test.sh', the total number of functions had
a broken RE, and was picking up the number of tested functions.
* Titles of tests was misleading
* The 'run-test-suites.pl' script was mistaking dSYM directories as test
suites to be executed.
2016-03-14 23:12:31 +00:00
21ab9d7b8b
Add a script to execute the basic tests
...
basic-build-test.sh executes the most obvious and common test suites and creates
a test report including coverage data.
2016-03-14 23:12:30 +00:00
75f3caa408
Fix unit test script to ignore coverage data
...
The script run-test-suite.pl was mistaking .gcda code coverage data files as
test suites. The files are now ignored.
2016-03-14 23:12:30 +00:00
ad8fbc066c
Add test result breakdown to test suites script
...
Added a --verbose switch to 'run-test-suite.pl' to summarise the pass/fail/skip
results of each test suite, and summary for all executed tests.
2016-03-14 23:12:30 +00:00
5a8afb848a
Fix exit code and add a count of the test suites
...
Now counts and displays the number of test suites executed, which can vary
depending on build configurations.
All tests are now executed as this is a sample and test program, rather than
exit on first failure.
Exit code now restricted to SUCCESS or FAILURE.
2016-03-14 23:12:29 +00:00
f413b6fffe
Fix to stop all.sh corrupting config.h
...
The test script all.sh was persisting the SSL3 configuration in config.h
through more tests than intended and not restoring the config the end.
2016-03-14 22:32:42 +00:00
4b852db299
Merge branch 'iotssl-629-der-trailing-bytes'
...
Fixes bug in mbedtls_x509_crt_parse that caused trailing extra data in the
buffer following DER certificates to be included in the raw representation.
2016-03-12 23:28:26 +00:00
5be92eae55
Merge 'iotssl-591-glue-layers' into development
2016-03-09 20:34:14 +00:00
d567a23c59
Fix typos, grammar in the comments and clarify them
2016-03-09 20:19:21 +00:00
00157ce510
Update the ChangeLog
2016-03-09 19:32:11 +00:00
3ea7f52fdf
Update interop tests to default configuration
...
Removed SSLv3 from the default tests in compat.sh, and adapted the test
cases in all.sh to include an additional SSLv3 regression test suite.
2016-03-09 19:32:11 +00:00
c7940f0bd8
Fix yotta builds for change in default configs
...
The change to defaults configurations in a720ced
broke the yotta build.
This fix addresses that.
2016-03-09 19:32:11 +00:00
bc6a486b2f
Fix the 'all tests' script for baremetal builds
...
Fixes the test script test/scripts/all.sh which was failing at the
baremetal ARM builds due to the entropy platform check introduced in
7ff4b77
.
2016-03-09 19:32:11 +00:00