fix typo
authorNils Larsch <nils@openssl.org>
Sat, 23 Apr 2005 12:46:24 +0000 (12:46 +0000)
committerNils Larsch <nils@openssl.org>
Sat, 23 Apr 2005 12:46:24 +0000 (12:46 +0000)
crypto/dsa/dsa_ossl.c
crypto/rsa/rsa_eay.c

index 2bf83ca4195b35b2d2e29ab8915c0388cf0fc7ca..a25a29450028dd2525725b8dcc330adad83cbaaa 100644 (file)
@@ -281,7 +281,7 @@ static int dsa_do_verify(const unsigned char *dgst, int dgst_len, DSA_SIG *sig,
                {
                mont = BN_MONT_CTX_set_locked(
                                        (BN_MONT_CTX **)&dsa->method_mont_p,
-                                       CRYPTO_LOCK_DSA, dsa->p, ctx));
+                                       CRYPTO_LOCK_DSA, dsa->p, ctx);
                if (!mont)
                        goto err;
                }
index 143a25d2c415121b4dcb65915c4094cf54988ae7..368ac84f17d268b03d5b3cadf88f7e0b62abc8f9 100644 (file)
@@ -148,7 +148,7 @@ static int RSA_eay_public_encrypt(int flen, const unsigned char *from,
        if (rsa->flags & RSA_FLAG_CACHE_PUBLIC)
                {
                if (!BN_MONT_CTX_set_locked(&rsa->_method_mod_n,
-                                       CRYPTO_LOCK_RSA, rsa->n, ctx)
+                                       CRYPTO_LOCK_RSA, rsa->n, ctx))
                        goto err;
                }
 
@@ -521,7 +521,7 @@ static int RSA_eay_public_decrypt(int flen, const unsigned char *from,
        if (rsa->flags & RSA_FLAG_CACHE_PUBLIC)
                {
                if (!BN_MONT_CTX_set_locked(&rsa->_method_mod_n,
-                                       CRYPTO_LOCK_RSA, rsa->n, ctx)
+                                       CRYPTO_LOCK_RSA, rsa->n, ctx))
                        goto err;
                }
 
@@ -572,10 +572,10 @@ static int RSA_eay_mod_exp(BIGNUM *r0, const BIGNUM *I, RSA *rsa)
        if (rsa->flags & RSA_FLAG_CACHE_PRIVATE)
                {
                if (!BN_MONT_CTX_set_locked(&rsa->_method_mod_p,
-                                       CRYPTO_LOCK_RSA, rsa->p, ctx)
+                                       CRYPTO_LOCK_RSA, rsa->p, ctx))
                        goto err;
                if (!BN_MONT_CTX_set_locked(&rsa->_method_mod_q,
-                                       CRYPTO_LOCK_RSA, rsa->q, ctx)
+                                       CRYPTO_LOCK_RSA, rsa->q, ctx))
                        goto err;
                }