1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

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>
This commit is contained in:
Michael Adam 2013-09-20 07:46:54 +02:00 committed by Jeremy Allison
parent 25494628a2
commit f643961343
2 changed files with 6 additions and 0 deletions

View 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;
}

View 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,