Strange how one line can make a world of difference, particularly when
authorGeoff Thorpe <geoff@openssl.org>
Mon, 26 Jun 2000 15:58:33 +0000 (15:58 +0000)
committerGeoff Thorpe <geoff@openssl.org>
Mon, 26 Jun 2000 15:58:33 +0000 (15:58 +0000)
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

index a618de60489361de7a01fa4a280512ee5a22b363..bab20d1e28334a564ce5007ce6656f35ac25a243 100644 (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;
        }