~ubuntu-branches/ubuntu/maverick/openssl/maverick

« back to all changes in this revision

Viewing changes to crypto/bn/bn_mont.c

  • Committer: Bazaar Package Importer
  • Author(s): Kurt Roeckx
  • Date: 2006-05-15 16:00:58 UTC
  • mto: (11.1.1 lenny)
  • mto: This revision was merged to the branch mainline in revision 6.
  • Revision ID: james.westby@ubuntu.com-20060515160058-pg6lnbkkpkwpdj2e
Tags: upstream-0.9.8b
ImportĀ upstreamĀ versionĀ 0.9.8b

Show diffs side-by-side

added added

removed removed

Lines of Context:
358
358
        CRYPTO_w_lock(lock);
359
359
        if (!*pmont)
360
360
                {
361
 
                *pmont = BN_MONT_CTX_new();
362
 
                if (*pmont && !BN_MONT_CTX_set(*pmont, mod, ctx))
363
 
                        {
364
 
                        BN_MONT_CTX_free(*pmont);
365
 
                        *pmont = NULL;
366
 
                        }
 
361
                BN_MONT_CTX *mtmp;
 
362
                mtmp = BN_MONT_CTX_new();
 
363
                if (mtmp && !BN_MONT_CTX_set(mtmp, mod, ctx))
 
364
                        BN_MONT_CTX_free(mtmp);
 
365
                else
 
366
                        *pmont = mtmp;
367
367
                }
368
368
        CRYPTO_w_unlock(lock);
369
369
        return *pmont;