mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-02 12:14:38 +02:00
Fixes for wolfCrypt test with asynchronous support enabled and --enable-nginx
.
This commit is contained in:
@@ -15693,6 +15693,9 @@ static int ecc_test_make_pub(WC_RNG* rng)
|
|||||||
|
|
||||||
x = FOURK_BUF;
|
x = FOURK_BUF;
|
||||||
ret = wc_ecc_shared_secret(&key, &pub, exportBuf, &x);
|
ret = wc_ecc_shared_secret(&key, &pub, exportBuf, &x);
|
||||||
|
#if defined(WOLFSSL_ASYNC_CRYPT)
|
||||||
|
ret = wc_AsyncWait(ret, &pub.asyncDev, WC_ASYNC_FLAG_CALL_AGAIN);
|
||||||
|
#endif
|
||||||
wc_ecc_free(&pub);
|
wc_ecc_free(&pub);
|
||||||
if (ret != 0) {
|
if (ret != 0) {
|
||||||
ERROR_OUT(-8332, done);
|
ERROR_OUT(-8332, done);
|
||||||
@@ -16601,6 +16604,9 @@ static int ecc_ssh_test(ecc_key* key)
|
|||||||
|
|
||||||
/* Use API. */
|
/* Use API. */
|
||||||
ret = wc_ecc_shared_secret_ssh(key, &key->pubkey, out, &outLen);
|
ret = wc_ecc_shared_secret_ssh(key, &key->pubkey, out, &outLen);
|
||||||
|
#if defined(WOLFSSL_ASYNC_CRYPT)
|
||||||
|
ret = wc_AsyncWait(ret, &key->asyncDev, WC_ASYNC_FLAG_CALL_AGAIN);
|
||||||
|
#endif
|
||||||
if (ret != 0)
|
if (ret != 0)
|
||||||
return -8448;
|
return -8448;
|
||||||
return 0;
|
return 0;
|
||||||
|
Reference in New Issue
Block a user