s3:tldap: make tldap_gensec_bind_send/recv public
authorStefan Metzmacher <metze@samba.org>
Tue, 23 Jan 2024 23:32:51 +0000 (00:32 +0100)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 23 Apr 2024 23:50:34 +0000 (23:50 +0000)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source3/lib/tldap_gensec_bind.c
source3/lib/tldap_gensec_bind.h

index 2be6294cfb76276205c6ed3aca034931e5b5c977..6285da2a9741e51e3977e9806fbba357faef33cb 100644 (file)
@@ -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);
index 99085dd65ea69ad2e3d6987bff53705f2c2f65a6..954a0b0958f60ca5ff24fd7e8b923c2af5893b04 100644 (file)
 #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,