]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Restore test coverage for old session key types 1361/head
authorGreg Hudson <ghudson@mit.edu>
Mon, 29 Jul 2024 16:34:10 +0000 (12:34 -0400)
committerGreg Hudson <ghudson@mit.edu>
Wed, 31 Jul 2024 00:28:43 +0000 (20:28 -0400)
Commit 1b57a4d134bbd0e7c52d5885a92eccc815726463 made the KDC stop
issuing des3 and rc4 session keys by default.  To make the des3 and
arcfour passes of the test suite work, it added aes256-sha1 to the
permitted enctypes for those passes.  Negotiating AES session keys
reduces coverage of pre-CFX GSSAPI code and other uses of the older
enctypes.  Instead set the enable_des3 and enable_rc4 variables.

src/util/k5test.py

index f205f0ab38bae1af0ab949a8ccdee137670dca87..f3e0045c2e7486c478d2f4763fa1dea6e9a6bd78 100644 (file)
@@ -1339,14 +1339,14 @@ _passes = [
 
     # Exercise the DES3 enctype.
     ('des3', None,
-     {'libdefaults': {'permitted_enctypes': 'des3 aes256-sha1'}},
+     {'libdefaults': {'permitted_enctypes': 'des3', 'allow_des3': 'true'}},
      {'realms': {'$realm': {
                     'supported_enctypes': 'des3-cbc-sha1:normal',
                     'master_key_type': 'des3-cbc-sha1'}}}),
 
     # Exercise the arcfour enctype.
     ('arcfour', None,
-     {'libdefaults': {'permitted_enctypes': 'rc4 aes256-sha1'}},
+     {'libdefaults': {'permitted_enctypes': 'rc4', 'allow_rc4': 'true'}},
      {'realms': {'$realm': {
                     'supported_enctypes': 'arcfour-hmac:normal',
                     'master_key_type': 'arcfour-hmac'}}}),