summaryrefslogtreecommitdiffstats
path: root/src/map.h
diff options
context:
space:
mode:
authorNalin Dahyabhai <nalin.dahyabhai@pobox.com>2008-06-10 11:48:05 -0400
committerNalin Dahyabhai <nalin.dahyabhai@pobox.com>2008-06-10 11:48:05 -0400
commit5b4f160b9440172108e3806cdc30fa080a6c3c7e (patch)
tree9b8a2132488317f34becac46746031b8881d64ac /src/map.h
parentbc58ab05ad0f7d9de55d934748fc1fc9cac7fee8 (diff)
downloadslapi-nis-5b4f160b9440172108e3806cdc30fa080a6c3c7e.tar.gz
slapi-nis-5b4f160b9440172108e3806cdc30fa080a6c3c7e.tar.xz
slapi-nis-5b4f160b9440172108e3806cdc30fa080a6c3c7e.zip
- keep track of whether a map is "secure" or not, returning that information
when we're asked for information
Diffstat (limited to 'src/map.h')
-rw-r--r--src/map.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/map.h b/src/map.h
index 1850921..e5aeda1 100644
--- a/src/map.h
+++ b/src/map.h
@@ -33,17 +33,18 @@ bool_t map_supports_domain(struct plugin_state *state,
bool_t map_supports_map(struct plugin_state *state,
const char *domain,
const char *map,
- bool_t *supported);
+ bool_t *supported,
+ bool_t *secure);
bool_t map_match(struct plugin_state *state,
- const char *domain, const char *map,
+ const char *domain, const char *map, bool_t *secure,
unsigned int key_len, char *key,
unsigned int *value_len, char **value);
bool_t map_first(struct plugin_state *state,
- const char *domain, const char *map,
+ const char *domain, const char *map, bool_t *secure,
unsigned int *first_key_len, char **first_key,
unsigned int *first_value_len, char **first_value);
bool_t map_next(struct plugin_state *state,
- const char *domain, const char *map,
+ const char *domain, const char *map, bool_t *secure,
unsigned int prev_len, const char *prev,
unsigned int *next_key_len, char **next_key,
unsigned int *next_value_len, char **next_value);
@@ -57,6 +58,7 @@ void map_data_unset_map(struct plugin_state *state,
const char *domain_name, const char *map_name);
void map_data_set_map(struct plugin_state *state,
const char *domain_name, const char *map_name,
+ bool_t secure,
void *backend_data, void (*free_backend_data)(void *p));
void map_data_unset_entry_key(struct plugin_state *state,
const char *domain_name, const char *map_name,
@@ -75,6 +77,7 @@ bool_t map_data_check_entry(struct plugin_state *state,
bool_t map_data_foreach_entry_id(struct plugin_state *state, const char *id,
bool_t (*fn)(const char *domain,
const char *map,
+ bool_t secure,
const char *key,
unsigned int key_len,
const char *value,
@@ -84,6 +87,7 @@ bool_t map_data_foreach_entry_id(struct plugin_state *state, const char *id,
bool_t map_data_foreach_map(struct plugin_state *state, const char *domain_name,
bool_t (*fn)(const char *domain,
const char *map,
+ bool_t secure,
void *backend_data,
void *cbdata),
void *cbdata);