Add include for project for cases when a custom user_settings.h file is used. Tested support with PSA.

pull/7325/head
David Garske 2024-03-15 14:48:32 -07:00
parent 85c22abe4e
commit 03e306a98f
2 changed files with 9 additions and 7 deletions

View File

@ -6,6 +6,10 @@ if(CONFIG_WOLFSSL)
target_compile_definitions(wolfSSL INTERFACE
WOLFSSL_SETTINGS_FILE="${CONFIG_WOLFSSL_SETTINGS_FILE}"
)
zephyr_include_directories(
${APPLICATION_CONFIG_DIR}
${APPLICATION_CONFIG_DIR}/src
)
endif()
zephyr_include_directories(

View File

@ -69,7 +69,10 @@ extern "C" {
/* PSA support */
#ifdef CONFIG_MBEDTLS_PSA_CRYPTO_C
#define WOLFSSL_HAVE_PSA
#define WOLFSSL_PSA_GLOBAL_LOCK
#ifndef SINGLE_THREADED
#define WOLFSSL_PSA_GLOBAL_LOCK
#endif
#define WC_NO_HASHDRBG /* use PSA RNG directly via wc_psa_get_random */
#endif
/* ------------------------------------------------------------------------- */
@ -135,12 +138,6 @@ extern "C" {
/* Algorithms */
/* ------------------------------------------------------------------------- */
/* RNG */
#if 0
/* Example for disabling DRBG and using TRNG directly */
extern int cc310_random_generate(unsigned char* output, unsigned int size);
#define CUSTOM_RAND_GENERATE_BLOCK cc310_random_generate
#define WC_NO_HASHDRBG
#endif
#ifndef WC_NO_HASHDRBG
#define HAVE_HASHDRBG /* Use DRBG SHA2-256 and seed */
#endif
@ -173,6 +170,7 @@ extern "C" {
#undef NO_RSA
#define WC_RSA_BLINDING
//#define WC_RSA_NO_PADDING
//#define RSA_LOW_MEM
#if 0
#define WOLFSSL_KEY_GEN /* For RSA Key gen only */