1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-11 16:58:40 +03:00

selftest: Merge alternate error codes into backupkey from backupkey_heimdal

This is from cea4a4b9b22c78f9736e2290d302a88644db4031 and
613d085a63ee554084cb99d2150921dd108f6b77

BUG: https://bugzilla.samba.org/show_bug.cgi?id=12107

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Wed Aug  3 21:43:21 CEST 2016 on sn-devel-144
This commit is contained in:
Andrew Bartlett 2016-08-02 13:20:46 +12:00 committed by Stefan Metzmacher
parent 664bde19bf
commit 065dcc8a45

View File

@ -2217,10 +2217,12 @@ static bool test_ServerWrap_decrypt_wrong_stuff(struct torture_context *tctx,
WERR_INVALID_ACCESS,
"decrypt should fail with WERR_INVALID_ACCESS");
} else {
torture_assert_werr_equal(tctx,
r.out.result,
WERR_INVALID_PARAM,
"decrypt should fail with WERR_INVALID_PARAM");
if (!W_ERROR_EQUAL(r.out.result, WERR_INVALID_ACCESS)
&& !W_ERROR_EQUAL(r.out.result, WERR_INVALID_PARAM)) {
torture_assert_werr_equal(tctx, r.out.result,
WERR_INVALID_DATA,
"decrypt should fail with WERR_INVALID_ACCESS, WERR_INVALID_PARAM or WERR_INVALID_DATA");
}
}
/* Decrypt */