diff options
author | Ralph Boehme <slow@samba.org> | 2018-11-09 12:39:41 +0100 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2018-11-23 09:01:27 +0100 |
commit | 3d9debd0f7e43dc20450acef90ce0180193a6ad6 (patch) | |
tree | c6551d0fc72685b37b2ca7a04ec64e6a95327c06 /source4/torture/smb2 | |
parent | 9694933cc39adfb37afaec7edc6a1650b5ec57a8 (diff) | |
download | samba-3d9debd0f7e43dc20450acef90ce0180193a6ad6.tar.gz |
s4:torture/smb2/session: session reauth response must be signed
This test checks that a session setup reauth is signed even when neither
client nor server require signing.
Bug: https://bugzilla.samba.org/show_bug.cgi?id=13661
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
(cherry picked from commit 181f18c4bf70754a6f3132375d06250baab2871b)
Diffstat (limited to 'source4/torture/smb2')
-rw-r--r-- | source4/torture/smb2/session.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source4/torture/smb2/session.c b/source4/torture/smb2/session.c index 0a0b54774e2..57a5addcfcc 100644 --- a/source4/torture/smb2/session.c +++ b/source4/torture/smb2/session.c @@ -1191,6 +1191,13 @@ done: return ret; } +static bool test_session_expire1n(struct torture_context *tctx) +{ + return test_session_expire1i(tctx, + false, /* force_signing */ + false); /* force_encryption */ +} + static bool test_session_expire1s(struct torture_context *tctx) { return test_session_expire1i(tctx, @@ -1742,6 +1749,7 @@ struct torture_suite *torture_smb2_session_init(TALLOC_CTX *ctx) torture_suite_add_1smb2_test(suite, "reauth4", test_session_reauth4); torture_suite_add_1smb2_test(suite, "reauth5", test_session_reauth5); torture_suite_add_1smb2_test(suite, "reauth6", test_session_reauth6); + torture_suite_add_simple_test(suite, "expire1n", test_session_expire1n); torture_suite_add_simple_test(suite, "expire1s", test_session_expire1s); torture_suite_add_simple_test(suite, "expire1e", test_session_expire1e); torture_suite_add_simple_test(suite, "expire2s", test_session_expire2s); |