1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-13 09:01:48 +03:00
Commit Graph

5035 Commits

Author SHA1 Message Date
9c94b6951c Add tests for overreads in pem_read_buffer() 2016-11-21 11:03:40 +00:00
d473c1f359 Remove need for elevated command line in Windows
Changes use of mklink in Windows test builds, to create junctions instead of
directory symbolic links. This removes the need for an elevated command prompt
when running cmake to create the Visual Studio project files.
2016-11-17 16:04:33 +00:00
002bc6262b Make mingw test build a requirement of all.sh
Changed the mingw test build to be a required test of the all.sh script.
2016-11-17 09:27:45 +00:00
91aef33832 Fix mingw test build to avoid executing the tests
Changed the mingw build target to avoid building mingw test suites and
then attempting to run them which was failing on Linux.
2016-11-17 09:22:47 +00:00
f95c1764fa Make the test builds much stricter for warnings
Tighten up the test options in all.sh, test-ref-configs.pl and curves.pl
to ensure the builds are strict for all warnings, warnings are treated
as errors, and that wherever possible builds are strict to the C99
standard. (Note that builds that use the Unix sockets API cannot be).
2016-11-17 09:22:46 +00:00
ea67eeb4e8 Remove unused var warnings in windows unittests 2016-11-10 17:22:12 +00:00
9b3e3c4942 Fix config of compiler warning flags with MSVC
Compiler warnings were being configured twice and not suppressed on the
test suites with Microsoft Visual Studio.
2016-11-10 15:37:33 +00:00
16c54ee9c8 Update library version number to 2.4.0 2016-10-16 19:34:39 +01:00
8e00410402 Merge fix for AEAD Random IVs 2016-10-14 00:48:33 +01:00
9800a058ae Merge branch 'development' 2016-10-13 17:25:56 +01:00
99000142cb Merge fix for IE Certificate Compatibility 2016-10-13 17:21:01 +01:00
488c08c00b Merge branch fixing date validity in X.509 2016-10-13 16:13:09 +01:00
f45dab1939 Fix global variable shadowing 2016-10-13 13:54:48 +01:00
6437b221a3 Fix stdio redirection memory leak in test suites 2016-10-13 13:54:48 +01:00
e5dc202469 Restore P>Q in RSA key generation (#558)
The PKCS#1 standard says nothing about the relation between P and Q
but many libraries guarantee P>Q and mbed TLS did so too in earlier
versions.

This commit restores this behaviour.
2016-10-13 13:54:48 +01:00
d7b9049806 Fix memory leaks in CMAC tests 2016-10-13 13:53:56 +01:00
fe4db8f575 Fix memory leak in test_suite_cmac.function 2016-10-13 13:53:56 +01:00
f04f54d432 Add seed cmdline arg to test scripts 2016-10-13 13:53:33 +01:00
2d9c46767a Fix minor style issues in test framework 2016-10-13 13:53:13 +01:00
33388669ec Fix to test output in test suites
Fixes the test suites to consistently use mbedtls_fprintf to output to
stdout or stderr.

Also redirects output from the tests to /dev/null to avoid confusing
output if the test suite code or library outputs anything to stdout.
2016-10-13 13:53:13 +01:00
8739aa9403 Fix exit and formatting in CMAC test suite
Minor fixes following review.
2016-10-13 13:53:13 +01:00
03faeac7ec Add CMAC test suite to CMakeLists.txt 2016-10-13 13:53:13 +01:00
c3db62fd51 Extend test coverage of CMAC
Expands tests to include NULL tests and successive calls to
mbedtls_cipher_cmac_update() and mbedtls_cipher_cmac_reset().
2016-10-13 13:53:13 +01:00
8254b6c9f3 Clean up of formatting, and potential integer overflow fix 2016-10-13 13:51:13 +01:00
f394e09431 Clean up and minor fixes following review
Minor fixes following review including:
    * formatting changes including indentation and code style
    * corrections
    * removal of debug code
    * clarification of code through variable renaming
    * memory leak
    * compiler warnings
2016-10-13 13:51:12 +01:00
937fddbfcb Introduce a CMAC specific test suite 2016-10-13 13:51:11 +01:00
42547d0cf7 Set selftest verbose flag to boost coverage 2016-10-13 13:48:48 +01:00
84c46db746 Fix scripts to support multiple openssl and gnutls 2016-10-13 13:48:48 +01:00
3616f6f261 Rename net.{c,h} to net_sockets.{c,h}
The library/net.c and its corresponding include/mbedtls/net.h file are
renamed to library/net_sockets.c and include/mbedtls/net_sockets.h
respectively. This is to avoid naming collisions in projects which also
have files with the common name 'net'.
2016-10-13 13:48:48 +01:00
1c8b33ad19 Merge branch 'development' 2016-10-13 13:40:41 +01:00
e709f7c9e0 Fix global variable shadowing 2016-10-13 13:20:12 +01:00
e019296ab7 Fix stdio redirection memory leak in test suites 2016-10-13 10:03:08 +01:00
ef44178474 Restore P>Q in RSA key generation (#558)
The PKCS#1 standard says nothing about the relation between P and Q
but many libraries guarantee P>Q and mbed TLS did so too in earlier
versions.

This commit restores this behaviour.
2016-10-13 00:25:07 +01:00
99d09d2747 Fix memory leaks in CMAC tests 2016-10-12 15:32:54 +01:00
c4424c0a69 Fix memory leak in test_suite_cmac.function 2016-10-12 15:32:53 +01:00
d444358247 Fix memory leaks in CMAC tests 2016-10-12 14:31:01 +01:00
8abc6b86f9 Fix memory leak in test_suite_cmac.function 2016-10-12 00:40:16 +01:00
c47857dbf4 Add seed cmdline arg to test scripts 2016-10-12 00:36:31 +01:00
7770ea82d5 Add seed cmdline arg to test scripts 2016-10-12 00:32:17 +01:00
e0af995f12 Add test for bounds in X509 DER write funcs 2016-10-11 14:07:48 +01:00
8ca53b51c5 Fix minor style issues in test framework 2016-10-11 12:25:34 +01:00
2573136fa8 Fix to test output in test suites
Fixes the test suites to consistently use mbedtls_fprintf to output to
stdout or stderr.

Also redirects output from the tests to /dev/null to avoid confusing
output if the test suite code or library outputs anything to stdout.
2016-10-11 12:25:34 +01:00
bd8d221920 Fix exit and formatting in CMAC test suite
Minor fixes following review.
2016-10-11 12:25:04 +01:00
53da6ae842 Add CMAC test suite to CMakeLists.txt 2016-10-11 12:25:04 +01:00
33183fd408 Extend test coverage of CMAC
Expands tests to include NULL tests and successive calls to
mbedtls_cipher_cmac_update() and mbedtls_cipher_cmac_reset().
2016-10-11 12:25:04 +01:00
a592dcc1c6 Clean up of formatting, and potential integer overflow fix 2016-10-06 15:23:39 +01:00
69283e51d5 Clean up and minor fixes following review
Minor fixes following review including:
    * formatting changes including indentation and code style
    * corrections
    * removal of debug code
    * clarification of code through variable renaming
    * memory leak
    * compiler warnings
2016-10-06 12:49:58 +01:00
d812fa69d9 Introduce a CMAC specific test suite 2016-10-05 14:19:18 +01:00
4b76aecaf3 Add check for validity of date in x509_get_time() 2016-09-28 14:32:54 +01:00
93012e8bce Set selftest verbose flag to boost coverage 2016-09-27 17:29:22 +01:00