From 3327c1e86e2172f8fea2ba35af3b1357378e5a49 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Mon, 19 Sep 2011 05:37:34 +0200 Subject: s3:smb2cli: make smb2cli_session_setup_send/recv non-static metze --- source3/libsmb/smb2cli.h | 18 ++++++++++++++++++ source3/libsmb/smb2cli_session.c | 10 +++++----- 2 files changed, 23 insertions(+), 5 deletions(-) (limited to 'source3') diff --git a/source3/libsmb/smb2cli.h b/source3/libsmb/smb2cli.h index 048932d2f8..f3e5bea344 100644 --- a/source3/libsmb/smb2cli.h +++ b/source3/libsmb/smb2cli.h @@ -20,8 +20,26 @@ #ifndef __SMB2CLI_H__ #define __SMB2CLI_H__ +struct smbXcli_conn; +struct smbXcli_session; + NTSTATUS smb2cli_negprot(struct cli_state *cli); +struct tevent_req *smb2cli_session_setup_send(TALLOC_CTX *mem_ctx, + struct tevent_context *ev, + struct smbXcli_conn *conn, + uint32_t timeout_msec, + struct smbXcli_session *session, + uint8_t in_flags, + uint32_t in_capabilities, + uint32_t in_channel, + struct smbXcli_session *in_previous_session, + const DATA_BLOB *in_security_buffer); +NTSTATUS smb2cli_session_setup_recv(struct tevent_req *req, + TALLOC_CTX *mem_ctx, + struct iovec **recv_iov, + DATA_BLOB *out_security_buffer); + struct tevent_req *smb2cli_sesssetup_ntlmssp_send(TALLOC_CTX *mem_ctx, struct tevent_context *ev, struct cli_state *cli, diff --git a/source3/libsmb/smb2cli_session.c b/source3/libsmb/smb2cli_session.c index 6c99b2b25b..37420aa0da 100644 --- a/source3/libsmb/smb2cli_session.c +++ b/source3/libsmb/smb2cli_session.c @@ -38,7 +38,7 @@ struct smb2cli_session_setup_state { static void smb2cli_session_setup_done(struct tevent_req *subreq); -static struct tevent_req *smb2cli_session_setup_send(TALLOC_CTX *mem_ctx, +struct tevent_req *smb2cli_session_setup_send(TALLOC_CTX *mem_ctx, struct tevent_context *ev, struct smbXcli_conn *conn, uint32_t timeout_msec, @@ -206,10 +206,10 @@ static void smb2cli_session_setup_done(struct tevent_req *subreq) tevent_req_done(req); } -static NTSTATUS smb2cli_session_setup_recv(struct tevent_req *req, - TALLOC_CTX *mem_ctx, - struct iovec **recv_iov, - DATA_BLOB *out_security_buffer) +NTSTATUS smb2cli_session_setup_recv(struct tevent_req *req, + TALLOC_CTX *mem_ctx, + struct iovec **recv_iov, + DATA_BLOB *out_security_buffer) { struct smb2cli_session_setup_state *state = tevent_req_data(req, -- cgit