diff options
author | Stefan Metzmacher <metze@samba.org> | 2012-05-05 09:42:28 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2012-05-06 14:50:39 +0200 |
commit | 5252ddf74e514c200a05be5b1dc20bfb358f86c4 (patch) | |
tree | f4bcacd04dc47ecb941cf1a75c985ef8e81b8ac3 /source3/torture | |
parent | 43085e9b8228524ad703ab8f12f0e648af3ef3c2 (diff) | |
download | samba-5252ddf74e514c200a05be5b1dc20bfb358f86c4.tar.gz samba-5252ddf74e514c200a05be5b1dc20bfb358f86c4.tar.bz2 samba-5252ddf74e514c200a05be5b1dc20bfb358f86c4.zip |
s3:torture/test_smb2: add support for PROTOCOL_SMB3_00
metze
Diffstat (limited to 'source3/torture')
-rw-r--r-- | source3/torture/test_smb2.c | 17 |
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; |