]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#9242 - ifdef tls-endpoint code in openssl pre 0.9.8
authorIsaac Boukris <iboukris@gmail.com>
Sat, 25 Apr 2020 20:50:03 +0000 (22:50 +0200)
committerIsaac Boukris <iboukris@gmail.com>
Sat, 25 Apr 2020 20:50:52 +0000 (22:50 +0200)
libraries/libldap/tls_o.c

index aa855d77a1c57c5795825b5b1be19666088b491b..d417ba265685b4a5af63d30fad184e890bf078c7 100644 (file)
@@ -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 *