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
Paul Bakker
362689d5a7
Split test into valgrind and no-valgrind version
...
Running valgrind on: "DTLS client reconnect from same port: reconnect,
nbio" results in timeouts.
New version added that runs only under valgrind. Original only runs when
valgrind is not used
2016-05-23 14:29:32 +01:00
Paul Bakker
1f65092d28
Add fix to ignore valgrind messages related to compressed debug symbols
...
The glibc package recently enabled compressed debug symbols but valgrind doesn't
support them yet.
Results in messages like:
--14923-- WARNING: Serious error when reading debug info
--14923-- When reading debug info from /lib/x86_64-linux-gnu/ld-2.21.so:
--14923-- Ignoring non-Dwarf2/3/4 block in .debug_info
First line has 'error' in it which triggers some of the ssl-opt tests
2016-05-23 14:29:32 +01:00
Paul Bakker
456fea0000
Amended ChangeLog
2016-05-23 14:29:31 +01:00
Paul Bakker
774180e14e
Fix memory-leak in verbose test framework in case of unexpected input
2016-05-23 14:29:31 +01:00
Paul Bakker
26b60bf7d1
Fox verbose test framework not to duplicate strings if not verbose
2016-05-23 14:29:31 +01:00
Paul Bakker
a30a72f80f
Fix verbose test framework mote to use unmet_dep_count for index
2016-05-23 14:29:31 +01:00
Paul Bakker
38d188896c
Cleanup ifdef statements
2016-05-23 14:29:31 +01:00
Paul Bakker
440ce420bd
Put clang analyzer fix inside __clang_analyzer__ guard
2016-05-23 14:29:31 +01:00
Simon Butcher
cc4eabd22a
Reverts change in commit daf534d
...
Commit daf534d
from PR #457 breaks the build. This may reintroduce a
clang-analyse warning, but this is the wrong fix for that.
The fix removed a call to mbedtls_ecp_curve_info_from_grp_id() to find
the curve info. This fix adds that back in.
2016-05-23 14:29:31 +01:00
Paul Bakker
cfe392bdd4
Add end guard comment
2016-05-23 14:29:31 +01:00
Embedthis Software
c0715cb39f
Fix single threaded builds
2016-05-23 14:29:31 +01:00
Simon Butcher
da01266599
Corrects incorrectly named function in ctr_drbg.c comment
2016-05-23 14:29:31 +01:00
Simon Butcher
ae79124905
Disables backtrace config from basic-build-test.sh
...
The configuration MBEDTLS_MEMORY_BACKTRACE is intended for debug and
is not necessary for test coverage. Because it causes timing problems
in some tests the configuration has been removed as it's not present in
equivalent tests in the all.sh test script.
2016-05-23 14:29:30 +01:00
Simon Butcher
a557cfb9ad
Widens test bounds on memory alloc tests
2016-05-23 14:29:30 +01:00
Simon Butcher
80119c5d28
Fixes minor typos in comments in pk.h and ctr_drbg.c
...
Fixes typos in PRs #475 and #437
2016-05-23 14:29:30 +01:00
Paul Bakker
acaac8510e
Add option to preserve all logs in ssl-opt.sh
...
Useful to also allow saving of correct logs in order to compare
differences with failed logs
2016-05-23 14:29:30 +01:00
Paul Bakker
e20310a9fc
Add option to print test numbers in ssl-opt.sh output
...
Allows for easy selection of tests based on numbers for use with the
'-n' option
2016-05-23 14:29:30 +01:00
Paul Bakker
b7584a5e37
Add ability to only run select numbered tests in ssl-opt.sh
...
In order to reduce debugging time, allows you to only run interesting
tests (by number) from the commandline.
e.g. the command 'tests/ssl-opt.sh -n 246,258' will only run test 246
and 258 (as per the number in the log file names)
2016-05-23 14:29:30 +01:00
Paul Bakker
4fde40f656
Fix logic to allow at least one PKCS version enabled
2016-05-23 14:29:30 +01:00
Paul Bakker
37068a79fe
Add check to prevent enabling of RSA without selecting PKCS version(s)
2016-05-23 14:29:30 +01:00
Simon Butcher
4ec1e8193e
Widens test parameters in memory alloc tests
2016-05-23 14:29:30 +01:00
SimonB
214f5c0af2
Additional tests to test stack buffer allocator
...
Adds additional tests to the test suite for
memory_buffer_alloc.c
2016-05-23 14:29:29 +01:00
SimonB
295dfa24e7
Clarifies documentation on reported memory statistics
2016-05-23 14:29:29 +01:00
SimonB
4a3b023172
Adds line numbering in errors for test helpers
...
Adds to the 'generate_code.pl' tool, support to insert line numbers
before test suite helper code.
2016-05-23 14:29:29 +01:00
SimonB
20273ddc4c
Adds reporting of file/line no. in failed tests
...
Tests in tests/suites will now report the file and line number of
failed test assertions.
2016-05-23 14:29:29 +01:00
SimonB
525b792823
Fixes off by 1 error reported in line number errors
2016-05-23 14:29:29 +01:00
SimonB
ab07135165
Adds line number substitution in test cases
...
Expanded generate_code.pl to substitute !LINE_NO! in test cases.
2016-05-23 14:29:29 +01:00
SimonB
99cff58958
Fixes memory leak in memory_buffer_alloc.c debug
...
Debug symbols were being leaked in memory_buffer_alloc.c
2016-05-23 14:29:29 +01:00
Nicholas Wilson
1b666554c9
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-05-23 14:29:29 +01:00
Nicholas Wilson
f0021645b0
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-05-23 14:29:28 +01:00
Nicholas Wilson
b47fd5e8c9
Remove a dead store to silence clang-analyze
2016-05-23 14:29:28 +01:00