1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-08-01 10:06:53 +03:00

Merge pull request #4671 from mpg/x509-crt-profile-public

Make the fields of mbedtls_x509_crt_profile public
This commit is contained in:
Dave Rodgman
2021-06-23 16:06:12 +01:00
committed by GitHub
2 changed files with 41 additions and 4 deletions

View File

@ -166,6 +166,17 @@ const mbedtls_x509_crt_profile mbedtls_x509_crt_profile_suiteb =
0,
};
/*
* Empty / all-forbidden profile
*/
const mbedtls_x509_crt_profile mbedtls_x509_crt_profile_none =
{
0,
0,
0,
(uint32_t) -1,
};
/*
* Check md_alg against profile
* Return 0 if md_alg is acceptable for this profile, -1 otherwise