Get rid of hazardous EVP_DigestInit_dbg/EVP_DigestInit case
authorBodo Möller <bodo@openssl.org>
Mon, 10 Sep 2001 15:00:30 +0000 (15:00 +0000)
committerBodo Möller <bodo@openssl.org>
Mon, 10 Sep 2001 15:00:30 +0000 (15:00 +0000)
commit5e54b4f364f516a212f08e7ac4e611ea5f750aba
tree83841d53c4432390cb7c1a4dc4a105b9b1ae75b2
parent5ba372b17c6ca3cc2c6419a9b020707fe60141d8
Get rid of hazardous EVP_DigestInit_dbg/EVP_DigestInit case
distinction (which does not work well because if CRYPTO_MDEBUG is
defined at library compile time, it is not necessarily defined at
application compile time; and memory debugging now can be reconfigured
at run-time anyway).  To get the intended semantics, we could just use
the EVP_DigestInit_dbg unconditionally (which uses the caller's
__FILE__ and __LINE__ for memory leak debugging), but this would make
memory debugging inconsistent.  Instead, callers can use
CRYPTO_push_info() to track down memory leaks.
crypto/evp/evp.h