Skip to content

Commit 6968105

Browse files
authored
Merge pull request #6831 from miyazakh/renesas_tsip_fix
fix compile error due to rz port change
2 parents 96205fc + f9fb966 commit 6968105

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

wolfcrypt/src/port/Renesas/renesas_common.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@
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 */
5760
FSPSM_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
6165
TsipUserCtx *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

0 commit comments

Comments
 (0)