Fix pkparse bug wrt MBEDTLS_RSA_ALT

Some code paths want to access members of the mbedtls_rsa_context structure.
We can only do that when using our own implementation, as otherwise we don't
know anything about that structure.
This commit is contained in:
Manuel Pégourié-Gonnard 2020-02-18 10:22:54 +01:00 committed by Manuel Pégourié-Gonnard
parent 96ed13e21b
commit d09fcdedb9

View file

@ -784,7 +784,7 @@ static int pk_parse_key_pkcs1_der( mbedtls_rsa_context *rsa,
NULL, NULL ) ) != 0 )
goto cleanup;
#if !defined(MBEDTLS_RSA_NO_CRT)
#if !defined(MBEDTLS_RSA_NO_CRT) && !defined(MBEDTLS_RSA_ALT)
/*
* The RSA CRT parameters DP, DQ and QP are nominally redundant, in
* that they can be easily recomputed from D, P and Q. However by