From 76db25eab9010a33657f35e5afc8477c996df7a3 Mon Sep 17 00:00:00 2001 From: Pavel Březina Date: Fri, 11 May 2012 09:42:01 +0200 Subject: sudo responder: new request enum type sss_sudo_type represents query type that comes to the responder sss_dp_sudo_type represents query type to DP that is issued by the responder I'm leaving current values of sss_dp_sudo_type untouched so the compilation is not broken. Hovewer, they will be changed to new DP types once the DP interface is updated. --- src/responder/sudo/sudosrv_private.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/responder/sudo/sudosrv_private.h') diff --git a/src/responder/sudo/sudosrv_private.h b/src/responder/sudo/sudosrv_private.h index 47850ad63..e23a0d0d2 100644 --- a/src/responder/sudo/sudosrv_private.h +++ b/src/responder/sudo/sudosrv_private.h @@ -37,6 +37,11 @@ enum sss_dp_sudo_type { SSS_DP_SUDO_USER }; +enum sss_sudo_type { + SSS_SUDO_DEFAULTS, + SSS_SUDO_USER +}; + struct sudo_ctx { struct resp_ctx *rctx; @@ -49,7 +54,7 @@ struct sudo_ctx { struct sudo_cmd_ctx { struct cli_ctx *cli_ctx; struct sudo_ctx *sudo_ctx; - enum sss_dp_sudo_type type; + enum sss_sudo_type type; /* input data */ uid_t uid; -- cgit