mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-03 20:54:41 +02:00
resolve CB_ONLY cases
This commit is contained in:
@@ -5334,6 +5334,7 @@ static int _ecc_make_key_ex(WC_RNG* rng, int keysize, ecc_key* key,
|
|||||||
if (err == CRYPTOCB_UNAVAILABLE) {
|
if (err == CRYPTOCB_UNAVAILABLE) {
|
||||||
return NO_VALID_DEVID;
|
return NO_VALID_DEVID;
|
||||||
}
|
}
|
||||||
|
return err;
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@@ -3179,9 +3179,10 @@ static int wc_RsaFunction_ex(const byte* in, word32 inLen, byte* out,
|
|||||||
/* fall-through when unavailable and try using software */
|
/* fall-through when unavailable and try using software */
|
||||||
#endif
|
#endif
|
||||||
#ifdef WOLF_CRYPTO_CB_ONLY_RSA
|
#ifdef WOLF_CRYPTO_CB_ONLY_RSA
|
||||||
if (ret == CRYPTOCB_UNAVAILABLE)
|
if (ret == CRYPTOCB_UNAVAILABLE) {
|
||||||
return NO_VALID_DEVID;
|
return NO_VALID_DEVID;
|
||||||
}
|
}
|
||||||
|
return ret;
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user