From 42d8c0a39dde2f6d21691434eaadea9803ee54c4 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Mon, 1 Dec 2003 12:03:20 +0000 Subject: [PATCH] Added slap_null_cb --- servers/slapd/proto-slap.h | 1 + servers/slapd/result.c | 5 +++++ servers/slapd/sasl.c | 10 ++-------- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/servers/slapd/proto-slap.h b/servers/slapd/proto-slap.h index 129445bbaf..59712f87dc 100644 --- a/servers/slapd/proto-slap.h +++ b/servers/slapd/proto-slap.h @@ -919,6 +919,7 @@ LDAP_SLAPD_F (void) slap_send_ldap_intermediate LDAP_P(( Operation *op, SlapRepl LDAP_SLAPD_F (void) slap_send_search_result LDAP_P(( Operation *op, SlapReply *rs )); LDAP_SLAPD_F (int) slap_send_search_reference LDAP_P(( Operation *op, SlapReply *rs )); LDAP_SLAPD_F (int) slap_send_search_entry LDAP_P(( Operation *op, SlapReply *rs )); +LDAP_SLAPD_F (int) slap_null_cb LDAP_P(( Operation *op, SlapReply *rs )); LDAP_SLAPD_V( const struct berval ) slap_pre_read_bv; LDAP_SLAPD_V( const struct berval ) slap_post_read_bv; diff --git a/servers/slapd/result.c b/servers/slapd/result.c index b765a7637f..07b8d2d904 100644 --- a/servers/slapd/result.c +++ b/servers/slapd/result.c @@ -41,6 +41,11 @@ #include "slapi.h" #endif +int slap_null_cb( Operation *op, SlapReply *rs ) +{ + return 0; +} + static char *v2ref( BerVarray ref, const char *text ) { size_t len = 0, i = 0; diff --git a/servers/slapd/sasl.c b/servers/slapd/sasl.c index 6c9378f954..f973098617 100644 --- a/servers/slapd/sasl.c +++ b/servers/slapd/sasl.c @@ -323,7 +323,7 @@ typedef struct lookup_info { sasl_server_params_t *sparams; } lookup_info; -static slap_response sasl_ap_lookup, sasl_ap_store, sasl_cb_checkpass; +static slap_response sasl_ap_lookup, sasl_cb_checkpass; static int sasl_ap_lookup( Operation *op, SlapReply *rs ) @@ -473,12 +473,6 @@ slap_auxprop_lookup( } #if SASL_VERSION_FULL >= 0x020110 -static int -sasl_ap_store( Operation *op, SlapReply *rs ) -{ - return 0; -} - static int slap_auxprop_store( void *glob_context, @@ -493,7 +487,7 @@ slap_auxprop_store( Connection *conn = NULL; const struct propval *pr; Modifications *modlist = NULL, **modtail = &modlist, *mod; - slap_callback cb = { sasl_ap_store, NULL }; + slap_callback cb = { slap_null_cb, NULL }; char textbuf[SLAP_TEXT_BUFLEN]; const char *text; size_t textlen = sizeof(textbuf); -- 2.39.5