diff options
author | Stefan Metzmacher <metze@samba.org> | 2011-09-19 05:37:34 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2011-11-24 19:02:31 +0100 |
commit | 3327c1e86e2172f8fea2ba35af3b1357378e5a49 (patch) | |
tree | bea6d93496388812d7dfd33e9311bffc16be144d /source3 | |
parent | 99b3d57fc36ca7e0f493b79886027930278b812a (diff) | |
download | samba-3327c1e86e2172f8fea2ba35af3b1357378e5a49.tar.gz samba-3327c1e86e2172f8fea2ba35af3b1357378e5a49.tar.bz2 samba-3327c1e86e2172f8fea2ba35af3b1357378e5a49.zip |
s3:smb2cli: make smb2cli_session_setup_send/recv non-static
metze
Diffstat (limited to 'source3')
-rw-r--r-- | source3/libsmb/smb2cli.h | 18 | ||||
-rw-r--r-- | source3/libsmb/smb2cli_session.c | 10 |
2 files changed, 23 insertions, 5 deletions
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, |