From 633c3e8da5a3a5ee1b61f9045c7dedb39bbb668a Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 17 Jan 2011 13:11:08 +1100 Subject: 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 --- source4/lib/ldb/common/ldb.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'source4/lib/ldb/common/ldb.c') diff --git a/source4/lib/ldb/common/ldb.c b/source4/lib/ldb/common/ldb.c index 0c2aa34289..f644855753 100644 --- a/source4/lib/ldb/common/ldb.c +++ b/source4/lib/ldb/common/ldb.c @@ -1843,6 +1843,14 @@ void ldb_req_mark_untrusted(struct ldb_request *req) req->handle->flags |= LDB_HANDLE_FLAG_UNTRUSTED; } +/** + mark a request as trusted. + */ +void ldb_req_mark_trusted(struct ldb_request *req) +{ + req->handle->flags &= ~LDB_HANDLE_FLAG_UNTRUSTED; +} + /** return true is a request is untrusted */ -- cgit