forked from wolfSSL/wolfssl
Merge pull request #6831 from miyazakh/renesas_tsip_fix
fix compile error due to rz port change
This commit is contained in:
@ -36,6 +36,9 @@
|
|||||||
#include <wolfssl/wolfcrypt/port/Renesas/renesas-tsip-crypt.h>
|
#include <wolfssl/wolfcrypt/port/Renesas/renesas-tsip-crypt.h>
|
||||||
#define cmn_hw_lock tsip_hw_lock
|
#define cmn_hw_lock tsip_hw_lock
|
||||||
#define cmn_hw_unlock tsip_hw_unlock
|
#define cmn_hw_unlock tsip_hw_unlock
|
||||||
|
|
||||||
|
#define FSPSM_ST TsipUserCtx;
|
||||||
|
#define MAX_FSPSM_CBINDEX 5
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <wolfssl/wolfcrypt/wc_port.h>
|
#include <wolfssl/wolfcrypt/wc_port.h>
|
||||||
@ -57,6 +60,7 @@ static int gdevId = 7890; /* initial dev Id for Crypt Callback */
|
|||||||
FSPSM_ST *gCbCtx[MAX_FSPSM_CBINDEX];
|
FSPSM_ST *gCbCtx[MAX_FSPSM_CBINDEX];
|
||||||
#elif defined(WOLFSSL_RENESAS_TSIP_TLS) || \
|
#elif defined(WOLFSSL_RENESAS_TSIP_TLS) || \
|
||||||
defined(WOLFSSL_RENESAS_TSIP_CRYPTONLY)
|
defined(WOLFSSL_RENESAS_TSIP_CRYPTONLY)
|
||||||
|
#define FSPSM_ST TsipUserCtx;
|
||||||
#define MAX_FSPSM_CBINDEX 5
|
#define MAX_FSPSM_CBINDEX 5
|
||||||
TsipUserCtx *gCbCtx[MAX_FSPSM_CBINDEX];
|
TsipUserCtx *gCbCtx[MAX_FSPSM_CBINDEX];
|
||||||
#endif
|
#endif
|
||||||
@ -69,7 +73,7 @@ WOLFSSL_LOCAL int Renesas_cmn_Cleanup(WOLFSSL* ssl)
|
|||||||
int ret = 0;
|
int ret = 0;
|
||||||
WOLFSSL_ENTER("Renesas_cmn_Cleanup");
|
WOLFSSL_ENTER("Renesas_cmn_Cleanup");
|
||||||
(void) ssl;
|
(void) ssl;
|
||||||
|
|
||||||
#if defined(WOLFSSL_RENESAS_TSIP_TLS)
|
#if defined(WOLFSSL_RENESAS_TSIP_TLS)
|
||||||
ret = tsip_TlsCleanup(ssl);
|
ret = tsip_TlsCleanup(ssl);
|
||||||
#endif
|
#endif
|
||||||
@ -505,7 +509,7 @@ int wc_CryptoCb_CryptInitRenesasCmn(WOLFSSL* ssl, void* ctx)
|
|||||||
}
|
}
|
||||||
|
|
||||||
gCbCtx[cbInfo->devId - 7890] = (void*)cbInfo;
|
gCbCtx[cbInfo->devId - 7890] = (void*)cbInfo;
|
||||||
|
|
||||||
return cbInfo->devId;
|
return cbInfo->devId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user