mbedtls/tests
Nick Child a0c15d0fec pkcs7/test: Add test cases for pkcs7 with 3 signers
Previously, a loop in pkcs7_get_signers_info_set was not
getting covered by tests. This was because when there are
two or less signers, the loop will not execute.
Therefore, add new data files for another signer and use
three signers to generate a new pkcs7 DER file. Add a test
case to make sure that verification is still successfula and
use the test script to create ASN1 errors throoughout the
stucture:
./generate_pkcs7_tests.py ../data_files/pkcs7_data_3_signed.der

This results in the loop being executed.

Signed-off-by: Nick Child <nick.child@ibm.com>
2023-01-30 19:30:38 +00:00
..
.jenkins Add a Jenkinsfile for PR job testing 2018-10-19 16:41:54 +01:00
configs Switch to the new code style 2023-01-11 14:50:10 +01:00
data_files pkcs7/test: Add test cases for pkcs7 with 3 signers 2023-01-30 19:30:38 +00:00
docker/bionic Point to docker images used in the CI 2022-12-15 10:08:26 +01:00
git-scripts Fix typographical errors in .md files found by cspell 2022-07-29 13:44:01 +01:00
include Switch to the new code style 2023-01-11 14:50:10 +01:00
opt-testcases simplify test case dependencies and test commands 2023-01-16 13:44:10 +08:00
scripts test/pkcs7: Add more tests for better coverage 2023-01-30 15:55:44 +00:00
src Switch to the new code style 2023-01-11 14:50:10 +01:00
suites pkcs7/test: Add test cases for pkcs7 with 3 signers 2023-01-30 19:30:38 +00:00
.gitignore tests: Add build of a PSA test driver library 2021-12-06 07:50:27 +01:00
CMakeLists.txt Merge pull request #6699 from gilles-peskine-arm/lcov-script 2022-12-15 12:29:23 +01:00
compat-in-docker.sh Use OPENSSL everywhere, not OPENSSL_CMD 2022-12-19 11:42:12 +01:00
compat.sh Merge pull request #6917 from yanrayw/6658-not-print-Terminated-ubuntu-22.04 2023-01-26 21:53:33 +01:00
context-info.sh Modifies tests in context-info.sh 2021-06-16 16:19:53 +01:00
Descriptions.txt Revert "Remove tests that depend on TLS or X.509" 2020-03-19 14:17:54 +01:00
make-in-docker.sh Point to docker images used in the CI 2022-12-15 10:08:26 +01:00
Makefile Remove libtestdriver1 with 'make clean' 2023-01-05 12:55:08 +01:00
ssl-opt-in-docker.sh Use OPENSSL everywhere, not OPENSSL_CMD 2022-12-19 11:42:12 +01:00
ssl-opt.sh Have compat.sh and ssl-opt.sh not return success for > 255 errors 2023-01-13 12:13:41 +00:00