summaryrefslogtreecommitdiff
path: root/source3/torture
diff options
context:
space:
mode:
Diffstat (limited to 'source3/torture')
-rw-r--r--source3/torture/test_smb2.c17
1 files changed, 10 insertions, 7 deletions
diff --git a/source3/torture/test_smb2.c b/source3/torture/test_smb2.c
index eaeed82423..69776f4496 100644
--- a/source3/torture/test_smb2.c
+++ b/source3/torture/test_smb2.c
@@ -213,7 +213,7 @@ bool run_smb2_negprot(int dummy)
cli->smb2.pid = 0xFEFF;
status = smbXcli_negprot(cli->conn, cli->timeout,
- PROTOCOL_CORE, PROTOCOL_SMB2_24);
+ PROTOCOL_CORE, PROTOCOL_LATEST);
if (!NT_STATUS_IS_OK(status)) {
printf("smbXcli_negprot returned %s\n", nt_errstr(status));
return false;
@@ -234,6 +234,9 @@ bool run_smb2_negprot(int dummy)
case PROTOCOL_SMB2_24:
name = "SMB2_24";
break;
+ case PROTOCOL_SMB3_00:
+ name = "SMB3_00";
+ break;
default:
break;
}
@@ -290,7 +293,7 @@ bool run_smb2_session_reconnect(int dummy)
cli1->smb2.pid = 0xFEFF;
status = smbXcli_negprot(cli1->conn, cli1->timeout,
- PROTOCOL_SMB2_02, PROTOCOL_SMB2_24);
+ PROTOCOL_SMB2_02, PROTOCOL_LATEST);
if (!NT_STATUS_IS_OK(status)) {
printf("smbXcli_negprot returned %s\n", nt_errstr(status));
return false;
@@ -368,7 +371,7 @@ bool run_smb2_session_reconnect(int dummy)
cli2->smb2.pid = 0xFEFF;
status = smbXcli_negprot(cli2->conn, cli2->timeout,
- PROTOCOL_SMB2_02, PROTOCOL_SMB2_24);
+ PROTOCOL_SMB2_02, PROTOCOL_LATEST);
if (!NT_STATUS_IS_OK(status)) {
printf("smbXcli_negprot returned %s\n", nt_errstr(status));
return false;
@@ -677,7 +680,7 @@ bool run_smb2_tcon_dependence(int dummy)
cli->smb2.pid = 0xFEFF;
status = smbXcli_negprot(cli->conn, cli->timeout,
- PROTOCOL_SMB2_02, PROTOCOL_SMB2_24);
+ PROTOCOL_SMB2_02, PROTOCOL_LATEST);
if (!NT_STATUS_IS_OK(status)) {
printf("smbXcli_negprot returned %s\n", nt_errstr(status));
return false;
@@ -801,21 +804,21 @@ bool run_smb2_multi_channel(int dummy)
cli3->smb2.pid = 0xFEFF;
status = smbXcli_negprot(cli1->conn, cli1->timeout,
- PROTOCOL_SMB2_22, PROTOCOL_SMB2_24);
+ PROTOCOL_SMB2_22, PROTOCOL_LATEST);
if (!NT_STATUS_IS_OK(status)) {
printf("smbXcli_negprot returned %s\n", nt_errstr(status));
return false;
}
status = smbXcli_negprot(cli2->conn, cli2->timeout,
- PROTOCOL_SMB2_22, PROTOCOL_SMB2_24);
+ PROTOCOL_SMB2_22, PROTOCOL_LATEST);
if (!NT_STATUS_IS_OK(status)) {
printf("smbXcli_negprot returned %s\n", nt_errstr(status));
return false;
}
status = smbXcli_negprot(cli3->conn, cli3->timeout,
- PROTOCOL_SMB2_22, PROTOCOL_SMB2_24);
+ PROTOCOL_SMB2_22, PROTOCOL_LATEST);
if (!NT_STATUS_IS_OK(status)) {
printf("smbXcli_negprot returned %s\n", nt_errstr(status));
return false;