aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/mem_sec.c
Commit message (Collapse)AuthorAgeFilesLines
* RT41897: Add an CRYPTO_secure_actual_sizeRich Salz2016-01-091-0/+13
| | | | | | This is already documented, I just forgot to include the code :) Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
* mem functions cleanupRich Salz2016-01-071-0/+9
| | | | | | | | | | | | | | | | | 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>
* Modify the lower level memory allocation routines to take size_tRichard Levitte2015-12-171-1/+1
| | | | | | We've been using int for the size for a long time, it's about time... Reviewed-by: Rich Salz <rsalz@openssl.org>
* Rename sec_mem to mem_sec, like other files.Rich Salz2015-12-161-0/+538
Reviewed-by: Tim Hudson <tjh@openssl.org>