mbedtls/tests
Neil Armstrong a97f1ac5f9 Initialize mbedtls_x509write_csr struct before USE_PSA_INIT(), mbedtls_x509write_csr_free() will crash if uninitialized
When USE_PSA_INIT() failed because lack of seedfile, mbedtls_x509write_csr_free()
crashed when called on an unitialized mbedtls_x509write_csr struct.

This moves mbedtls_x509write_csr_init before calling USE_PSA_INIT(),
which could probably fail, and uses the same flow in x509_csr_check()
and x509_csr_check_opaque().

Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
2022-08-08 13:54:47 +02:00
..
.jenkins
configs Remove use_psa_crypto in test scripts 2022-03-22 15:13:35 +08:00
data_files Remove remaining bignum radix args 2022-08-01 15:07:14 +01:00
docker/bionic Jinja2 prerequisite set up on the docker 2021-12-18 13:29:10 +05:30
git-scripts Fix typographical errors in .md files found by cspell 2022-07-29 13:44:01 +01:00
include Remove radix arg from mbedtls_test_read_mpi 2022-08-01 15:05:24 +01:00
opt-testcases Refactor compat scripts 2022-06-12 20:53:02 +08:00
scripts Build with SHA-256 accelerated too 2022-07-12 11:11:20 +02:00
src Remove radix arg from mbedtls_test_read_mpi 2022-08-01 15:05:24 +01:00
suites Initialize mbedtls_x509write_csr struct before USE_PSA_INIT(), mbedtls_x509write_csr_free() will crash if uninitialized 2022-08-08 13:54:47 +02:00
.gitignore tests: Add build of a PSA test driver library 2021-12-06 07:50:27 +01:00
CMakeLists.txt Merge pull request #5635 from gilles-peskine-arm/psa-test-op-fail 2022-04-15 10:52:47 +02:00
compat-in-docker.sh
compat.sh Add comment in compat.sh about callers 2022-04-14 09:21:56 +02:00
context-info.sh
Descriptions.txt
make-in-docker.sh
Makefile Declare modules used by generate_psa_tests.py as dependencies 2022-03-15 18:32:10 +01:00
ssl-opt-in-docker.sh
ssl-opt.sh Merge pull request #6087 from yuhaoth/pr/add-tls13-serialize_session_save_load 2022-07-23 08:57:11 +02:00