We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2a4dbbf commit 2de3d46Copy full SHA for 2de3d46
1 file changed
wolfcrypt/test/test.c
@@ -60077,6 +60077,8 @@ WOLFSSL_TEST_SUBROUTINE wc_test_ret_t cryptocb_test(void)
60077
/* set devId to something other than INVALID_DEVID */
60078
devId = 1;
60079
ret = wc_CryptoCb_RegisterDevice(devId, myCryptoDevCb, &myCtx);
60080
+ if (ret != 0)
60081
+ ret = WC_TEST_RET_ENC_EC(ret);
60082
#ifdef WOLF_CRYPTO_CB_FIND
60083
wc_CryptoCb_SetDeviceFindCb(myCryptoCbFind);
60084
#endif /* WOLF_CRYPTO_CB_FIND */
@@ -60187,6 +60189,8 @@ WOLFSSL_TEST_SUBROUTINE wc_test_ret_t cryptocb_test(void)
60187
60189
ret = cmac_test();
60188
60190
#endif
60191
60192
+ wc_CryptoCb_UnRegisterDevice(devId);
60193
+
60194
/* restore devId */
60195
devId = origDevId;
60196
0 commit comments