libcli/smb: add smb2cli_tcon_should_encrypt()
authorStefan Metzmacher <metze@samba.org>
Fri, 26 Sep 2014 04:25:53 +0000 (06:25 +0200)
committerMichael Adam <obnox@samba.org>
Tue, 30 Sep 2014 21:35:08 +0000 (23:35 +0200)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
libcli/smb/smbXcli_base.c
libcli/smb/smbXcli_base.h

index a7cc061b2f53a8145e5db48dbc86302d5d203446..e720a500fa6c7eac1612efac9b9b450dad4232cf 100644 (file)
@@ -5227,6 +5227,12 @@ void smb2cli_tcon_set_values(struct smbXcli_tcon *tcon,
        }
 }
 
+void smb2cli_tcon_should_encrypt(struct smbXcli_tcon *tcon,
+                                bool should_encrypt)
+{
+       tcon->smb2.should_encrypt = should_encrypt;
+}
+
 bool smb2cli_tcon_is_encryption_on(struct smbXcli_tcon *tcon)
 {
        return tcon->smb2.should_encrypt;
index 25183a26ac7d4aa84351c6d5e6118a6d96d420df..ffe720f3a0308f8ce1173386d42491269912aadf 100644 (file)
@@ -420,6 +420,8 @@ void smb2cli_tcon_set_values(struct smbXcli_tcon *tcon,
                             uint32_t flags,
                             uint32_t capabilities,
                             uint32_t maximal_access);
+void smb2cli_tcon_should_encrypt(struct smbXcli_tcon *tcon,
+                                bool should_encrypt);
 bool smb2cli_tcon_is_encryption_on(struct smbXcli_tcon *tcon);
 
 struct tevent_req *smb2cli_session_setup_send(TALLOC_CTX *mem_ctx,