summaryrefslogtreecommitdiff
path: root/libcli/smb
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2013-09-20 07:46:54 +0200
committerJeremy Allison <jra@samba.org>2013-10-15 11:49:01 -0700
commitf6439613432f73319ca6b855256ee44921071991 (patch)
tree2867cfa268ff4af483a6ea302f8de396c7f69b14 /libcli/smb
parent25494628a2e977568de0f634602ebe893d0a5b88 (diff)
downloadsamba-f6439613432f73319ca6b855256ee44921071991.tar.gz
samba-f6439613432f73319ca6b855256ee44921071991.tar.bz2
samba-f6439613432f73319ca6b855256ee44921071991.zip
libcli/smb: add smb2cli_tcon_is_encryption_on()
https://bugzilla.samba.org/show_bug.cgi?id=10208 Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'libcli/smb')
-rw-r--r--libcli/smb/smbXcli_base.c5
-rw-r--r--libcli/smb/smbXcli_base.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/libcli/smb/smbXcli_base.c b/libcli/smb/smbXcli_base.c
index 27ac2a8f58..9e5891afe6 100644
--- a/libcli/smb/smbXcli_base.c
+++ b/libcli/smb/smbXcli_base.c
@@ -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;
+}
diff --git a/libcli/smb/smbXcli_base.h b/libcli/smb/smbXcli_base.h
index 3d93427219..852fc7143a 100644
--- a/libcli/smb/smbXcli_base.h
+++ b/libcli/smb/smbXcli_base.h
@@ -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,