diff options
author | Stefan Metzmacher <metze@samba.org> | 2011-08-12 17:26:13 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2011-08-12 19:38:27 +0200 |
commit | eeb0298ac1ba70d5114b48d7de4549e80d83e709 (patch) | |
tree | d4d02093d9baf9deb0e03d4ee88aeaf46badaa95 /source3/libsmb/smb2cli_base.c | |
parent | 28c4d2d0f318d017e356cf8e80ff0da516346fee (diff) | |
download | samba-eeb0298ac1ba70d5114b48d7de4549e80d83e709.tar.gz samba-eeb0298ac1ba70d5114b48d7de4549e80d83e709.tar.bz2 samba-eeb0298ac1ba70d5114b48d7de4549e80d83e709.zip |
s3:smb2cli: pass more fields to smb2cli_req_create()/smb2cli_req_send()
The caller should take care of the global cli_state values.
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Fri Aug 12 19:38:27 CEST 2011 on sn-devel-104
Diffstat (limited to 'source3/libsmb/smb2cli_base.c')
-rw-r--r-- | source3/libsmb/smb2cli_base.c | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/source3/libsmb/smb2cli_base.c b/source3/libsmb/smb2cli_base.c index dd212730bc..9fc824c6b2 100644 --- a/source3/libsmb/smb2cli_base.c +++ b/source3/libsmb/smb2cli_base.c @@ -175,7 +175,11 @@ struct tevent_req *smb2cli_req_create(TALLOC_CTX *mem_ctx, struct tevent_context *ev, struct cli_state *cli, uint16_t cmd, - uint32_t flags, + uint32_t additional_flags, + uint32_t clear_flags, + uint32_t pid, + uint32_t tid, + uint64_t uid, const uint8_t *fixed, uint16_t fixed_len, const uint8_t *dyn, @@ -183,6 +187,7 @@ struct tevent_req *smb2cli_req_create(TALLOC_CTX *mem_ctx, { struct tevent_req *req; struct smb2cli_req_state *state; + uint32_t flags = 0; req = tevent_req_create(mem_ctx, &state, struct smb2cli_req_state); @@ -198,6 +203,9 @@ struct tevent_req *smb2cli_req_create(TALLOC_CTX *mem_ctx, return NULL; } + flags |= additional_flags; + flags &= ~clear_flags; + state->fixed = fixed; state->fixed_len = fixed_len; state->dyn = dyn; @@ -306,7 +314,11 @@ struct tevent_req *smb2cli_req_send(TALLOC_CTX *mem_ctx, struct tevent_context *ev, struct cli_state *cli, uint16_t cmd, - uint32_t flags, + uint32_t additional_flags, + uint32_t clear_flags, + uint32_t pid, + uint32_t tid, + uint64_t uid, const uint8_t *fixed, uint16_t fixed_len, const uint8_t *dyn, @@ -315,7 +327,9 @@ struct tevent_req *smb2cli_req_send(TALLOC_CTX *mem_ctx, struct tevent_req *req; NTSTATUS status; - req = smb2cli_req_create(mem_ctx, ev, cli, cmd, flags, + req = smb2cli_req_create(mem_ctx, ev, cli, cmd, + additional_flags, clear_flags, + pid, tid, uid, fixed, fixed_len, dyn, dyn_len); if (req == NULL) { return NULL; |