libcli/smb: add smb2cli_tcon_is_encryption_on()
authorMichael Adam <obnox@samba.org>
Fri, 20 Sep 2013 05:46:54 +0000 (07:46 +0200)
committerJeremy Allison <jra@samba.org>
Tue, 15 Oct 2013 18:49:01 +0000 (11:49 -0700)
https://bugzilla.samba.org/show_bug.cgi?id=10208

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
libcli/smb/smbXcli_base.c
libcli/smb/smbXcli_base.h

index 27ac2a8f58d98f5d01e4bcc33dae86a416943365..9e5891afe62f8a253f0e53b714e73c1835867c89 100644 (file)
@@ -5090,3 +5090,8 @@ void smb2cli_tcon_set_values(struct smbXcli_tcon *tcon,
                tcon->smb2.should_encrypt = true;
        }
 }
+
+bool smb2cli_tcon_is_encryption_on(struct smbXcli_tcon *tcon)
+{
+       return tcon->smb2.should_encrypt;
+}
index 3d934272198da4ee904ae3887db2aa795a06612b..852fc7143ab6ccbe85e3d61dd31140755bee92a2 100644 (file)
@@ -315,6 +315,7 @@ void smb2cli_tcon_set_values(struct smbXcli_tcon *tcon,
                             uint32_t flags,
                             uint32_t capabilities,
                             uint32_t maximal_access);
+bool smb2cli_tcon_is_encryption_on(struct smbXcli_tcon *tcon);
 
 struct tevent_req *smb2cli_session_setup_send(TALLOC_CTX *mem_ctx,
                                struct tevent_context *ev,