]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
libcli/smb: maintain require_signed_response in smbXcli_req_state
authorRalph Boehme <slow@samba.org>
Fri, 9 Nov 2018 14:26:44 +0000 (15:26 +0100)
committerKarolin Seeger <kseeger@samba.org>
Fri, 23 Nov 2018 08:01:26 +0000 (09:01 +0100)
Not used for now, that comes next.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=13661

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
(cherry picked from commit 67cfb01611869b7590ccd836dd13a80e53545714)

libcli/smb/smbXcli_base.c

index e908a44402fc1fba90ecad8be00d5c850aedb696..51702efdb3fedab35f1f2c60e8e29e158a66e43f 100644 (file)
@@ -290,6 +290,7 @@ struct smbXcli_req_state {
                uint64_t encryption_session_id;
 
                bool signing_skipped;
+               bool require_signed_response;
                bool notify_async;
                bool got_async;
                uint16_t cancel_flags;
@@ -2963,6 +2964,8 @@ struct tevent_req *smb2cli_req_create(TALLOC_CTX *mem_ctx,
 
                state->smb2.should_sign = session->smb2->should_sign;
                state->smb2.should_encrypt = session->smb2->should_encrypt;
+               state->smb2.require_signed_response =
+                       session->smb2->require_signed_response;
 
                if (cmd == SMB2_OP_SESSSETUP &&
                    session->smb2_channel.signing_key.length == 0 &&