Simon Butcher
8795c4d5d5
Revert accidental changes to file mode of rsa.c
2016-06-09 13:41:29 +01:00
Simon Butcher
b1007af2ef
Revert accidental changes to file mode of rsa.c
2016-06-09 13:41:29 +01:00
Janos Follath
352dbe2334
Make error messages in crypt_and_hash better.
2016-06-09 13:41:28 +01:00
Janos Follath
7ccac85fbc
Make basic-build-test.sh clean up after itself.
2016-06-09 13:41:28 +01:00
Janos Follath
98e28a74e3
Address user reported coverity issues.
2016-06-09 13:41:28 +01:00
Simon Butcher
f991128d40
Revert accidental changes to file mode of rsa.c
2016-06-09 13:41:28 +01:00
Janos Follath
8eb64132da
Address issues find by manual coverity scan.
2016-06-09 13:41:28 +01:00
Janos Follath
53de78444c
Add entropy safety switch.
...
Add a switch that turns entropy collecting off entirely, but enables
mbed TLS to run in an entirely unsafe mode. Enables to test mbed TLS
on platforms that don't have their entropy sources integrated yet.
2016-06-09 11:54:54 +01:00
Simon Butcher
12e2bf848d
Removes target_config.h file from default and thread configs
...
target_config.h is no longer needed for target/platform configurations so
this change removes it from the default and platform configurations for mbed
builds.
2016-06-08 19:00:23 +01:00
Simon Butcher
184eea6aa0
Merge branch 'development'
2016-06-07 15:55:47 +01:00
Simon Butcher
79f58995c9
Revert accidental changes to file mode of rsa.c
2016-06-07 14:52:35 +01:00
Janos Follath
c4191e475b
Make basic-build-test.sh clean up after itself.
2016-06-07 14:52:35 +01:00
Janos Follath
ce52d7823c
Address user reported coverity issues.
2016-06-07 14:52:35 +01:00
Simon Butcher
78da223f68
Revert accidental changes to file mode of rsa.c
2016-06-07 14:52:34 +01:00
Simon Butcher
a54f0f53c5
Merge branch 'development'
2016-06-07 14:46:08 +01:00
Simon Butcher
041435a19f
Revert accidental changes to file mode of rsa.c
2016-06-07 14:43:52 +01:00
Paul Bakker
c568762a5c
Fix dependency on MBEDTLS_ENTROPY_SHA512_ACCUMULATOR in test suite
2016-06-07 13:00:43 +01:00
Paul Bakker
2a9ef7445d
Update documentation for MBEDTLS_ENTROPY_NV_SEED
2016-06-07 13:00:43 +01:00
Janos Follath
f5e1101b8f
Make error messages in crypt_and_hash better.
2016-06-07 10:29:05 +01:00
Janos Follath
d364465150
Make basic-build-test.sh clean up after itself.
2016-06-07 10:00:38 +01:00
Janos Follath
dc7b15c11f
Address user reported coverity issues.
2016-06-07 10:00:20 +01:00
Janos Follath
a338691b46
Merge branch 'development' into development-restricted
2016-06-07 09:24:41 +01:00
Simon Butcher
50cdede726
Revert accidental changes to file mode of rsa.c
2016-06-06 20:15:33 +01:00
Janos Follath
0febc80396
Address issues find by manual coverity scan.
2016-06-03 15:40:57 +01:00
Paul Bakker
b598c293ce
Fix dependency guard for test
2016-06-01 16:57:11 +01:00
Paul Bakker
4a6c6fc72d
Properly gate NV_SEED additions in test suite
2016-06-01 16:34:50 +01:00
Paul Bakker
38f314550a
Update features file
2016-06-01 16:34:50 +01:00
Paul Bakker
ffbfb4c24c
Add test cases for NV seed functionality
...
A standard 'test' that writes a seed file is added so that regular tests
still can succeed. This is in lieu of a 'SUITE_PRE_CODE' kind of
arrangement where a suite can run code before (and after) all other code
runs.
A test is added that checks if we can read and write the standard NV
seed file
A test is added that actually checks if the entropy and seed file values
that are the result of just using the NV seed are the same as the manual
calculation.
2016-06-01 16:34:50 +01:00
Paul Bakker
960292337c
Initial entropy run should be context specific
...
Otherwise test influence each other.
Is a change to the context but only if the NV seed feature is enabled
2016-06-01 16:34:50 +01:00
Paul Bakker
a9c321cef5
Add MBEDTLS_FS_IO guard on default NV seed defines in platform.h
...
The default implementation won't work without MBEDTLS_FS_IO, so
leave undefined otherwise.
2016-06-01 16:34:50 +01:00
Paul Bakker
7da307105c
Automatically update NV seed on initial entropy run
...
Update the NV entropy seed before generating any entropy for outside
use. The reason this is triggered here and not in mbedtls_entropy_init(),
is that not all entropy sources mights have been added at that time.
2016-06-01 16:34:50 +01:00
Paul Bakker
54c43fca36
Introduce mbedtls_nv_seed_poll() entropy polling function
2016-06-01 16:34:49 +01:00
Paul Bakker
e021a4be13
Introduce platform-layer functions for reading/writing seed from NV
...
Introduces mbedtls_nv_seed_read() and mbedtls_nv_seed_write().
The platform-layer functions are only available when
MBEDTLS_ENTROPY_NV_SEED is enabled.
2016-06-01 16:34:49 +01:00
Janos Follath
04b591ee79
Merge branch 'development' for weekly test report.
2016-05-31 10:18:41 +01:00
-~- redtangent ~-~
9fa2e86d93
Add missing mbedtls_time_t definitions ( #493 )
...
Add missing mbedtls_time_t definitions to sample applications and the error.c
generation script.
Fixes #490 .
2016-05-26 10:07:49 +01:00
Simon Butcher
2917b9e5de
Clarified function param in dhm.h
2016-05-25 00:59:37 +01:00
Simon Butcher
9c22e7311c
Merge branch 'development'
2016-05-24 13:25:46 +01:00
Simon Butcher
65b1fa6b07
Fixes warnings found by Clang static analyser
...
Also removes annotations in the code to avoid warnings which don't appear to
be needed.
2016-05-23 23:18:26 +01:00
Simon Butcher
768594d772
Removes yotta from bump_version.sh
...
Yotta version is independent of the mbed TLS version so shouldn't be set by this
script.
Also adds a header, copyright and attribution to the script.
2016-05-23 19:15:39 +01:00
Simon Butcher
584a547873
Fix whitespace and formatting in ssl_srv.c
2016-05-23 16:24:52 +01:00
Simon Butcher
f65013d76d
Merge branch 'development'
2016-05-23 14:32:45 +01:00
Simon Butcher
3c0d7b8bdc
Adds check for valgrind to ssl-opt.sh ( #488 )
...
Provides graceful exit rather than fail silently if valgrind isn't installed.
2016-05-23 14:29:33 +01:00
Simon Butcher
29176897a1
Adds additional casts to calloc calls
...
Casts added to allow compilation of the library as C++
2016-05-23 14:29:33 +01:00
Simon Butcher
88ffc089bc
Adds casts to zeroize functions to allow building as C++
2016-05-23 14:29:32 +01:00
Simon Butcher
58eddef8b2
Updates copyright and attribution in comment header in ssl-opt.sh
2016-05-23 14:29:32 +01:00
Simon Butcher
cbb9075c54
Adds parallel builds to basic-build-test.sh
...
To speed up test time, added parallel builds
2016-05-23 14:29:32 +01:00
Simon Butcher
a410af537a
Fixes RC4 config dependencies in tests in ssl-opt.h
...
Adds dependencies on MBEDTLS_REMOVE_ARC4_CIPHERSUITES for tests that
require RC4 to be disabled (the default config).
2016-05-23 14:29:32 +01:00
Simon Butcher
97e829038a
Fixes whitespace errors in x509_crl.c
2016-05-23 14:29:32 +01:00
Brian Murray
930a3701e7
fix indentation in output of selftest.c
2016-05-23 14:29:32 +01:00
Paul Bakker
dc08545395
Update ChangeLog to reflect
2016-05-23 14:29:32 +01:00