mirror of https://github.com/wolfSSL/wolfssl
fix mcapi w/o harden
This commit is contained in:
parent
a274386693
commit
fc6a5c0702
|
@ -544,7 +544,13 @@ int CRYPT_RSA_SetRng(CRYPT_RSA_CTX* rsa, CRYPT_RNG_CTX* rng)
|
|||
if (rsa == NULL)
|
||||
return BAD_FUNC_ARG;
|
||||
|
||||
#ifdef WC_RSA_BLINDING
|
||||
return wc_RsaSetRNG((RsaKey*)rsa->holder, (WC_RNG*)rng);
|
||||
#else
|
||||
(void)rng;
|
||||
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue