summaryrefslogtreecommitdiff
path: root/CHANGES
diff options
context:
space:
mode:
authorgeoff <geoff>2003-10-29 18:04:36 +0000
committergeoff <geoff>2003-10-29 18:04:36 +0000
commit3b3e93ebfd539b72c6c7059dca63ef6c90a1990e (patch)
tree5382ce0ae1ef740a07d140ad7585df61a50ef747 /CHANGES
parent1806f84565efa7d7b82e53a41ef2277b3e440b32 (diff)
downloadopenssl-3b3e93ebfd539b72c6c7059dca63ef6c90a1990e.tar.gz
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.
Diffstat (limited to 'CHANGES')
-rw-r--r--CHANGES6
1 files changed, 6 insertions, 0 deletions
diff --git a/CHANGES b/CHANGES
index c206df30f..d15740876 100644
--- a/CHANGES
+++ b/CHANGES
@@ -4,6 +4,12 @@
Changes between 0.9.7c and 0.9.8 [xx XXX xxxx]
+ *) BN_CTX_init() has been deprecated, as BN_CTX is an opaque structure
+ that can only be obtained through BN_CTX_new() (which implicitly
+ initialises it). The presence of this function only made it possible
+ to overwrite an existing structure (and cause memory leaks).
+ [Geoff Thorpe]
+
*) Because of the callback-based approach for implementing LHASH as a
template type, lh_insert() adds opaque objects to hash-tables and
lh_doall() or lh_doall_arg() are typically used with a destructor callback