summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2012-06-22 08:06:50 -0400
committerStephen Gallagher <sgallagh@redhat.com>2012-06-22 15:37:42 -0400
commit58f437644772f76c50c24efeaf707ded941f5bd9 (patch)
tree886bb90d9a0f4f1389d12ffe99acfa11da11f8c3
parent2aa125200689eeb80f04b496acc5933bb09bee75 (diff)
downloadsssd-58f437644772f76c50c24efeaf707ded941f5bd9.tar.gz
sssd-58f437644772f76c50c24efeaf707ded941f5bd9.tar.xz
sssd-58f437644772f76c50c24efeaf707ded941f5bd9.zip
LDAP: Make sdap_access_send/recv public
We want to consume this in the IPA provider.
-rw-r--r--src/providers/ldap/sdap_access.c20
-rw-r--r--src/providers/ldap/sdap_access.h9
2 files changed, 17 insertions, 12 deletions
diff --git a/src/providers/ldap/sdap_access.c b/src/providers/ldap/sdap_access.c
index 5a6b4a5d3..8757510c3 100644
--- a/src/providers/ldap/sdap_access.c
+++ b/src/providers/ldap/sdap_access.c
@@ -52,12 +52,6 @@ static void sdap_access_reply(struct be_req *be_req, int pam_status)
}
}
-static struct tevent_req *sdap_access_send(TALLOC_CTX *mem_ctx,
- struct tevent_context *ev,
- struct be_ctx *be_ctx,
- struct sdap_access_ctx *access_ctx,
- struct pam_data *pd);
-
static struct tevent_req *sdap_access_filter_send(TALLOC_CTX *mem_ctx,
struct tevent_context *ev,
struct be_ctx *be_ctx,
@@ -123,11 +117,12 @@ struct sdap_access_req_ctx {
};
static errno_t select_next_rule(struct tevent_req *req);
-static struct tevent_req *sdap_access_send(TALLOC_CTX *mem_ctx,
- struct tevent_context *ev,
- struct be_ctx *be_ctx,
- struct sdap_access_ctx *access_ctx,
- struct pam_data *pd)
+struct tevent_req *
+sdap_access_send(TALLOC_CTX *mem_ctx,
+ struct tevent_context *ev,
+ struct be_ctx *be_ctx,
+ struct sdap_access_ctx *access_ctx,
+ struct pam_data *pd)
{
errno_t ret;
struct sdap_access_req_ctx *state;
@@ -1057,7 +1052,8 @@ static void sdap_access_service_done(struct tevent_req *subreq)
return;
}
-static errno_t sdap_access_recv(struct tevent_req *req, int *pam_status)
+errno_t
+sdap_access_recv(struct tevent_req *req, int *pam_status)
{
struct sdap_access_req_ctx *state =
tevent_req_data(req, struct sdap_access_req_ctx);
diff --git a/src/providers/ldap/sdap_access.h b/src/providers/ldap/sdap_access.h
index 32c45b817..d6b80ea2d 100644
--- a/src/providers/ldap/sdap_access.h
+++ b/src/providers/ldap/sdap_access.h
@@ -55,4 +55,13 @@ struct sdap_access_ctx {
void ldap_pam_access_handler(struct be_req *breq);
+struct tevent_req *
+sdap_access_send(TALLOC_CTX *mem_ctx,
+ struct tevent_context *ev,
+ struct be_ctx *be_ctx,
+ struct sdap_access_ctx *access_ctx,
+ struct pam_data *pd);
+errno_t
+sdap_access_recv(struct tevent_req *req, int *pam_status);
+
#endif /* SDAP_ACCESS_H_ */