CRYPTO_mem_leaks Error in openssl 1.1.1d
Matt Caswell
matt at openssl.org
Tue Nov 10 13:34:46 UTC 2020
On 10/11/2020 13:25, shiva kumar wrote:
> Any alternatives for this, if the compiled version doesn't enabled the flag?
valgrind?
Matt
>
> On Tue, 10 Nov 2020 at 4:52 PM, Matt Caswell <matt at openssl.org
> <mailto: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*
More information about the openssl-users
mailing list