fix mcapi w/o harden

This commit is contained in:
toddouska 2016-07-26 09:06:46 -07:00
parent a274386693
commit fc6a5c0702
1 changed files with 6 additions and 0 deletions

View File

@ -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
}