Add some tests for different available profiles

Add tests for suite b profile and for the next profile
This commit is contained in:
Ron Eldor 2018-02-06 18:47:17 +02:00
parent 099e61df52
commit c15399843e
2 changed files with 24 additions and 0 deletions

View file

@ -250,6 +250,10 @@ void x509_verify( char *crt_file, char *ca_file, char *crl_file,
if( strcmp( profile_str, "default" ) == 0 )
profile = &mbedtls_x509_crt_profile_default;
else if( strcmp( profile_str, "next" ) == 0 )
profile = &mbedtls_x509_crt_profile_next;
else if( strcmp( profile_str, "suite_b" ) == 0 )
profile = &mbedtls_x509_crt_profile_suiteb;
else if( strcmp( profile_str, "compat" ) == 0 )
profile = &compat_profile;
else