mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-02 12:14:38 +02:00
Fix for wolfCrypt test with enable-all and asynccrypt.
This commit is contained in:
@@ -7728,6 +7728,9 @@ static int dh_generate_test(WC_RNG *rng)
|
|||||||
|
|
||||||
/* Use API. */
|
/* Use API. */
|
||||||
ret = wc_DhGenerateKeyPair(&smallKey, rng, priv, &privSz, pub, &pubSz);
|
ret = wc_DhGenerateKeyPair(&smallKey, rng, priv, &privSz, pub, &pubSz);
|
||||||
|
#if defined(WOLFSSL_ASYNC_CRYPT)
|
||||||
|
ret = wc_AsyncWait(ret, &smallKey.asyncDev, WC_ASYNC_FLAG_NONE);
|
||||||
|
#endif
|
||||||
if (ret != 0) {
|
if (ret != 0) {
|
||||||
ret = -5707;
|
ret = -5707;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user