summaryrefslogtreecommitdiff
path: root/src/providers/proxy
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2013-01-11 18:13:36 -0500
committerJakub Hrozek <jhrozek@redhat.com>2013-01-21 22:17:34 +0100
commitcbaba2f47da96c4191971bce86f03afb3f88864a (patch)
treea599a9c3680e4476d975ea42ca163716f1ee327b /src/providers/proxy
parent03abdaa21ecf562b714f204ca42379ff08626f75 (diff)
downloadsssd-cbaba2f47da96c4191971bce86f03afb3f88864a.tar.gz
sssd-cbaba2f47da96c4191971bce86f03afb3f88864a.tar.bz2
sssd-cbaba2f47da96c4191971bce86f03afb3f88864a.zip
Add be_req_get_data() helper funciton.
In preparation for making struct be_req opaque.
Diffstat (limited to 'src/providers/proxy')
-rw-r--r--src/providers/proxy/proxy_auth.c4
-rw-r--r--src/providers/proxy/proxy_id.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/providers/proxy/proxy_auth.c b/src/providers/proxy/proxy_auth.c
index 2eacfa4e..3e6a514a 100644
--- a/src/providers/proxy/proxy_auth.c
+++ b/src/providers/proxy/proxy_auth.c
@@ -41,7 +41,7 @@ void proxy_pam_handler(struct be_req *req)
struct tevent_req *child_req = NULL;
struct proxy_client_ctx *client_ctx;
- pd = talloc_get_type(req->req_data, struct pam_data);
+ pd = talloc_get_type(be_req_get_data(req), struct pam_data);
switch (pd->cmd) {
case SSS_PAM_AUTHENTICATE:
@@ -138,7 +138,7 @@ static struct tevent_req *proxy_child_send(TALLOC_CTX *mem_ctx,
state->be_req = be_req;
state->auth_ctx = auth_ctx;
- state->pd = talloc_get_type(be_req->req_data, struct pam_data);
+ state->pd = talloc_get_type(be_req_get_data(be_req), struct pam_data);
/* Find an available key */
key.type = HASH_KEY_ULONG;
diff --git a/src/providers/proxy/proxy_id.c b/src/providers/proxy/proxy_id.c
index 802c1364..7d7fab20 100644
--- a/src/providers/proxy/proxy_id.c
+++ b/src/providers/proxy/proxy_id.c
@@ -1349,7 +1349,7 @@ void proxy_get_account_info(struct be_req *breq)
int ret;
char *endptr;
- ar = talloc_get_type(breq->req_data, struct be_acct_req);
+ ar = talloc_get_type(be_req_get_data(breq), struct be_acct_req);
ctx = talloc_get_type(be_ctx->bet_info[BET_ID].pvt_bet_data,
struct proxy_id_ctx);
sysdb = be_ctx->domain->sysdb;