Fix for wolfCrypt test with enable-all and asynccrypt.

This commit is contained in:
David Garske
2017-05-23 15:23:58 -07:00
parent 720f3fdad2
commit 64de29f277

View File

@@ -7728,6 +7728,9 @@ static int dh_generate_test(WC_RNG *rng)
/* Use API. */
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) {
ret = -5707;
}