diff options
author | Felix Laurie von Massenbach <felix@erbridge.co.uk> | 2014-05-27 13:43:36 +0100 |
---|---|---|
committer | Ben Laurie <ben@links.org> | 2014-06-01 15:31:27 +0100 |
commit | 9a3a99748b75d9656467e28de569bd03bf3edd8f (patch) | |
tree | c1679d8ef6dac1867726910e36df9557108ec1ee /crypto/bn/bn_prime.c | |
parent | a77889f5609cf49f0c72e1cc414a6c15f7d3cef0 (diff) |
Remove unused BIGNUMs.
Diffstat (limited to 'crypto/bn/bn_prime.c')
-rw-r--r-- | crypto/bn/bn_prime.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/crypto/bn/bn_prime.c b/crypto/bn/bn_prime.c index 117dda955b..093ebee3ad 100644 --- a/crypto/bn/bn_prime.c +++ b/crypto/bn/bn_prime.c @@ -405,12 +405,8 @@ err: int bn_probable_prime_dh_retry(BIGNUM *rnd, int bits, BN_CTX *ctx) { int i; - BIGNUM *t1; int ret = 0; - BN_CTX_start(ctx); - if ((t1 = BN_CTX_get(ctx)) == NULL) goto err; - loop: if (!BN_rand(rnd, bits, 0, 1)) goto err; @@ -427,7 +423,6 @@ loop: ret=1; err: - BN_CTX_end(ctx); bn_check_top(rnd); return(ret); } @@ -435,13 +430,11 @@ err: int bn_probable_prime_dh_coprime(BIGNUM *rnd, int bits, BN_CTX *ctx) { int i; - BIGNUM *t1; BIGNUM *offset_index; BIGNUM *offset_count; int ret = 0; BN_CTX_start(ctx); - if ((t1 = BN_CTX_get(ctx)) == NULL) goto err; if ((offset_index = BN_CTX_get(ctx)) == NULL) goto err; if ((offset_count = BN_CTX_get(ctx)) == NULL) goto err; |