From 4c545ee0781c8f3642c218c15917b22f04cceb35 Mon Sep 17 00:00:00 2001 From: Isaac Boukris Date: Sat, 25 Apr 2020 22:50:03 +0200 Subject: [PATCH] ITS#9242 - ifdef tls-endpoint code in openssl pre 0.9.8 --- libraries/libldap/tls_o.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libraries/libldap/tls_o.c b/libraries/libldap/tls_o.c index aa855d77a1..d417ba2656 100644 --- a/libraries/libldap/tls_o.c +++ b/libraries/libldap/tls_o.c @@ -861,6 +861,7 @@ tlso_session_unique( tls_session *sess, struct berval *buf, int is_server) static int tlso_session_endpoint( tls_session *sess, struct berval *buf, int is_server ) { +#if OPENSSL_VERSION_NUMBER >= 0x00908000 tlso_session *s = (tlso_session *)sess; const EVP_MD *md; unsigned int md_len; @@ -900,6 +901,9 @@ tlso_session_endpoint( tls_session *sess, struct berval *buf, int is_server ) buf->bv_len = md_len; return md_len; +#else + return 0; +#endif } static const char *