Skip to content

Commit 2bf4708

Browse files
authored
Revert "Fixes for support async with crypto or pk callbacks"
1 parent 850eeab commit 2bf4708

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

wolfcrypt/src/async.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -435,8 +435,7 @@ int wolfAsync_DevCopy(WC_ASYNC_DEV* src, WC_ASYNC_DEV* dst)
435435
return ret;
436436
}
437437

438-
/* called from `wolfSSL_AsyncPop` to check if event is done and deliver
439-
* async return code */
438+
/* called from `wolfSSL_AsyncPop` to check if event is done and deliver async return code */
440439
int wolfAsync_EventPop(WOLF_EVENT* event, enum WOLF_EVENT_TYPE event_type)
441440
{
442441
int ret;
@@ -676,9 +675,6 @@ int wolfAsync_EventQueuePoll(WOLF_EVENT_QUEUE* queue, void* context_filter,
676675
break;
677676
}
678677

679-
#elif defined(WOLF_CRYPTO_CB) || defined(HAVE_PK_CALLBACKS)
680-
/* Use crypto or PK callbacks */
681-
682678
#elif defined(WOLFSSL_ASYNC_CRYPT_SW)
683679
#ifdef WOLF_ASYNC_SW_SKIP_MOD
684680
/* Simulate random hardware not done */

wolfssl/wolfcrypt/async.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ typedef struct WC_ASYNC_DEV {
360360
CaviumNitroxDev nitrox;
361361
#elif defined(HAVE_INTEL_QA)
362362
IntelQaDev qat;
363-
#elif defined(WOLFSSL_ASYNC_CRYPT_SW)
363+
#else
364364
WC_ASYNC_SW sw;
365365
#endif
366366
} WC_ASYNC_DEV;

0 commit comments

Comments
 (0)