]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
Define have_blowfish variable in ncp unit tests
authorMax Fillinger <maximilian.fillinger@foxcrypto.com>
Wed, 8 Dec 2021 14:41:01 +0000 (15:41 +0100)
committerGert Doering <gert@greenie.muc.de>
Wed, 8 Dec 2021 15:05:55 +0000 (16:05 +0100)
The previous commit was backported from master and needs this variable
to exist.

Signed-off-by: Max Fillinger <maximilian.fillinger@foxcrypto.com>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20211208144101.19166-1-maximilian.fillinger@foxcrypto.com>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg23356.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
tests/unit_tests/openvpn/test_ncp.c

index 8da76c03ec524ce71bea92f32e44c3376b115b20..bcafd2328ced6c17a3089629f1682b39c313afc9 100644 (file)
@@ -49,6 +49,7 @@ test_check_ncp_ciphers_list(void **state)
 {
     struct gc_arena gc = gc_new();
     bool have_chacha = cipher_kt_get("CHACHA20-POLY1305");
+    bool have_blowfish = cipher_kt_get("BF-CBC");
 
     assert_string_equal(mutate_ncp_cipher_list("none", &gc), "none");
     assert_string_equal(mutate_ncp_cipher_list("AES-256-GCM:none", &gc),
@@ -56,7 +57,7 @@ test_check_ncp_ciphers_list(void **state)
 
     assert_string_equal(mutate_ncp_cipher_list(aes_ciphers, &gc), aes_ciphers);
 
-    if (have_chacha)
+    if (have_chacha && have_blowfish)
     {
         assert_string_equal(mutate_ncp_cipher_list(bf_chacha, &gc), bf_chacha);
         assert_string_equal(mutate_ncp_cipher_list("BF-CBC:CHACHA20-POLY1305", &gc),