1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-13 13:18:06 +03:00

s3:smb2cli: make smb2cli_session_setup_send/recv non-static

metze
This commit is contained in:
Stefan Metzmacher 2011-09-19 05:37:34 +02:00
parent 99b3d57fc3
commit 3327c1e86e
2 changed files with 23 additions and 5 deletions

View File

@ -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,

View File

@ -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,