File tree Expand file tree Collapse file tree
wolfcrypt/src/port/Renesas Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3636 #include <wolfssl/wolfcrypt/port/Renesas/renesas-tsip-crypt.h>
3737 #define cmn_hw_lock tsip_hw_lock
3838 #define cmn_hw_unlock tsip_hw_unlock
39+
40+ #define FSPSM_ST TsipUserCtx;
41+ #define MAX_FSPSM_CBINDEX 5
3942#endif
4043
4144#include <wolfssl/wolfcrypt/wc_port.h>
@@ -57,6 +60,7 @@ static int gdevId = 7890; /* initial dev Id for Crypt Callback */
5760FSPSM_ST * gCbCtx [MAX_FSPSM_CBINDEX ];
5861#elif defined(WOLFSSL_RENESAS_TSIP_TLS ) || \
5962 defined(WOLFSSL_RENESAS_TSIP_CRYPTONLY )
63+ #define FSPSM_ST TsipUserCtx;
6064#define MAX_FSPSM_CBINDEX 5
6165TsipUserCtx * gCbCtx [MAX_FSPSM_CBINDEX ];
6266#endif
@@ -69,7 +73,7 @@ WOLFSSL_LOCAL int Renesas_cmn_Cleanup(WOLFSSL* ssl)
6973 int ret = 0 ;
7074 WOLFSSL_ENTER ("Renesas_cmn_Cleanup" );
7175 (void ) ssl ;
72-
76+
7377#if defined(WOLFSSL_RENESAS_TSIP_TLS )
7478 ret = tsip_TlsCleanup (ssl );
7579#endif
@@ -505,7 +509,7 @@ int wc_CryptoCb_CryptInitRenesasCmn(WOLFSSL* ssl, void* ctx)
505509 }
506510
507511 gCbCtx [cbInfo -> devId - 7890 ] = (void * )cbInfo ;
508-
512+
509513 return cbInfo -> devId ;
510514}
511515
You can’t perform that action at this time.
0 commit comments