diff options
author | Stefan Metzmacher <metze@samba.org> | 2012-08-01 11:47:07 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2012-08-04 09:10:22 +0200 |
commit | c32120b4e93a565c12534b7614becdf573672586 (patch) | |
tree | 36385410a3187a98d78c7c7f559073f328011630 | |
parent | 97be49c4d42bbc84a85383db0d5c6cf14fd077da (diff) | |
download | samba-c32120b4e93a565c12534b7614becdf573672586.tar.gz samba-c32120b4e93a565c12534b7614becdf573672586.tar.bz2 samba-c32120b4e93a565c12534b7614becdf573672586.zip |
s3:libsmb: add EXTENDED_SIGNATURE support in cli_tcon_andx*()
metze
-rw-r--r-- | source3/libsmb/cliconnect.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/libsmb/cliconnect.c b/source3/libsmb/cliconnect.c index 9850511b85..cd914bf852 100644 --- a/source3/libsmb/cliconnect.c +++ b/source3/libsmb/cliconnect.c @@ -2332,6 +2332,7 @@ struct tevent_req *cli_tcon_andx_create(TALLOC_CTX *mem_ctx, } tcon_flags |= TCONX_FLAG_EXTENDED_RESPONSE; + tcon_flags |= TCONX_FLAG_EXTENDED_SIGNATURES; SCVAL(vwv+0, 0, 0xFF); SCVAL(vwv+0, 1, 0); @@ -2482,6 +2483,10 @@ static void cli_tcon_andx_done(struct tevent_req *subreq) cli->dfsroot = true; } + if (optional_support & SMB_EXTENDED_SIGNATURES) { + smb1cli_session_protect_session_key(cli->smb1.session); + } + cli_state_set_tid(cli, SVAL(inhdr, HDR_TID)); tevent_req_done(req); } |