#endif
LDAP_F (void) ldap_int_ip_init( void );
-LDAP_F (int) do_ldap_select( LDAP *ld, struct timeval *timeout );
+LDAP_F (int) ldap_int_select( LDAP *ld, struct timeval *timeout );
LDAP_F (void *) ldap_new_select_info( void );
LDAP_F (void) ldap_free_select_info( void *sip );
LDAP_F (void) ldap_mark_select_write( LDAP *ld, Sockbuf *sb );
int
-do_ldap_select( LDAP *ld, struct timeval *timeout )
+ldap_int_select( LDAP *ld, struct timeval *timeout )
{
struct selectinfo *sip;
- Debug( LDAP_DEBUG_TRACE, "do_ldap_select\n", 0, 0, 0 );
+ Debug( LDAP_DEBUG_TRACE, "ldap_int_select\n", 0, 0, 0 );
if ( ldap_int_tblsize == 0 )
ldap_int_ip_init();
}
if ( lc == NULL ) {
- rc = do_ldap_select( ld, tvp );
+ rc = ldap_int_select( ld, tvp );
#ifdef LDAP_DEBUG
if ( rc == -1 ) {
Debug( LDAP_DEBUG_TRACE,
- "do_ldap_select returned -1: errno %d\n",
+ "ldap_int_select returned -1: errno %d\n",
errno, 0, 0 );
}
#endif
return uctoupper(c);
}
-static struct maskmap {
+static struct ucmaskmap {
unsigned long mask1;
unsigned long mask2;
} masks[32] = {
#include "lutil.h"
-// #define SLAP_AUTHPASSWD 1
-
/*
* Password Test Program
*/
-char *hash[] = {
+static char *hash[] = {
#ifdef SLAP_AUTHPASSWD
"SHA1", "MD5",
#else
#include "back-bdb.h"
#include "external.h"
-struct exop {
+static struct exop {
char *oid;
SLAP_EXTENDED_FN extended;
} exop_table[] = {
#include "lutil_hash.h"
static char presence_keyval[LUTIL_HASH_BYTES] = {0,0,0,1};
-struct berval presence_key = {LUTIL_HASH_BYTES, presence_keyval};
+static struct berval presence_key = {LUTIL_HASH_BYTES, presence_keyval};
static slap_mask_t index_mask(
Backend *be,
return 0;
}
-int
+static int
glue_back_db_destroy (
BackendDB *be
)
struct berval **refs;
} glue_state;
-void
+static void
glue_back_response (
Connection *conn,
Operation *op,
}
}
-void
+static void
glue_back_sresult (
Connection *c,
Operation *op,
NULL, NULL, NULL, ctrls);
}
-int
+static int
glue_back_search (
BackendDB *b0,
Connection *conn,
return rc;
}
-int
+static int
glue_back_bind (
BackendDB *b0,
Connection *conn,
return rc;
}
-int
+static int
glue_back_compare (
BackendDB *b0,
Connection *conn,
return rc;
}
-int
+static int
glue_back_modify (
BackendDB *b0,
Connection *conn,
return rc;
}
-int
+static int
glue_back_modrdn (
BackendDB *b0,
Connection *conn,
return rc;
}
-int
+static int
glue_back_add (
BackendDB *b0,
Connection *conn,
return rc;
}
-int
+static int
glue_back_delete (
BackendDB *b0,
Connection *conn,
return rc;
}
-int
+static int
glue_back_release_rw (
BackendDB *b0,
Connection *conn,
return rc;
}
-int
+static int
glue_back_group (
BackendDB *b0,
Connection *conn,
return rc;
}
-int
+static int
glue_back_attribute (
BackendDB *b0,
Connection *conn,
return rc;
}
-int
+static int
glue_back_referrals (
BackendDB *b0,
Connection *conn,
return rc;
}
-int
+static int
glue_tool_entry_open (
BackendDB *b0,
int mode
return 0;
}
-int
+static int
glue_tool_entry_close (
BackendDB *b0
)
return rc;
}
-ID
+static ID
glue_tool_entry_first (
BackendDB *b0
)
return glueBack->be_entry_first (glueBack);
}
-ID
+static ID
glue_tool_entry_next (
BackendDB *b0
)
return rc;
}
-Entry *
+static Entry *
glue_tool_entry_get (
BackendDB *b0,
ID id
return glueBack->be_entry_get (glueBack, id);
}
-ID
+static ID
glue_tool_entry_put (
BackendDB *b0,
Entry *e
return be->be_entry_put (be, e);
}
-int
+static int
glue_tool_entry_reindex (
BackendDB *b0,
ID id
return glueBack->be_entry_reindex (glueBack, id);
}
-int
+static int
glue_tool_sync (
BackendDB *b0
)
return 0;
}
-extern int num_subs; /* config.c */
-
int
glue_sub_init( )
{
#endif /* ldap_debug */
-int filter_escape_value(
+static int filter_escape_value(
struct berval *in,
struct berval *out )
{
ispunct((unsigned char) (x)) || \
isdigit((unsigned char) (x)) || (x) == '\0')
-char *
+static char *
first_word( char *s )
{
if ( s == NULL ) {
return( s );
}
-char *
+static char *
next_word( char *s )
{
if ( s == NULL ) {
return( s );
}
-char *
+static char *
word_dup( char *w )
{
char *s, *ret;
* phonetic.c
*/
-LDAP_SLAPD_F (char *) first_word LDAP_P(( char *s ));
-LDAP_SLAPD_F (char *) next_word LDAP_P(( char *s ));
-LDAP_SLAPD_F (char *) word_dup LDAP_P(( char *w ));
LDAP_SLAPD_F (char *) phonetic LDAP_P(( char *s ));
/*
#define SLAP_SB_MAX_INCOMING_DEFAULT ((1<<18) - 1)
#define SLAP_SB_MAX_INCOMING_AUTH ((1<<24) - 1)
+LDAP_SLAPD_V(int) num_subs;
+
LDAP_SLAPD_V (ber_len_t) sockbuf_max_incoming;
LDAP_SLAPD_V (ber_len_t) sockbuf_max_incoming_auth;
Debug( LDAP_DEBUG_TRACE, "structuralObjectClassMatch(%s,%s) = %d\n",
value->bv_val, a->bv_val, *matchp );
#endif
-
#endif
return LDAP_SUCCESS;
}
-struct slap_schema_oc_map {
+static struct slap_schema_oc_map {
char *ssom_name;
size_t ssom_offset;
} oc_map[] = {
{ NULL, 0 }
};
-struct slap_schema_ad_map {
+static struct slap_schema_ad_map {
char *ssam_name;
slap_mr_match_func *ssam_match;
slap_mr_indexer_func *ssam_indexer;
/* mutex (don't know how to initialize it :) */
};
-struct slap_schema_mr_map {
+static struct slap_schema_mr_map {
char *ssmm_name;
size_t ssmm_offset;
} mr_map[] = {
{ NULL, 0 }
};
-struct slap_schema_syn_map {
+static struct slap_schema_syn_map {
char *sssm_name;
size_t sssm_offset;
} syn_map[] = {