1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-12-24 17:41:01 +03:00

x509_crt_parse() did not increase total_failed on PEM error

Result was that PEM errors in files with multiple certificates were not
detectable by the user.
This commit is contained in:
Paul Bakker
2014-09-26 14:53:04 +02:00
parent 9e4ff953de
commit 5a5fa92bfe
6 changed files with 123 additions and 0 deletions

View File

@@ -898,6 +898,7 @@ int x509_crt_parse( x509_crt *chain, const unsigned char *buf, size_t buflen )
if( first_error == 0 )
first_error = ret;
total_failed++;
continue;
}
else