Apply patches to openvpn3 dependencies

This commit is contained in:
Sergey Abramchuk
2020-03-04 11:57:35 +03:00
parent 1e77a600a4
commit 6b782a9309
15 changed files with 212 additions and 18 deletions
@@ -448,6 +448,21 @@ exit:
}
/* END_CASE */
/* BEGIN_CASE depends_on:MBEDTLS_X509_CRT_PARSE_C:MBEDTLS_FS_IO */
void x509parse_crt_file_allow_exts( char *crt_file, int exts, int result )
{
mbedtls_x509_crt crt;
mbedtls_x509_crt_init( &crt );
crt.allowed_unsupported_critical_exts = exts;
TEST_ASSERT( mbedtls_x509_crt_parse_file( &crt, crt_file ) == result );
exit:
mbedtls_x509_crt_free( &crt );
}
/* END_CASE */
/* BEGIN_CASE depends_on:MBEDTLS_X509_CRT_PARSE_C */
void x509parse_crt( char *crt_data, char *result_str, int result )
{