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

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