mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
s3:libsmb: add cli_state_encryption_on()
metze
This commit is contained in:
parent
fb2ee304a8
commit
c70103f3f8
@ -257,6 +257,12 @@ struct cli_state *cli_initialise(void)
|
||||
return cli_initialise_ex(Undefined);
|
||||
}
|
||||
|
||||
bool cli_state_encryption_on(struct cli_state *cli)
|
||||
{
|
||||
return common_encryption_on(cli->trans_enc_state);
|
||||
}
|
||||
|
||||
|
||||
/****************************************************************************
|
||||
Close all pipes open on this session.
|
||||
****************************************************************************/
|
||||
|
@ -470,7 +470,7 @@ smbc_option_get(SMBCCTX *context,
|
||||
|
||||
for (s = context->internal->servers; s; s = s->next) {
|
||||
num_servers++;
|
||||
if (s->cli->trans_enc_state == NULL) {
|
||||
if (!cli_state_encryption_on(s->cli)) {
|
||||
return (void *)false;
|
||||
}
|
||||
}
|
||||
|
@ -161,6 +161,7 @@ NTSTATUS cli_set_password(struct cli_state *cli, const char *password);
|
||||
NTSTATUS cli_init_creds(struct cli_state *cli, const char *username, const char *domain, const char *password);
|
||||
struct cli_state *cli_initialise(void);
|
||||
struct cli_state *cli_initialise_ex(int signing_state);
|
||||
bool cli_state_encryption_on(struct cli_state *cli);
|
||||
void cli_nt_pipes_close(struct cli_state *cli);
|
||||
void cli_shutdown(struct cli_state *cli);
|
||||
void cli_sockopt(struct cli_state *cli, const char *options);
|
||||
|
Loading…
Reference in New Issue
Block a user