]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
tests/unit/test_chkhash.c: Remove tests for DES
authorAlejandro Colomar <alx@kernel.org>
Sun, 19 Jul 2026 12:00:41 +0000 (14:00 +0200)
committerSerge Hallyn <serge@hallyn.com>
Sun, 19 Jul 2026 13:16:16 +0000 (08:16 -0500)
We don't support it anymore.  These tests were now failing.

Fixes: 609bd9194174 (2026-07-17; "*/: Remove support for DES")
Closes: <https://github.com/shadow-maint/shadow/issues/1686>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
tests/unit/test_chkhash.c

index 9b0c614b88d9f42fb33664ca5fb81749b3b82dcc..7dc814957d2e9dccfc5de9a4abd8229730e72366 100644 (file)
@@ -121,17 +121,6 @@ test_is_valid_hash_ok_md5(MAYBE_UNUSED void ** _1)
 }
 
 
-static void
-test_is_valid_hash_ok_des(MAYBE_UNUSED void ** _1)
-{
-       // Basic DES hash: 13 characters
-       assert_true(is_valid_hash("abcDEF123./zZ"));
-
-       // DES with different character combinations
-       assert_true(is_valid_hash("ZZ./0123456xy"));
-}
-
-
 static void
 test_is_valid_hash_ok_special(MAYBE_UNUSED void ** _1)
 {
@@ -242,7 +231,6 @@ main(void)
         cmocka_unit_test(test_is_valid_hash_ok_sha512),
         cmocka_unit_test(test_is_valid_hash_ok_sha256),
         cmocka_unit_test(test_is_valid_hash_ok_md5),
-        cmocka_unit_test(test_is_valid_hash_ok_des),
         cmocka_unit_test(test_is_valid_hash_ok_special),
         cmocka_unit_test(test_is_valid_hash_edge_salt_chars),
         cmocka_unit_test(test_is_valid_hash_edge_account_locks),