mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
s3:torture: make use of cli_smb1_setup_encryption() in force_cli_encryption()
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
parent
b9b0815d0f
commit
791847f90c
@ -108,15 +108,7 @@ static bool force_cli_encryption(struct cli_state *c,
|
||||
return false;
|
||||
}
|
||||
|
||||
if (c->use_kerberos) {
|
||||
status = cli_gss_smb_encryption_start(c);
|
||||
} else {
|
||||
status = cli_raw_ntlm_smb_encryption_start(c,
|
||||
username,
|
||||
password,
|
||||
workgroup);
|
||||
}
|
||||
|
||||
status = cli_smb1_setup_encryption(c, torture_creds);
|
||||
if (!NT_STATUS_IS_OK(status)) {
|
||||
d_printf("Encryption required and "
|
||||
"setup failed with error %s.\n",
|
||||
|
Loading…
Reference in New Issue
Block a user