summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/include
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2011-01-17 13:11:08 +1100
committerAndrew Tridgell <tridge@samba.org>2011-01-17 05:23:04 +0100
commit633c3e8da5a3a5ee1b61f9045c7dedb39bbb668a (patch)
tree2b5f62f3a3704cfb62f886aa7355b4db1348998f /source4/lib/ldb/include
parentf334cd22101b7ce32b3382fc4d048eadd7385f2e (diff)
downloadsamba-633c3e8da5a3a5ee1b61f9045c7dedb39bbb668a.tar.gz
samba-633c3e8da5a3a5ee1b61f9045c7dedb39bbb668a.tar.bz2
samba-633c3e8da5a3a5ee1b61f9045c7dedb39bbb668a.zip
ldb: added ldb_req_mark_trusted()
this is used to mark a ldb child request trusted, if the caller has validated all inputs. This will be used when creating new child requests with trusted inputs. Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4/lib/ldb/include')
-rw-r--r--source4/lib/ldb/include/ldb_module.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/lib/ldb/include/ldb_module.h b/source4/lib/ldb/include/ldb_module.h
index 35dbd120fa..a793525b7c 100644
--- a/source4/lib/ldb/include/ldb_module.h
+++ b/source4/lib/ldb/include/ldb_module.h
@@ -228,6 +228,11 @@ int ldb_reply_add_control(struct ldb_reply *ares, const char *oid, bool critical
void ldb_req_mark_untrusted(struct ldb_request *req);
/**
+ mark a request as trusted.
+ */
+void ldb_req_mark_trusted(struct ldb_request *req);
+
+/**
return true is a request is untrusted
*/
bool ldb_req_is_untrusted(struct ldb_request *req);