s3: tldap: Make tldap_gensec_bind_send()/tldap_gensec_bind_recv() static.
authorJeremy Allison <jra@samba.org>
Mon, 27 Jun 2016 17:39:02 +0000 (10:39 -0700)
committerRalph Boehme <slow@samba.org>
Tue, 28 Jun 2016 09:19:33 +0000 (11:19 +0200)
Only expose a synchronous tldap_gensec_bind() call, as it can't
really be async anyway.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Autobuild-User(master): Ralph Böhme <slow@samba.org>
Autobuild-Date(master): Tue Jun 28 11:19:33 CEST 2016 on sn-devel-144

source3/lib/tldap_gensec_bind.c
source3/lib/tldap_gensec_bind.h

index 9f6e8ae0e3d1494fea07fb8129e9b865d9f475fc..c4092132d898a50414898a3869683c6b278ee0aa 100644 (file)
@@ -49,7 +49,7 @@ static void tldap_gensec_update_done(struct tldap_gensec_bind_state *state,
                                struct tevent_req *subreq);
 static void tldap_gensec_bind_done(struct tevent_req *subreq);
 
-struct tevent_req *tldap_gensec_bind_send(
+static struct tevent_req *tldap_gensec_bind_send(
        TALLOC_CTX *mem_ctx, struct tevent_context *ev,
        struct tldap_context *ctx, struct cli_credentials *creds,
        const char *target_service, const char *target_hostname,
@@ -287,7 +287,7 @@ static void tldap_gensec_bind_done(struct tevent_req *subreq)
        tldap_gensec_update_done(state, req);
 }
 
-TLDAPRC tldap_gensec_bind_recv(struct tevent_req *req)
+static TLDAPRC tldap_gensec_bind_recv(struct tevent_req *req)
 {
        struct tldap_gensec_bind_state *state = tevent_req_data(
                req, struct tldap_gensec_bind_state);
index deddc23f9e752396b5d71beb94529df8269828d9..cb6b8e6f5f0165240d70f67db10487b8ca4b6edf 100644 (file)
 #include "tldap.h"
 #include "auth/credentials/credentials.h"
 
-struct tevent_req *tldap_gensec_bind_send(
-       TALLOC_CTX *mem_ctx, struct tevent_context *ev,
-       struct tldap_context *ctx, struct cli_credentials *creds,
-       const char *target_service, const char *target_hostname,
-       const char *target_principal, struct loadparm_context *lp_ctx,
-       uint32_t gensec_features);
-TLDAPRC tldap_gensec_bind_recv(struct tevent_req *req);
 TLDAPRC tldap_gensec_bind(
        struct tldap_context *ctx, struct cli_credentials *creds,
        const char *target_service, const char *target_hostname,