From: Jeremy Allison Date: Mon, 27 Jun 2016 17:39:02 +0000 (-0700) Subject: s3: tldap: Make tldap_gensec_bind_send()/tldap_gensec_bind_recv() static. X-Git-Tag: tdb-1.3.10~650 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6318615a63bc35c6d3ac555ea45f321d8988f0d6;p=thirdparty%2Fsamba.git s3: tldap: Make tldap_gensec_bind_send()/tldap_gensec_bind_recv() static. Only expose a synchronous tldap_gensec_bind() call, as it can't really be async anyway. Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme Autobuild-User(master): Ralph Böhme Autobuild-Date(master): Tue Jun 28 11:19:33 CEST 2016 on sn-devel-144 --- diff --git a/source3/lib/tldap_gensec_bind.c b/source3/lib/tldap_gensec_bind.c index 9f6e8ae0e3d..c4092132d89 100644 --- a/source3/lib/tldap_gensec_bind.c +++ b/source3/lib/tldap_gensec_bind.c @@ -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); diff --git a/source3/lib/tldap_gensec_bind.h b/source3/lib/tldap_gensec_bind.h index deddc23f9e7..cb6b8e6f5f0 100644 --- a/source3/lib/tldap_gensec_bind.h +++ b/source3/lib/tldap_gensec_bind.h @@ -24,13 +24,6 @@ #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,