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 <toth92g@gmail.com>
This commit is contained in:
toth92g
2021-03-11 10:51:06 +01:00
committed by Przemek Stekiel
parent 3c2243c6d5
commit 0e2e2d6841
2 changed files with 3 additions and 3 deletions

View File

@@ -1485,7 +1485,7 @@ void mbedtls_x509_crt_parse_subjectkeyid(char *crt_path,
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) {
while (i < subjectKeyIdLength) {
@@ -1519,7 +1519,7 @@ void mbedtls_x509_crt_parse_authoritykeyid(char *crt_path,
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) {
/* KeyId test */