File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -513,9 +513,6 @@ SQRTMOD_USE_MOD_EXP
513513SSL_SNIFFER_EXPORTS
514514SSN_BUILDING_LIBYASSL
515515STATIC_CHUNKS_ONLY
516- STSAFE_HOST_KEY_CIPHER
517- STSAFE_HOST_KEY_MAC
518- STSAFE_I2C_BUS
519516STM32F107xC
520517STM32F207xx
521518STM32F217xx
@@ -548,6 +545,9 @@ STM32WL55xx
548545STM32_AESGCM_PARTIAL
549546STM32_HW_CLOCK_AUTO
550547STM32_NUTTX_RNG
548+ STSAFE_HOST_KEY_CIPHER
549+ STSAFE_HOST_KEY_MAC
550+ STSAFE_I2C_BUS
551551TASK_EXTRA_STACK_SIZE
552552TCP_NODELAY
553553TFM_ALREADY_SET
Original file line number Diff line number Diff line change 6868#if defined(WOLFSSL_RENESAS_RX64_HASH )
6969 #include <wolfssl/wolfcrypt/port/Renesas/renesas-rx64-hw-crypt.h>
7070#endif
71- #if defined( WOLFSSL_STSAFEA100 ) || defined( WOLFSSL_STSAFEA120 )
71+ #ifdef WOLFSSL_STSAFE
7272 #include <wolfssl/wolfcrypt/port/st/stsafe.h>
7373#endif
7474
@@ -303,7 +303,7 @@ int wolfCrypt_Init(void)
303303 return ret ;
304304 }
305305 #endif
306- #if defined( WOLFSSL_STSAFEA100 ) || defined( WOLFSSL_STSAFEA120 )
306+ #ifdef WOLFSSL_STSAFE
307307 ret = stsafe_interface_init ();
308308 if (ret != 0 ) {
309309 WOLFSSL_MSG ("STSAFE init failed" );
Original file line number Diff line number Diff line change 3535#include <wolfssl/ssl.h>
3636#endif
3737
38- /* Combined STSAFE macro - enables when either A100 or A120 is defined */
39- #if defined(WOLFSSL_STSAFEA100 ) || defined(WOLFSSL_STSAFEA120 )
40- #undef WOLFSSL_STSAFE
41- #define WOLFSSL_STSAFE
42- #endif
43-
4438#ifdef WOLFSSL_STSAFE
4539
4640/* -------------------------------------------------------------------------- */
5246 * This maintains backwards compatibility with older integrations that
5347 * used a separate interface file.
5448 *
55- * When NOT defined ( default): All code is self-contained in stsafe.c using
49+ * When NOT set (the default): All code is self-contained in stsafe.c using
5650 * the appropriate SDK (STSELib for A120, STSAFE-A1xx SDK for A100/A110).
5751 *
5852 * When defined: Include customer-provided stsafe_interface.h which must define:
Original file line number Diff line number Diff line change @@ -2139,6 +2139,12 @@ extern void uITRON4_free(void *p) ;
21392139
21402140#endif /* WOLFSSL_MAXQ1065 || WOLFSSL_MAXQ108X */
21412141
2142+ /* Combined STSAFE macro - enables when either A100 or A120 is defined */
2143+ #if defined(WOLFSSL_STSAFEA100 ) || defined(WOLFSSL_STSAFEA120 )
2144+ #undef WOLFSSL_STSAFE
2145+ #define WOLFSSL_STSAFE
2146+ #endif
2147+
21422148#if defined(WOLFSSL_STM32F2 ) || defined(WOLFSSL_STM32F4 ) || \
21432149 defined(WOLFSSL_STM32F7 ) || defined(WOLFSSL_STM32F1 ) || \
21442150 defined(WOLFSSL_STM32L4 ) || defined(WOLFSSL_STM32L5 ) || \
You can’t perform that action at this time.
0 commit comments