]> granicus.if.org Git - openssl/commit
mem functions cleanup
authorRich Salz <rsalz@openssl.org>
Thu, 7 Jan 2016 20:06:38 +0000 (15:06 -0500)
committerRich Salz <rsalz@openssl.org>
Thu, 7 Jan 2016 20:14:18 +0000 (15:14 -0500)
commitbbd86bf5424a611cb6b77a3a17fc522931c4dcb8
treecc45d4fb29946c41879e563547a877a70b0c957a
parent3cb8c3265f639f8eebf32053457ae6a6d61e2413
mem functions cleanup

Only two macros CRYPTO_MDEBUG and CRYPTO_MDEBUG_ABORT to control this.
If CRYPTO_MDEBUG is not set, #ifdef out the whole debug machinery.
        (Thanks to Jakob Bohm for the suggestion!)
Make the "change wrapper functions" be the only paradigm.
Wrote documentation!
Format the 'set func' functions so their paramlists are legible.
Format some multi-line comments.
Remove ability to get/set the "memory debug" functions at runtme.
Remove MemCheck_* and CRYPTO_malloc_debug_init macros.
Add CRYPTO_mem_debug(int flag) function.
Add test/memleaktest.
Rename CRYPTO_malloc_init to OPENSSL_malloc_init; remove needless calls.

Reviewed-by: Richard Levitte <levitte@openssl.org>
49 files changed:
CHANGES
Configurations/10-main.conf
Configure
apps/openssl.c
crypto/cms/Makefile
crypto/ct/Makefile
crypto/dh/Makefile
crypto/dsa/Makefile
crypto/ec/Makefile
crypto/engine/eng_dyn.c
crypto/mem.c
crypto/mem_dbg.c
crypto/mem_sec.c
crypto/objects/Makefile
crypto/objects/o_names.c
crypto/rsa/Makefile
crypto/x509/Makefile
demos/selfsign.c
doc/apps/dhparam.pod
doc/crypto/OPENSSL_malloc.pod [new file with mode: 0644]
doc/crypto/OPENSSL_secure_malloc.pod
doc/ssl/ssl.pod
engines/ccgost/Makefile
include/openssl/crypto.h
include/openssl/engine.h
ssl/Makefile
ssl/ssl_ciph.c
ssl/ssl_err.c
test/Makefile
test/Makefile.orig [new file with mode: 0644]
test/asynctest.c
test/clienthellotest.c
test/danetest.c
test/dhtest.c
test/dsatest.c
test/ecdhtest.c
test/ecdsatest.c
test/ectest.c
test/enginetest.c
test/evp_extra_test.c
test/jpaketest.c
test/memleaktest.c [new file with mode: 0644]
test/p5_crpt2_test.c
test/recipes/90-test_memleak.t [new file with mode: 0644]
test/rsa_test.c
test/srptest.c
test/ssltest.c
test/verify_extra_test.c
util/libeay.num