SWI-Prolog / packages-ssl

The SWI-Prolog SSL interface
5 stars 14 forks source link

fixes warning about OPENSSL_zalloc defined but never used #135

Closed mifigiel closed 5 years ago

mifigiel commented 5 years ago

LibreSSL has got EVP_MDCTX(free|new) but not OPENSSL_zalloc, the compiler complains about the last being defined but never used.

As OPENSSL_zalloc is only used in the EVP_MD_CTX_new, it is only defined iff the EVP_MDCTX(new|free) pair is defined.