From 3ff4fc6997d046d1ef8b6bbb4d4d53a6eaf1a308 Mon Sep 17 00:00:00 2001 From: Thomas Daubney Date: Tue, 31 May 2022 14:17:24 +0100 Subject: [PATCH] Add test data Add two test cases for accessor test. One test where desired ext type is presentent and the other of when the ext type is not present. Signed-off-by: Thomas Daubney --- tests/suites/test_suite_x509parse.data | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/suites/test_suite_x509parse.data b/tests/suites/test_suite_x509parse.data index e21b450b9..dd7485310 100644 --- a/tests/suites/test_suite_x509parse.data +++ b/tests/suites/test_suite_x509parse.data @@ -2791,3 +2791,11 @@ x509_verify_restart:"data_files/server10_int3-bs.pem":"data_files/test-int-ca2.c X509 CRT verify restart: one int, int badsign, max_ops=500 depends_on:MBEDTLS_PEM_PARSE_C:MBEDTLS_ECDSA_C:MBEDTLS_SHA256_C:MBEDTLS_ECP_DP_SECP256R1_ENABLED:MBEDTLS_ECP_DP_SECP384R1_ENABLED:MBEDTLS_RSA_C x509_verify_restart:"data_files/server10_int3-bs.pem":"data_files/test-int-ca2.crt":MBEDTLS_ERR_X509_CERT_VERIFY_FAILED:MBEDTLS_X509_BADCERT_NOT_TRUSTED:500:25:100 + +X509 ext types accessor: ext type present +depends_on:MBEDTLS_X509_CRT_WRITE_C +x509_accessor_ext_types:MBEDTLS_X509_EXT_KEY_USAGE:MBEDTLS_X509_EXT_KEY_USAGE + +X509 ext types accessor: ext type not present +depends_on:MBEDTLS_X509_CRT_WRITE_C +x509_accessor_ext_types:MBEDTLS_X509_EXT_KEY_USAGE:MBEDTLS_X509_EXT_SUBJECT_ALT_NAME