Add WOLFSSL_SP_NO_DYN_STACK macro to avoid compilation error in CC-RX compiler

This commit is contained in:
TakayukiMatsuo 2023-04-19 04:39:49 +09:00
parent 42b73ee326
commit cc747f0094
4 changed files with 42 additions and 1 deletions

View File

@ -61,6 +61,17 @@
#define SINGLE_THREADED
/*#define FREERTOS*/
/*-- Compiler related definitions ---------------------------------------------
*
* CC-RX is C99 compliant, but may not provide the features wolfSSL requires.
* This section defines macros for such cases to avoid build-time or run-time
* failures.
*
*----------------------------------------------------------------------------*/
/* CC-RX does not support variable length array */
#define WOLFSSL_SP_NO_DYN_STACK
/*-- Cipher related definitions -----------------------------------------------
*

View File

@ -63,6 +63,17 @@
#define FREERTOS_TCP
/*-- Compiler related definitions ---------------------------------------------
*
* CC-RX is C99 compliant, but may not provide the features wolfSSL requires.
* This section defines macros for such cases to avoid build-time or run-time
* failures.
*
*----------------------------------------------------------------------------*/
/* CC-RX does not support variable length array */
#define WOLFSSL_SP_NO_DYN_STACK
/*-- Cipher related definitions -----------------------------------------------

View File

@ -77,6 +77,18 @@
#define WOLFSSL_USER_IO
#endif
/*-- Compiler related definitions ---------------------------------------------
*
* CC-RX is C99 compliant, but may not provide the features wolfSSL requires.
* This section defines macros for such cases to avoid build-time or run-time
* failures.
*
*----------------------------------------------------------------------------*/
/* CC-RX does not support variable length array */
#define WOLFSSL_SP_NO_DYN_STACK
/*-- Cipher related definitions -----------------------------------------------
*
*

View File

@ -1913,8 +1913,15 @@ WOLFSSL_LOCAL int tsip_Tls13SendCertVerify(WOLFSSL* ssl)
}
if (ret == 0) {
if (isRsa) {
ret = tsipImportPublicKey(tuc, tuc->wrappedKeyType);
}
else {
#if defined(WOLFSSL_CHECK_SIG_FAULTS)
ret = tsipImportPublicKey(tuc, tuc->wrappedKeyType);
#endif
}
}
if (ret == 0) {
if (isRsa) {