diff options
author | Bodo Möller <bodo@openssl.org> | 2001-03-08 15:56:15 +0000 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 2001-03-08 15:56:15 +0000 |
commit | c62b26fdc6bb176541ec56498090ff6f2ad4a885 (patch) | |
tree | 8c29e8e873252b41f54761a71c2e75e15e154ac8 /crypto/bn/bn_ctx.c | |
parent | e0a9ba9c3c4ea7bf27ceff33633cd48b542de860 (diff) | |
download | openssl-c62b26fdc6bb176541ec56498090ff6f2ad4a885.zip openssl-c62b26fdc6bb176541ec56498090ff6f2ad4a885.tar.gz openssl-c62b26fdc6bb176541ec56498090ff6f2ad4a885.tar.bz2 |
Hide BN_CTX structure details.
Incease the number of BIGNUMs in a BN_CTX.
Diffstat (limited to 'crypto/bn/bn_ctx.c')
-rw-r--r-- | crypto/bn/bn_ctx.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/crypto/bn/bn_ctx.c b/crypto/bn/bn_ctx.c index 28b334f..7daf19e 100644 --- a/crypto/bn/bn_ctx.c +++ b/crypto/bn/bn_ctx.c @@ -61,8 +61,9 @@ #include <stdio.h> #include <assert.h> + #include "cryptlib.h" -#include <openssl/bn.h> +#include "bn_lcl.h" BN_CTX *BN_CTX_new(void) @@ -83,6 +84,7 @@ BN_CTX *BN_CTX_new(void) void BN_CTX_init(BN_CTX *ctx) { +#if 0 /* explicit version */ int i; ctx->tos = 0; ctx->flags = 0; @@ -90,6 +92,9 @@ void BN_CTX_init(BN_CTX *ctx) ctx->too_many = 0; for (i = 0; i < BN_CTX_NUM; i++) BN_init(&(ctx->bn[i])); +#else + memset(ctx, 0, sizeof *ctx); +#endif } void BN_CTX_free(BN_CTX *ctx) |