Merge pull request #5760 from tom-daubney-arm/2-28_correct_x509_flag_parse_tests

[Backport 2.28] Set flag to proper value in x509 parse tests
This commit is contained in:
Gilles Peskine 2022-04-28 18:27:41 +02:00 committed by GitHub
commit 585a412129
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -35,8 +35,8 @@ const mbedtls_x509_crt_profile compat_profile =
MBEDTLS_X509_ID_FLAG( MBEDTLS_MD_SHA256 ) |
MBEDTLS_X509_ID_FLAG( MBEDTLS_MD_SHA384 ) |
MBEDTLS_X509_ID_FLAG( MBEDTLS_MD_SHA512 ),
0xFFFFFFF, /* Any PK alg */
0xFFFFFFF, /* Any curve */
0xFFFFFFFF, /* Any PK alg */
0xFFFFFFFF, /* Any curve */
1024,
};
@ -53,8 +53,8 @@ const mbedtls_x509_crt_profile profile_rsa3072 =
const mbedtls_x509_crt_profile profile_sha512 =
{
MBEDTLS_X509_ID_FLAG( MBEDTLS_MD_SHA512 ),
0xFFFFFFF, /* Any PK alg */
0xFFFFFFF, /* Any curve */
0xFFFFFFFF, /* Any PK alg */
0xFFFFFFFF, /* Any curve */
1024,
};