From f6439613432f73319ca6b855256ee44921071991 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Fri, 20 Sep 2013 07:46:54 +0200 Subject: libcli/smb: add smb2cli_tcon_is_encryption_on() https://bugzilla.samba.org/show_bug.cgi?id=10208 Signed-off-by: Michael Adam Reviewed-by: Jeremy Allison --- libcli/smb/smbXcli_base.c | 5 +++++ libcli/smb/smbXcli_base.h | 1 + 2 files changed, 6 insertions(+) (limited to 'libcli') 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, -- cgit