mbedtls/tests/suites
Hanno Becker c15ff98455 X.509: Adapt negative parsing test for no data in CrtPolicy ext
This commit modifies the test

   X509 CRT ASN1 (TBSCertificate v3, inv CertificatePolicies, data missing)

which exercises the behaviour of the X.509 CRT parser when facing a
CertificatePolicy extension with empty data field.

The following adaptations are made:
- The subject ID and issuer ID are modified to have length 0.
  The previous values `aa` and `bb` are OK, but a generic ASN.1
  parser will try to interpret them as ASN.1 tags and fail. For
  maintainability, it's therefore better to use something that
  can be parsed as ASN.1, and an empty ID is the easiest solution
  here.
- The TBS part of the certificate wasn't followed by signature
  algorithm and signature fields, which makes the test incompatible
  with future changes swapping to breadth-first parsing of
  certificates.
2019-09-17 13:10:42 +01:00
..
helpers.function Add TEST_ASSUME macro to allow skipping tests at runtime 2019-07-05 13:39:09 +01:00
host_test.function Add TEST_ASSUME macro to allow skipping tests at runtime 2019-07-05 13:39:09 +01:00
main_test.function Add TEST_ASSUME macro to allow skipping tests at runtime 2019-07-05 13:39:09 +01:00
target_test.function Merge remote-tracking branch 'origin/pr/2660' into development 2019-07-11 16:17:38 +01:00
test_suite_debug.data Update certificates to expire in 2029 2019-07-10 16:46:34 +03:00
test_suite_debug.function Rename HexParam_t -> data_t for consistent coding style 2018-08-06 11:42:06 +01:00
test_suite_error.data The Great Renaming 2015-04-08 13:25:31 +02:00
test_suite_error.function Intermediate hexify out change 2018-08-06 11:40:57 +01:00
test_suite_ssl.data Use US spelling 'serialize' instead of UK spelling 'serialise' 2019-08-23 12:51:21 +03:00
test_suite_ssl.function Introduce specific error for ver/cfg mismatch on deserialization 2019-08-23 12:51:21 +03:00
test_suite_version.data Update library version to 2.19.0 2019-08-30 13:02:16 +01:00
test_suite_version.function Intermediate hexify out change 2018-08-06 11:40:57 +01:00
test_suite_x509parse.data X.509: Adapt negative parsing test for no data in CrtPolicy ext 2019-09-17 13:10:42 +01:00
test_suite_x509parse.function Add test cases exercising successful verification of MD2/MD4/MD5 CRT 2019-06-03 14:45:21 +01:00
test_suite_x509write.data Update certificates to expire in 2029 2019-07-10 16:46:34 +03:00
test_suite_x509write.function Fix memory leak in CSR test suite on failure 2019-09-06 07:44:37 -04:00