From: Stefan Metzmacher Date: Tue, 23 Jan 2024 23:32:51 +0000 (+0100) Subject: s3:tldap: make tldap_gensec_bind_send/recv public X-Git-Tag: tdb-1.4.11~955 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3798dc7aea6b9d5d06c909cd39e017b372993ec6;p=thirdparty%2Fsamba.git s3:tldap: make tldap_gensec_bind_send/recv public Signed-off-by: Stefan Metzmacher Reviewed-by: Andrew Bartlett --- diff --git a/source3/lib/tldap_gensec_bind.c b/source3/lib/tldap_gensec_bind.c index 2be6294cfb7..6285da2a974 100644 --- a/source3/lib/tldap_gensec_bind.c +++ b/source3/lib/tldap_gensec_bind.c @@ -50,7 +50,7 @@ static void tldap_gensec_update_next(struct tevent_req *req); static void tldap_gensec_update_done(struct tevent_req *subreq); static void tldap_gensec_bind_done(struct tevent_req *subreq); -static struct tevent_req *tldap_gensec_bind_send( +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, @@ -238,7 +238,7 @@ static void tldap_gensec_bind_done(struct tevent_req *subreq) tldap_gensec_update_next(req); } -static TLDAPRC tldap_gensec_bind_recv(struct tevent_req *req) +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 99085dd65ea..954a0b0958f 100644 --- a/source3/lib/tldap_gensec_bind.h +++ b/source3/lib/tldap_gensec_bind.h @@ -20,10 +20,18 @@ #ifndef __TLDAP_GENSEC_BIND_H__ #define __TLDAP_GENSEC_BIND_H__ +struct tevent_context; struct tldap_context; struct cli_credentials; struct loadparm_context; +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,