From: Orgad Shaneh Date: Tue, 25 Jan 2022 15:36:18 +0000 (+0200) Subject: ITS#9791 Fix compilation with openssl exclusions X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=04093763f901d66c3d66e903bad2b25dea0e6eba;p=thirdparty%2Fopenldap.git ITS#9791 Fix compilation with openssl exclusions --- diff --git a/libraries/libldap/tls_o.c b/libraries/libldap/tls_o.c index 19797bff72..34cced5e27 100644 --- a/libraries/libldap/tls_o.c +++ b/libraries/libldap/tls_o.c @@ -1050,8 +1050,12 @@ tlso_session_endpoint( tls_session *sess, struct berval *buf, int is_server ) #ifndef OPENSSL_NO_MD2 md == EVP_md2() || #endif +#ifndef OPENSSL_NO_MD4 md == EVP_md4() || +#endif +#ifndef OPENSSL_NO_MD5 md == EVP_md5() || +#endif md == EVP_sha1() ) md = EVP_sha256();