Strange how one line can make a world of difference, particularly when

the one line turns an error return value into a success return value.
:-) "openssl speed -engine hwcrhk rsa1024" now passes through ok.
This commit is contained in:
Geoff Thorpe 2000-06-26 15:58:33 +00:00
parent 13232559fc
commit 665b5ab5a7

View File

@ -615,6 +615,8 @@ static int hwcrhk_rsa_mod_exp(BIGNUM *r, BIGNUM *I, RSA *rsa)
goto err;
}
}
/* If we're here, we must be here with some semblance of success :-) */
to_return = 1;
err:
return to_return;
}