]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#9791 Fix compilation with openssl exclusions
authorOrgad Shaneh <orgad.shaneh@audiocodes.com>
Tue, 25 Jan 2022 15:36:18 +0000 (17:36 +0200)
committerHoward Chu <hyc@openldap.org>
Tue, 25 Jan 2022 15:41:07 +0000 (15:41 +0000)
libraries/libldap/tls_o.c

index 19797bff72e3b0f175b1eb6effb57d1aa9014380..34cced5e2790bc9d7b8f9883ddf3b79bc3833021 100644 (file)
@@ -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();