summaryrefslogtreecommitdiffstats
path: root/src/responder/sudo/sudosrv_private.h
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2012-01-19 10:00:47 +0100
committerStephen Gallagher <sgallagh@redhat.com>2012-01-27 09:02:02 -0500
commit3b09b74bf65867d882af87ec60e2a517b15264a6 (patch)
tree3b11a36cd95cc7ea7a8d7e736e32ee041ab5df3f /src/responder/sudo/sudosrv_private.h
parent627d83dff183219826489949cb55ef71945e94ab (diff)
downloadsssd-3b09b74bf65867d882af87ec60e2a517b15264a6.tar.gz
sssd-3b09b74bf65867d882af87ec60e2a517b15264a6.tar.xz
sssd-3b09b74bf65867d882af87ec60e2a517b15264a6.zip
SUDO: Provide a sudo DP request based on the internal_req
Diffstat (limited to 'src/responder/sudo/sudosrv_private.h')
-rw-r--r--src/responder/sudo/sudosrv_private.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/responder/sudo/sudosrv_private.h b/src/responder/sudo/sudosrv_private.h
index 7401570cc..82948fdcd 100644
--- a/src/responder/sudo/sudosrv_private.h
+++ b/src/responder/sudo/sudosrv_private.h
@@ -106,4 +106,23 @@ int sudosrv_response_append_attr(TALLOC_CTX *mem_ctx,
uint8_t **_response_body,
size_t *_response_len);
+enum sss_dp_type {
+ SSS_DP_SUDO
+};
+
+struct tevent_req *
+sss_dp_get_sudoers_send(TALLOC_CTX *mem_ctx,
+ struct resp_ctx *rctx,
+ struct sss_domain_info *dom,
+ bool fast_reply,
+ enum sss_dp_type type,
+ const char *name);
+
+errno_t
+sss_dp_get_sudoers_recv(TALLOC_CTX *mem_ctx,
+ struct tevent_req *req,
+ dbus_uint16_t *err_maj,
+ dbus_uint32_t *err_min,
+ char **err_msg);
+
#endif /* _SUDOSRV_PRIVATE_H_ */