Blame SOURCES/openldap-cbinding-Make-prototypes-available-where-needed.patch

e4ff3b
NOTE: The patch has been adjusted to match the base code before backporting.
e4ff3b
e4ff3b
From cd914149a665167b2c5ae16baa0c438824588819 Mon Sep 17 00:00:00 2001
e4ff3b
From: =?UTF-8?q?Ond=C5=99ej=20Kuzn=C3=ADk?= <ondra@openldap.org>
e4ff3b
Date: Tue, 19 Feb 2019 10:26:39 +0000
e4ff3b
Subject: [PATCH] Make prototypes available where needed
e4ff3b
e4ff3b
---
e4ff3b
 libraries/libldap/tls2.c   | 3 +++
e4ff3b
 servers/slapd/config.c     | 1 +
e4ff3b
 servers/slapd/proto-slap.h | 4 ++++
e4ff3b
 3 files changed, 8 insertions(+)
e4ff3b
e4ff3b
diff --git a/libraries/libldap/tls2.c b/libraries/libldap/tls2.c
e4ff3b
index ad09ba39b..8b1fee748 100644
e4ff3b
--- a/libraries/libldap/tls2.c
e4ff3b
+++ b/libraries/libldap/tls2.c
e4ff3b
@@ -76,6 +76,9 @@ static oid_name oids[] = {
e4ff3b
 
e4ff3b
 #ifdef HAVE_TLS
e4ff3b
 
e4ff3b
+LDAP_F(int) ldap_pvt_tls_check_hostname LDAP_P(( LDAP *ld, void *s, const char *name_in ));
e4ff3b
+LDAP_F(int) ldap_pvt_tls_get_peercert LDAP_P(( void *s, struct berval *der ));
e4ff3b
+
e4ff3b
 void
e4ff3b
 ldap_pvt_tls_ctx_free ( void *c )
e4ff3b
 {
e4ff3b
diff --git a/servers/slapd/config.c b/servers/slapd/config.c
e4ff3b
index bd68a2421..5108da696 100644
e4ff3b
--- a/servers/slapd/config.c
e4ff3b
+++ b/servers/slapd/config.c
e4ff3b
@@ -48,6 +48,7 @@
e4ff3b
 #endif
e4ff3b
 #include "lutil.h"
e4ff3b
 #include "lutil_ldap.h"
e4ff3b
+#include "ldif.h"
e4ff3b
 #include "config.h"
e4ff3b
 
e4ff3b
 #ifdef _WIN32
e4ff3b
diff --git a/servers/slapd/proto-slap.h b/servers/slapd/proto-slap.h
e4ff3b
index 7f8e604fa..de1cabf32 100644
e4ff3b
--- a/servers/slapd/proto-slap.h
e4ff3b
+++ b/servers/slapd/proto-slap.h
e4ff3b
@@ -739,6 +739,7 @@ LDAP_SLAPD_F (int) bindconf_unparse LDAP_P((
e4ff3b
 LDAP_SLAPD_F (int) bindconf_tls_set LDAP_P((
e4ff3b
 	slap_bindconf *bc, LDAP *ld ));
e4ff3b
 LDAP_SLAPD_F (void) bindconf_free LDAP_P(( slap_bindconf *bc ));
e4ff3b
+LDAP_SLAPD_F (void) slap_client_keepalive LDAP_P(( LDAP *ld, slap_keepalive *sk ));
e4ff3b
 LDAP_SLAPD_F (int) slap_client_connect LDAP_P(( LDAP **ldp, slap_bindconf *sb ));
e4ff3b
 LDAP_SLAPD_F (int) config_generic_wrapper LDAP_P(( Backend *be,
e4ff3b
 	const char *fname, int lineno, int argc, char **argv ));
e4ff3b
@@ -1656,6 +1657,9 @@ LDAP_SLAPD_F (int) slap_sasl_external( Connection *c,
e4ff3b
 	slap_ssf_t ssf,	/* relative strength of external security */
e4ff3b
 	struct berval *authid );	/* asserted authenication id */
e4ff3b
 
e4ff3b
+LDAP_SLAPD_F (int) slap_sasl_cbinding( Connection *c,
e4ff3b
+	struct berval *cbv );
e4ff3b
+
e4ff3b
 LDAP_SLAPD_F (int) slap_sasl_reset( Connection *c );
e4ff3b
 LDAP_SLAPD_F (int) slap_sasl_close( Connection *c );
e4ff3b
 
e4ff3b
-- 
e4ff3b
2.29.2
e4ff3b