mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-10-11 11:27:24 +00:00
x509parse tests used only last 16 bits of the return values. They are updated to check the whole 32 bit value
Signed-off-by: toth92g <[email protected]>
This commit is contained in:
@@ -2926,4 +2926,4 @@ mbedtls_x509_crt_parse_authoritykeyid:"data_files/authorityKeyId_subjectKeyId_wr
|
|||||||
|
|
||||||
X509 CRT parse Authority Key Id - Wrong Issuer Tag 4
|
X509 CRT parse Authority Key Id - Wrong Issuer Tag 4
|
||||||
depends_on:MBEDTLS_FS_IO:MBEDTLS_X509_CRT_PARSE_C:MBEDTLS_CERTS_C:MBEDTLS_SHA1_C:MBEDTLS_RSA_C
|
depends_on:MBEDTLS_FS_IO:MBEDTLS_X509_CRT_PARSE_C:MBEDTLS_CERTS_C:MBEDTLS_SHA1_C:MBEDTLS_RSA_C
|
||||||
mbedtls_x509_crt_parse_authoritykeyid:"data_files/authorityKeyId_subjectKeyId_wrong_Issuer4.crt":"":0:"":"0":0:MBEDTLS_ERR_ASN1_UNEXPECTED_TAG|MBEDTLS_ERR_X509_INVALID_NAME
|
mbedtls_x509_crt_parse_authoritykeyid:"data_files/authorityKeyId_subjectKeyId_wrong_Issuer4.crt":"":0:"":"0":0:MBEDTLS_ERR_ASN1_UNEXPECTED_TAG + MBEDTLS_ERR_X509_INVALID_NAME
|
||||||
|
|||||||
@@ -1412,7 +1412,7 @@ void mbedtls_x509_crt_parse_subjectkeyid( char * crt_path, char *subjectKeyId, i
|
|||||||
|
|
||||||
mbedtls_x509_crt_init( &crt );
|
mbedtls_x509_crt_init( &crt );
|
||||||
|
|
||||||
TEST_ASSERT( (mbedtls_x509_crt_parse_file( &crt, crt_path )& 0xFFFF) == retVal );
|
TEST_ASSERT( mbedtls_x509_crt_parse_file( &crt, crt_path ) == retVal );
|
||||||
|
|
||||||
if(retVal != 0)
|
if(retVal != 0)
|
||||||
{
|
{
|
||||||
@@ -1442,7 +1442,7 @@ void mbedtls_x509_crt_parse_authoritykeyid( char * crt_path, char *authorityKeyI
|
|||||||
|
|
||||||
mbedtls_x509_crt_init( &crt );
|
mbedtls_x509_crt_init( &crt );
|
||||||
|
|
||||||
TEST_ASSERT( (mbedtls_x509_crt_parse_file( &crt, crt_path )& 0xFFFF) == retVal );
|
TEST_ASSERT( mbedtls_x509_crt_parse_file( &crt, crt_path ) == retVal );
|
||||||
|
|
||||||
if (retVal != 0)
|
if (retVal != 0)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user