diff options
author | Ralph Boehme <slow@samba.org> | 2018-11-09 12:39:41 +0100 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2018-11-20 12:30:28 +0100 |
commit | 77cf7167374b65258ff9da9aaf6118ba0e63f1aa (patch) | |
tree | 5713248d7e5c9b158395913e242b8ce7a448af1a /source4 | |
parent | f2c456aa1b7d0a90d73265085d53275d868b56ac (diff) | |
download | samba-77cf7167374b65258ff9da9aaf6118ba0e63f1aa.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')
-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); |