Skip to content

Commit f6f5441

Browse files
yanescasimonbutcher
authored andcommitted
x509: trailing bytes in DER: correct a unit test
One of the unit test was failing, because it was testing behavior that was part of the bug. Updated the return value to the correct one
1 parent 16734f0 commit f6f5441

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
@@ -755,7 +755,7 @@ X509 Certificate ASN1 (Incorrect first tag)
755755
x509parse_crt:"":"":MBEDTLS_ERR_X509_INVALID_FORMAT
756756

757757
X509 Certificate ASN1 (Correct first tag, data length does not match)
758-
x509parse_crt:"300000":"":MBEDTLS_ERR_X509_INVALID_FORMAT + MBEDTLS_ERR_ASN1_UNEXPECTED_TAG
758+
x509parse_crt:"300000":"":MBEDTLS_ERR_X509_INVALID_FORMAT + MBEDTLS_ERR_ASN1_OUT_OF_DATA
759759

760760
X509 Certificate ASN1 (Correct first tag, no more data)
761761
x509parse_crt:"3000":"":MBEDTLS_ERR_X509_INVALID_FORMAT + MBEDTLS_ERR_ASN1_OUT_OF_DATA

0 commit comments

Comments
 (0)