summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/malloc-wrapper.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Finish Hiding symbols in crypto.hbeck2024-04-101-1/+4
| | | | | | | | | | | | | crypto.h already had the symbols not hidden behind LIBRESSL_INTERNAL hidden - This now picks up the reset of them marking them as LCRYPTO_UNUSED, and removes the LIBRESSL_INTERNAL guard. These symbols will now be hidden, but if we use them inside the library in a namespaced build we will get a deprecation warning. use outside the library will be as with any other hidden symbol, so fine. ok tb@
* Fix CRYPTO_malloc/free signaturestb2024-03-021-5/+3
| | | | | | | Importantly, the size in malloc is now a size_t instead of an int. The API now also takes a file and line to match upstream's signature. ok jsing
* Remove a bunch of CRYPTO memory APItb2024-03-021-149/+1
| | | | | | | | This was neutered early on in the fork and has been rotting ever since. Some parts of the API are still used, but it's easier to clean up when most of the mess is gone. ok jsing
* Hide symbols in crypto.hbeck2023-07-081-1/+17
| | | | ok jsing@
* Turn CRYPTO_realloc_clean() into a recallocarray() wrapper.jsing2018-05-131-11/+4
| | | | ok beck@ tb@
* use freezero() instead of memset/explicit_bzero + free. Substantiallyderaadt2017-05-021-3/+2
| | | | | | | | | | reduces conditional logic (-218, +82). MOD_EXP_CTIME_MIN_CACHE_LINE_WIDTH cache alignment calculation bn/bn_exp.c wasn'tt quite right. Two other tricky bits with ASN1_STRING_FLAG_NDEF and BN_FLG_STATIC_DATA where the condition cannot be collapsed completely. Passes regress. ok beck
* revert previous accidental commitbeck2017-04-281-2/+3
|
* *** empty log message ***beck2017-04-281-3/+2
|
* More KNF.jsing2014-04-201-2/+2
|
* unused variabletedu2014-04-171-3/+1
|
* Your operating system memory allocation functions are your friend. If theybeck2014-04-161-0/+199
are not please fix your operating system. Replace mem.c with an API-compatible wrapper that just calls the system functions and does not allow a one word modification of a variable in a running shared library to turn on memory debug functions that expose things that should not be seen. ok tedu@