dh_client: removed under CIPHER_ENCRYPT_ONLY

dh_client requests AES-ECB to do decryption. So it needs to be
removed under CIPHER_ENCRYPT_ONLY.

Signed-off-by: Yanray Wang <yanray.wang@arm.com>
This commit is contained in:
Yanray Wang 2023-08-24 15:50:38 +08:00
parent db9b3095fb
commit d7058b0a35

View File

@ -56,6 +56,13 @@ int main(void)
"MBEDTLS_CTR_DRBG_C and/or MBEDTLS_SHA1_C not defined.\n"); "MBEDTLS_CTR_DRBG_C and/or MBEDTLS_SHA1_C not defined.\n");
mbedtls_exit(0); mbedtls_exit(0);
} }
#elif defined(MBEDTLS_CIPHER_ENCRYPT_ONLY)
int main(void)
{
mbedtls_printf("MBEDTLS_CIPHER_ENCRYPT_ONLY implicitly defined.\n");
mbedtls_exit(0);
}
#else #else