psa: add compile-time error if builded with crypto cb

This commit is contained in:
Marco Oliverio
2022-01-31 16:38:13 +01:00
parent b8635efda7
commit 2077184953

View File

@ -44,6 +44,13 @@
#include <wolfssl/wolfcrypt/settings.h>
/* PSA implementation takes over the Sha struct and Sha functions implementation
completely. Devoiding the struct of the DevId field and hooks to make
crypto_cb work. */
#if !defined(WOLFSSL_PSA_NO_HASH) && defined(WOLF_CRYPTO_CB)
#error "WOLFSSL PSA is not supported with WOLF_CRYPTO_CB"
#endif
#if defined(WOLFSSL_HAVE_PSA)
#include <psa/crypto.h>