Skip to content

Commit 4818922

Browse files
Change an X.509 bad-case test case to accommodate ASN.1 bug fix
"mbedtls_asn1_get_int: allow leading zeros properly" broke an X.509 test case which now returns a different error code. Tweak the test data to exercise what the test intended to test.
1 parent d45bf39 commit 4818922

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/suites/test_suite_x509parse.data

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -949,7 +949,7 @@ X509 Certificate ASN1 (TBSCertificate, valid version tag, no length)
949949
x509parse_crt:"30053003a00102":"":MBEDTLS_ERR_X509_INVALID_VERSION + MBEDTLS_ERR_ASN1_OUT_OF_DATA
950950

951951
X509 Certificate ASN1 (TBSCertificate, valid version tag, invalid length)
952-
x509parse_crt:"30163014a012021000000000000000000000000000000000":"":MBEDTLS_ERR_X509_INVALID_VERSION + MBEDTLS_ERR_ASN1_INVALID_LENGTH
952+
x509parse_crt:"30163014a012021000000000000000010000000000000000":"":MBEDTLS_ERR_X509_INVALID_VERSION + MBEDTLS_ERR_ASN1_INVALID_LENGTH
953953

954954
X509 Certificate ASN1 (TBSCertificate, valid version tag, no serial)
955955
x509parse_crt:"30073005a003020104":"":MBEDTLS_ERR_X509_INVALID_SERIAL + MBEDTLS_ERR_ASN1_OUT_OF_DATA

0 commit comments

Comments
 (0)