Skip to content

Commit 2648188

Browse files
committed
Attempt to workaround API change in wolfHSM
1 parent 325278c commit 2648188

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

hal/sim.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,9 +170,7 @@ whCommServerConfig cs_conf[1] = {{
170170
}};
171171

172172
/* Crypto context */
173-
whServerCryptoContext crypto[1] = {{
174-
.devId = INVALID_DEVID,
175-
}};
173+
whServerCryptoContext crypto[1] = {{0}};
176174

177175
#if defined(WOLFHSM_CFG_SHE_EXTENSION)
178176
whServerSheContext she[1] = {{0}};
@@ -182,6 +180,9 @@ whServerConfig s_conf[1] = {{
182180
.comm_config = cs_conf,
183181
.nvm = nvm,
184182
.crypto = crypto,
183+
#if defined(WOLF_CRYPTO_CB)
184+
.devId = INVALID_DEVID,
185+
#endif
185186
}};
186187

187188
whServerContext hsmServerCtx = {0};

0 commit comments

Comments
 (0)