Skip to content

Commit 3f49c4e

Browse files
author
Andras Fekete
committed
Better fix for PR#67
1 parent a0498a2 commit 3f49c4e

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

wolfcrypt/src/async.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,8 @@ 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 async return code */
438+
/* called from `wolfSSL_AsyncPop` to check if event is done and deliver
439+
* async return code */
439440
int wolfAsync_EventPop(WOLF_EVENT* event, enum WOLF_EVENT_TYPE event_type)
440441
{
441442
int ret;
@@ -683,6 +684,9 @@ int wolfAsync_EventQueuePoll(WOLF_EVENT_QUEUE* queue, void* context_filter,
683684
{
684685
event->ret = wolfAsync_DoSw(asyncDev);
685686
}
687+
#elif defined(WOLF_CRYPTO_CB) || defined(HAVE_PK_CALLBACKS)
688+
/* Use crypto or PK callbacks */
689+
686690
#else
687691
#warning No async crypt device defined!
688692
#endif

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-
#else
363+
#elif defined(WOLFSSL_ASYNC_CRYPT_SW)
364364
WC_ASYNC_SW sw;
365365
#endif
366366
} WC_ASYNC_DEV;

0 commit comments

Comments
 (0)