]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
Don't use BF-CBC in unit tests if we don't have it
authorMax Fillinger <maximilian.fillinger@foxcrypto.com>
Wed, 8 Dec 2021 13:46:55 +0000 (14:46 +0100)
committerGert Doering <gert@greenie.muc.de>
Wed, 8 Dec 2021 13:49:31 +0000 (14:49 +0100)
Signed-off-by: Max Fillinger <maximilian.fillinger@foxcrypto.com>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20211208134655.28905-1-maximilian.fillinger@foxcrypto.com>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg23354.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
tests/unit_tests/openvpn/test_ncp.c

index 6702133ad050204c85dff762c4639d845925c8c9..f4c28ffdfd50181e35b7b53da3f1676087f8ca57 100644 (file)
@@ -120,8 +120,11 @@ test_check_ncp_ciphers_list(void **state)
     assert_string_equal(mutate_ncp_cipher_list("id-aes128-GCM:id-aes256-GCM",
                                                &gc), "AES-128-GCM:AES-256-GCM");
 #else
-    assert_string_equal(mutate_ncp_cipher_list("BLOWFISH-CBC",
-                                               &gc), "BF-CBC");
+    if (have_blowfish)
+    {
+        assert_string_equal(mutate_ncp_cipher_list("BLOWFISH-CBC",
+                                                   &gc), "BF-CBC");
+    }
 #endif
     gc_free(&gc);
 }