From ffbd3f324558fe7e04d6007761391889800baa95 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Wed, 9 Jan 2013 21:34:30 -0500 Subject: Move hbac_ctx_is_offline() --- src/providers/ipa/ipa_access.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/providers/ipa/ipa_access.c') diff --git a/src/providers/ipa/ipa_access.c b/src/providers/ipa/ipa_access.c index f1486ec4c..0d0b600c2 100644 --- a/src/providers/ipa/ipa_access.c +++ b/src/providers/ipa/ipa_access.c @@ -280,6 +280,12 @@ static void hbac_clear_rule_data(struct hbac_ctx *hbac_ctx) talloc_zfree(hbac_ctx->rules); } +/* Check whether the current HBAC request is processed in off-line mode */ +static inline bool hbac_ctx_is_offline(struct hbac_ctx *ctx) +{ + return ctx == NULL || ctx->sdap_op == NULL; +} + /* Check the step result code and continue, retry, get offline result or abort accordingly */ static bool hbac_check_step_result(struct hbac_ctx *hbac_ctx, int ret) { -- cgit