void
bdb2i_attr_index_config(
struct ldbminfo *li,
- char *fname,
+ const char *fname,
int lineno,
int argc,
char **argv,
bdb2i_cache_find_entry_dn2id(
BackendDB *be,
struct cache *cache,
- char *dn
+ const char *dn
)
{
Entry e, *ep;
ID id;
int count = 0;
- e.e_dn = dn;
+ e.e_dn = (char *) dn;
e.e_ndn = ch_strdup( dn );
(void) dn_normalize_case( e.e_ndn );
int
bdb2_back_db_config(
BackendDB *be,
- char *fname,
+ const char *fname,
int lineno,
int argc,
char **argv
int
bdb2i_dn2id_add(
BackendDB *be,
- char *dn,
+ const char *dn,
ID id
)
{
ID
bdb2i_dn2id(
BackendDB *be,
- char *dn
+ const char *dn
)
{
struct ldbminfo *li = (struct ldbminfo *) be->be_private;
ID_BLOCK *
bdb2i_dn2idl(
BackendDB *be,
- char *dn,
+ const char *dn,
int prefix )
{
struct dbcache *db;
int
bdb2i_dn2id_delete(
BackendDB *be,
- char *dn
+ const char *dn
)
{
struct dbcache *db;
Entry *
bdb2i_dn2entry_rw(
BackendDB *be,
- char *dn,
+ const char *dn,
Entry **matched,
int rw
)
extern int bdb2_back_db_destroy LDAP_P(( BackendDB *bd ));
extern int bdb2_back_db_config LDAP_P(( BackendDB *bd,
- char *fname, int lineno, int argc, char **argv ));
+ const char *fname, int lineno, int argc, char **argv ));
extern int bdb2_back_bind LDAP_P(( BackendDB *bd,
Connection *conn, Operation *op,
Connection *conn, Operation *op, int msgid ));
extern int bdb2_back_group LDAP_P(( BackendDB *bd,
- Entry *target, char* gr_ndn, char* op_ndn,
- char* objectclassValue, char* groupattrName));
+ Entry *target, const char* gr_ndn, const char* op_ndn,
+ const char* objectclassValue, const char* groupattrName));
/* hooks for slap tools */
extern int bdb2_tool_entry_open LDAP_P(( BackendDB *be, int mode ));
bdb2i_back_group_internal(
BackendDB *be,
Entry *target,
- char *gr_ndn,
- char *op_ndn,
- char *objectclassValue,
- char *groupattrName
+ const char *gr_ndn,
+ const char *op_ndn,
+ const char *objectclassValue,
+ const char *groupattrName
)
{
struct ldbminfo *li = (struct ldbminfo *) be->be_private;
goto return_results;
}
- bv.bv_val = objectclassValue;
+ bv.bv_val = (char *) objectclassValue;
bv.bv_len = strlen( bv.bv_val );
if (value_find(attr->a_vals, &bv, attr->a_syntax, 1) != 0) {
objectclassValue, groupattrName, 0 );
- bv.bv_val = op_ndn;
+ bv.bv_val = (char *) op_ndn;
bv.bv_len = strlen( op_ndn );
if (value_find( attr->a_vals, &bv, attr->a_syntax, 1) != 0 ) {
bdb2_back_group(
BackendDB *be,
Entry *target,
- char *gr_ndn,
- char *op_ndn,
- char *objectclassValue,
- char *groupattrName
+ const char *gr_ndn,
+ const char *op_ndn,
+ const char *objectclassValue,
+ const char *groupattrName
)
{
DB_LOCK lock;
void bdb2i_attr_masks LDAP_P(( struct ldbminfo *li, char *type, int *indexmask,
int *syntaxmask ));
-void bdb2i_attr_index_config LDAP_P(( struct ldbminfo *li, char *fname,
+void bdb2i_attr_index_config LDAP_P(( struct ldbminfo *li,
+ const char *fname,
int lineno, int argc, char **argv, int init ));
/*
#define bdb2i_cache_return_entry_w(c, e) bdb2i_cache_return_entry_rw((c), (e), 1)
ID bdb2i_cache_find_entry_dn2id LDAP_P(( BackendDB *be, struct cache *cache,
- char *dn ));
+ const char *dn ));
Entry * bdb2i_cache_find_entry_id LDAP_P(( struct cache *cache, ID id, int rw ));
int bdb2i_cache_delete_entry LDAP_P(( struct cache *cache, Entry *e ));
* dn2id.c
*/
-int bdb2i_dn2id_add LDAP_P(( BackendDB *be, char *dn, ID id ));
-ID bdb2i_dn2id LDAP_P(( BackendDB *be, char *dn ));
-int bdb2i_dn2id_delete LDAP_P(( BackendDB *be, char *dn ));
+int bdb2i_dn2id_add LDAP_P(( BackendDB *be, const char *dn, ID id ));
+ID bdb2i_dn2id LDAP_P(( BackendDB *be, const char *dn ));
+int bdb2i_dn2id_delete LDAP_P(( BackendDB *be, const char *dn ));
ID_BLOCK *
bdb2i_dn2idl LDAP_P((
BackendDB *be,
- char *dn,
+ const char *dn,
int prefix ));
Entry * bdb2i_dn2entry_rw LDAP_P((
BackendDB *be,
- char *dn,
+ const char *dn,
Entry **matched,
int rw ));