summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2012-03-08 15:10:31 -0500
committerStephen Gallagher <sgallagh@redhat.com>2012-03-09 08:24:52 -0500
commit8372129f446e1558f1923a112f328a266144c3ce (patch)
tree454f5c0e61041cbbf90f3229fe22614ca51e1a2f
parent1c386aa2c11d1bdbb3f42f722ec4599ce9f278c8 (diff)
downloadsssd-8372129f446e1558f1923a112f328a266144c3ce.tar.gz
sssd-8372129f446e1558f1923a112f328a266144c3ce.tar.bz2
sssd-8372129f446e1558f1923a112f328a266144c3ce.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 1e923fd3..9df08789 100644
--- a/src/providers/ldap/sdap_access.c
+++ b/src/providers/ldap/sdap_access.c
@@ -55,12 +55,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,
@@ -133,11 +127,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;
@@ -1366,7 +1361,8 @@ static void sdap_access_host_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 013645b9..0cbee41f 100644
--- a/src/providers/ldap/sdap_access.h
+++ b/src/providers/ldap/sdap_access.h
@@ -56,4 +56,13 @@ struct sdap_access_ctx {
int access_rule[LDAP_ACCESS_LAST + 1];
};
+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_ */