Get rid of hazardous EVP_DigestInit_dbg/EVP_DigestInit case
authorBodo Möller <bodo@openssl.org>
Mon, 10 Sep 2001 14:59:17 +0000 (14:59 +0000)
committerBodo Möller <bodo@openssl.org>
Mon, 10 Sep 2001 14:59:17 +0000 (14:59 +0000)
commit5ba372b17c6ca3cc2c6419a9b020707fe60141d8
tree1e5001d50f0d5bfef72d084a83ba21ebd10378bf
parentf9b0f47c0cf1db34360eac3ad783f4670238c430
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.

Also fix indentation, and add OpenSSL copyright.
crypto/evp/digest.c