CRYPTO_mem_leaks Error in openssl 1.1.1d

shiva kumar shivakumar2696 at gmail.com
Tue Nov 10 13:25:42 UTC 2020


Any alternatives for this, if the compiled version doesn't enabled the flag?

On Tue, 10 Nov 2020 at 4:52 PM, Matt Caswell <matt at openssl.org> wrote:

>
>
> 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
> > #ifndef OPENSSL_NO_CRYPTO_MDEBUG
> > CRYPTO_mem_leaks //  defined
> > #endif
> >
> > in opensslconf.h is defined as
> > #ifndef OPENSSL_NO_CRYPTO_MDEBUG
> > #define OPENSSL_NO_CRYPTO_MDEBUG
> > #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":
>
>
> https://github.com/openssl/openssl/blob/6e933b35492a4dc3370b9f49890646dadca82cd8/INSTALL#L327-L329
>
> Matt
>
> --
*With Best Regards*
*Shivakumar S*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mta.openssl.org/pipermail/openssl-users/attachments/20201110/436c6829/attachment.html>


More information about the openssl-users mailing list