提交 9a3a9974 编写于 作者: F Felix Laurie von Massenbach 提交者: Ben Laurie

Remove unused BIGNUMs.

上级 a77889f5
...@@ -405,12 +405,8 @@ err: ...@@ -405,12 +405,8 @@ err:
int bn_probable_prime_dh_retry(BIGNUM *rnd, int bits, BN_CTX *ctx) int bn_probable_prime_dh_retry(BIGNUM *rnd, int bits, BN_CTX *ctx)
{ {
int i; int i;
BIGNUM *t1;
int ret = 0; int ret = 0;
BN_CTX_start(ctx);
if ((t1 = BN_CTX_get(ctx)) == NULL) goto err;
loop: loop:
if (!BN_rand(rnd, bits, 0, 1)) goto err; if (!BN_rand(rnd, bits, 0, 1)) goto err;
...@@ -427,7 +423,6 @@ loop: ...@@ -427,7 +423,6 @@ loop:
ret=1; ret=1;
err: err:
BN_CTX_end(ctx);
bn_check_top(rnd); bn_check_top(rnd);
return(ret); return(ret);
} }
...@@ -435,13 +430,11 @@ err: ...@@ -435,13 +430,11 @@ err:
int bn_probable_prime_dh_coprime(BIGNUM *rnd, int bits, BN_CTX *ctx) int bn_probable_prime_dh_coprime(BIGNUM *rnd, int bits, BN_CTX *ctx)
{ {
int i; int i;
BIGNUM *t1;
BIGNUM *offset_index; BIGNUM *offset_index;
BIGNUM *offset_count; BIGNUM *offset_count;
int ret = 0; int ret = 0;
BN_CTX_start(ctx); 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_index = BN_CTX_get(ctx)) == NULL) goto err;
if ((offset_count = BN_CTX_get(ctx)) == NULL) goto err; if ((offset_count = BN_CTX_get(ctx)) == NULL) goto err;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册