Loading crypto/bn/bn_ctx.c +2 −0 Original line number Diff line number Diff line Loading @@ -184,6 +184,8 @@ void BN_CTX_start(BN_CTX *ctx) void BN_CTX_end(BN_CTX *ctx) { if (ctx == NULL) return; CTXDBG("ENTER BN_CTX_end()", ctx); if (ctx->err_stack) ctx->err_stack--; Loading crypto/bn/bn_lib.c +2 −0 Original line number Diff line number Diff line Loading @@ -338,6 +338,8 @@ void BN_swap(BIGNUM *a, BIGNUM *b) void BN_clear(BIGNUM *a) { if (a == NULL) return; bn_check_top(a); if (a->d != NULL) OPENSSL_cleanse(a->d, sizeof(*a->d) * a->dmax); Loading crypto/bn/bn_prime.c +1 −2 Original line number Diff line number Diff line Loading @@ -170,7 +170,6 @@ int BN_generate_prime_ex(BIGNUM *ret, int bits, int safe, found = 1; err: OPENSSL_free(mods); if (ctx != NULL) BN_CTX_end(ctx); BN_CTX_free(ctx); bn_check_top(ret); Loading crypto/dh/dh_check.c +6 −12 Original line number Diff line number Diff line Loading @@ -58,10 +58,8 @@ int DH_check_params(const DH *dh, int *ret) ok = 1; err: if (ctx != NULL) { BN_CTX_end(ctx); BN_CTX_free(ctx); } return ok; } Loading Loading @@ -171,10 +169,8 @@ int DH_check(const DH *dh, int *ret) } ok = 1; err: if (ctx != NULL) { BN_CTX_end(ctx); BN_CTX_free(ctx); } return ok; } Loading Loading @@ -225,9 +221,7 @@ int DH_check_pub_key(const DH *dh, const BIGNUM *pub_key, int *ret) ok = 1; err: if (ctx != NULL) { BN_CTX_end(ctx); BN_CTX_free(ctx); } return ok; } crypto/dh/dh_gen.c +2 −4 Original line number Diff line number Diff line Loading @@ -122,9 +122,7 @@ static int dh_builtin_genparams(DH *ret, int prime_len, int generator, ok = 0; } if (ctx != NULL) { BN_CTX_end(ctx); BN_CTX_free(ctx); } return ok; } Loading
crypto/bn/bn_ctx.c +2 −0 Original line number Diff line number Diff line Loading @@ -184,6 +184,8 @@ void BN_CTX_start(BN_CTX *ctx) void BN_CTX_end(BN_CTX *ctx) { if (ctx == NULL) return; CTXDBG("ENTER BN_CTX_end()", ctx); if (ctx->err_stack) ctx->err_stack--; Loading
crypto/bn/bn_lib.c +2 −0 Original line number Diff line number Diff line Loading @@ -338,6 +338,8 @@ void BN_swap(BIGNUM *a, BIGNUM *b) void BN_clear(BIGNUM *a) { if (a == NULL) return; bn_check_top(a); if (a->d != NULL) OPENSSL_cleanse(a->d, sizeof(*a->d) * a->dmax); Loading
crypto/bn/bn_prime.c +1 −2 Original line number Diff line number Diff line Loading @@ -170,7 +170,6 @@ int BN_generate_prime_ex(BIGNUM *ret, int bits, int safe, found = 1; err: OPENSSL_free(mods); if (ctx != NULL) BN_CTX_end(ctx); BN_CTX_free(ctx); bn_check_top(ret); Loading
crypto/dh/dh_check.c +6 −12 Original line number Diff line number Diff line Loading @@ -58,10 +58,8 @@ int DH_check_params(const DH *dh, int *ret) ok = 1; err: if (ctx != NULL) { BN_CTX_end(ctx); BN_CTX_free(ctx); } return ok; } Loading Loading @@ -171,10 +169,8 @@ int DH_check(const DH *dh, int *ret) } ok = 1; err: if (ctx != NULL) { BN_CTX_end(ctx); BN_CTX_free(ctx); } return ok; } Loading Loading @@ -225,9 +221,7 @@ int DH_check_pub_key(const DH *dh, const BIGNUM *pub_key, int *ret) ok = 1; err: if (ctx != NULL) { BN_CTX_end(ctx); BN_CTX_free(ctx); } return ok; }
crypto/dh/dh_gen.c +2 −4 Original line number Diff line number Diff line Loading @@ -122,9 +122,7 @@ static int dh_builtin_genparams(DH *ret, int prime_len, int generator, ok = 0; } if (ctx != NULL) { BN_CTX_end(ctx); BN_CTX_free(ctx); } return ok; }