BN_CTX is opaque and the static initialiser BN_CTX_init() is not used
authorGeoff Thorpe <geoff@openssl.org>
Wed, 29 Oct 2003 18:04:37 +0000 (18:04 +0000)
committerGeoff Thorpe <geoff@openssl.org>
Wed, 29 Oct 2003 18:04:37 +0000 (18:04 +0000)
commit2ce90b9b7481381dff584726d84345a0260ca4d1
tree2b80352df9ffa38c54c9f7d6290fe942d89af0d2
parent4e952ae4fc33a1c3a39e082dcb139c5560128ce8
BN_CTX is opaque and the static initialiser BN_CTX_init() is not used
except internally to the allocator BN_CTX_new(), as such this deprecates
the use of BN_CTX_init() in the API. Moreover, the structure definition of
BN_CTX is taken out of bn_lcl.h and moved into bn_ctx.c itself.

NDEBUG should probably only be "forced" in the top-level configuration, but
until it is I will avoid removing it from bn_ctx.c which might surprise
people with massive slow-downs in their keygens. So I've left it in
bn_ctx.c but tidied up the preprocessor logic a touch and made it more
tolerant of debugging efforts.
CHANGES
crypto/bn/bn.h
crypto/bn/bn_ctx.c
crypto/bn/bn_lcl.h