1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2026-01-06 11:41:12 +03:00

Merge pull request #3585 from jdurkop/fix/undefined-reference-3294

Fix the build with MBEDTLS_USE_PSA_CRYPTO without ECDSA
This commit is contained in:
Gilles Peskine
2020-09-10 21:59:49 +02:00
committed by GitHub
6 changed files with 45 additions and 12 deletions

View File

@@ -591,6 +591,9 @@ int mbedtls_pk_wrap_as_opaque( mbedtls_pk_context *pk,
psa_algorithm_t hash_alg )
{
#if !defined(MBEDTLS_ECP_C)
((void) pk);
((void) handle);
((void) hash_alg);
return( MBEDTLS_ERR_PK_TYPE_MISMATCH );
#else
const mbedtls_ecp_keypair *ec;