CRYPTO_mem_leaks Error in openssl 1.1.1d

Matt Caswell matt at
Tue Nov 10 11:22:01 UTC 2020

On 10/11/2020 09:19, shiva kumar wrote:
> Hi, 
> I'm trying to use the CRYPTO_mem_leaks  API in openssl 1.1.1d, but
> during compilation I'm getting error as 
> *Unsatisfied symbol "CRYPTO_mem_leaks" *
> I have Included the header 
> #include <openssl/crypto.h>
> one doubt is it is defined under crypto.h
> CRYPTO_mem_leaks //  defined
> #endif 
> in opensslconf.h is defined as  
> #endif 
> How to resolve the issue?

The CRYPTO_mem_leaks API is not available by default. You have to
compile a version of OpenSSL that has it enabled using the
"enable-crypto-mdebug" option to "Configure":


More information about the openssl-users mailing list