• R
    Implement the use of heap manipulator implementions · 05c7b163
    Richard Levitte 提交于
    - Make use of the functions given through CRYPTO_set_mem_functions().
    - CRYPTO_free(), CRYPTO_clear_free() and CRYPTO_secure_free() now receive
      __FILE__ and __LINE__.
    - The API for CRYPTO_set_mem_functions() and CRYPTO_get_mem_functions()
      is slightly changed, the implementation for free() now takes a couple
      of extra arguments, taking __FILE__ and __LINE__.
    - The CRYPTO_ memory functions will *always* receive __FILE__ and __LINE__
      from the corresponding OPENSSL_ macros, regardless of if crypto-mdebug
      has been enabled or not.  The reason is that if someone swaps out the
      malloc(), realloc() and free() implementations, we can't know if they
      will use them or not.
    Reviewed-by: NRich Salz <rsalz@openssl.org>
    05c7b163
mem_dbg.c 21.9 KB