summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-12-22 13:14:21 +0100
committerStefan Metzmacher <metze@samba.org>2011-12-22 17:47:17 +0100
commit32317b0529b4322b0c080cc8916f095db0b82cf5 (patch)
tree664f09d6c092fb877a1b9e07541f7785455b41ad
parentd855e77c699cc8cc0c0ef552df5d88f39e277c8c (diff)
downloadsamba-32317b0529b4322b0c080cc8916f095db0b82cf5.tar.gz
samba-32317b0529b4322b0c080cc8916f095db0b82cf5.tar.bz2
samba-32317b0529b4322b0c080cc8916f095db0b82cf5.zip
s3:torture/test_smb2: also try PROTOCOL_SMB2_24
metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Thu Dec 22 17:47:17 CET 2011 on sn-devel-104
-rw-r--r--source3/torture/test_smb2.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/source3/torture/test_smb2.c b/source3/torture/test_smb2.c
index 34fac4d958..48786ae507 100644
--- a/source3/torture/test_smb2.c
+++ b/source3/torture/test_smb2.c
@@ -211,7 +211,7 @@ bool run_smb2_negprot(int dummy)
cli->smb2.pid = 0xFEFF;
status = smbXcli_negprot(cli->conn, cli->timeout,
- PROTOCOL_CORE, PROTOCOL_SMB2_22);
+ PROTOCOL_CORE, PROTOCOL_SMB2_24);
if (!NT_STATUS_IS_OK(status)) {
printf("smbXcli_negprot returned %s\n", nt_errstr(status));
return false;
@@ -229,6 +229,9 @@ bool run_smb2_negprot(int dummy)
case PROTOCOL_SMB2_22:
name = "SMB2_22";
break;
+ case PROTOCOL_SMB2_24:
+ name = "SMB2_24";
+ break;
default:
break;
}
@@ -284,7 +287,7 @@ bool run_smb2_session_reconnect(int dummy)
cli1->smb2.pid = 0xFEFF;
status = smbXcli_negprot(cli1->conn, cli1->timeout,
- PROTOCOL_SMB2_02, PROTOCOL_SMB2_22);
+ PROTOCOL_SMB2_02, PROTOCOL_SMB2_24);
if (!NT_STATUS_IS_OK(status)) {
printf("smbXcli_negprot returned %s\n", nt_errstr(status));
return false;
@@ -362,7 +365,7 @@ bool run_smb2_session_reconnect(int dummy)
cli2->smb2.pid = 0xFEFF;
status = smbXcli_negprot(cli2->conn, cli2->timeout,
- PROTOCOL_SMB2_02, PROTOCOL_SMB2_22);
+ PROTOCOL_SMB2_02, PROTOCOL_SMB2_24);
if (!NT_STATUS_IS_OK(status)) {
printf("smbXcli_negprot returned %s\n", nt_errstr(status));
return false;
@@ -664,7 +667,7 @@ bool run_smb2_tcon_dependence(int dummy)
cli->smb2.pid = 0xFEFF;
status = smbXcli_negprot(cli->conn, cli->timeout,
- PROTOCOL_SMB2_02, PROTOCOL_SMB2_22);
+ PROTOCOL_SMB2_02, PROTOCOL_SMB2_24);
if (!NT_STATUS_IS_OK(status)) {
printf("smbXcli_negprot returned %s\n", nt_errstr(status));
return false;
@@ -781,14 +784,14 @@ bool run_smb2_multi_channel(int dummy)
cli2->smb2.pid = 0xFEFF;
status = smbXcli_negprot(cli1->conn, cli1->timeout,
- PROTOCOL_SMB2_22, PROTOCOL_SMB2_22);
+ PROTOCOL_SMB2_22, PROTOCOL_SMB2_24);
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_22);
+ PROTOCOL_SMB2_22, PROTOCOL_SMB2_24);
if (!NT_STATUS_IS_OK(status)) {
printf("smbXcli_negprot returned %s\n", nt_errstr(status));
return false;