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

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