]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
CVE-2022-37966 python:tests/krb5: add better PADATA_SUPPORTED_ETYPES assert message
authorStefan Metzmacher <metze@samba.org>
Tue, 29 Nov 2022 19:59:52 +0000 (20:59 +0100)
committerStefan Metzmacher <metze@samba.org>
Tue, 13 Dec 2022 23:48:49 +0000 (00:48 +0100)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15237

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
(cherry picked from commit c7c576208960e336da276e251ad7a526e1b3ed45)

python/samba/tests/krb5/raw_testcase.py

index e4b6402bb270616b048e19b6cb637c5f068d863b..2f188dca3faa72a61977737399301ebda5c0f5f2 100644 (file)
@@ -2955,8 +2955,8 @@ class RawKerberosTest(TestCaseInTempDir):
                         self.assertEqual(
                             supported_etypes & ~ignore_bits,
                             expected_supported_etypes & ~ignore_bits,
-                            f'got: {supported_etypes}, '
-                            f'expected: {expected_supported_etypes}')
+                            f'PADATA_SUPPORTED_ETYPES: got: {supported_etypes} (0x{supported_etypes:X}), '
+                            f'expected: {expected_supported_etypes} (0x{expected_supported_etypes:X})')
 
                     if PADATA_PAC_OPTIONS in enc_pa_dict:
                         pac_options = self.der_decode(