Skip to content

Commit dcbe3db

Browse files
committed
Fix SHE build
1 parent f45d111 commit dcbe3db

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

test/wh_test_she.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -816,9 +816,7 @@ static int wh_She_TestMasterEcuKeyFallback(void)
816816
whNvmContext nvm[1] = {{0}};
817817

818818
/* Crypto context */
819-
whServerCryptoContext crypto[1] = {{
820-
.devId = INVALID_DEVID,
821-
}};
819+
whServerCryptoContext crypto[1] = {0};
822820

823821
whServerSheContext she[1];
824822
memset(she, 0, sizeof(she));
@@ -833,7 +831,7 @@ static int wh_She_TestMasterEcuKeyFallback(void)
833831

834832
WH_TEST_RETURN_ON_FAIL(wh_Nvm_Init(nvm, n_conf));
835833
WH_TEST_RETURN_ON_FAIL(wolfCrypt_Init());
836-
WH_TEST_RETURN_ON_FAIL(wc_InitRng_ex(crypto->rng, NULL, crypto->devId));
834+
WH_TEST_RETURN_ON_FAIL(wc_InitRng_ex(crypto->rng, NULL, s_conf->devId));
837835
WH_TEST_RETURN_ON_FAIL(wh_Server_Init(server, s_conf));
838836
WH_TEST_RETURN_ON_FAIL(wh_Server_SetConnected(server, WH_COMM_CONNECTED));
839837

0 commit comments

Comments
 (0)