From 665b5ab5a74fae76c489feaf77ade2553588446a Mon Sep 17 00:00:00 2001 From: Geoff Thorpe Date: Mon, 26 Jun 2000 15:58:33 +0000 Subject: [PATCH] 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. --- crypto/engine/hw_ncipher.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crypto/engine/hw_ncipher.c b/crypto/engine/hw_ncipher.c index a618de6048..bab20d1e28 100644 --- a/crypto/engine/hw_ncipher.c +++ b/crypto/engine/hw_ncipher.c @@ -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; } -- 2.25.1