]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
gnutls-cli-debug: skip GOST and X25519 tests in FIPS mode
authorDaiki Ueno <ueno@gnu.org>
Tue, 5 Nov 2024 13:56:36 +0000 (22:56 +0900)
committerDaiki Ueno <ueno@gnu.org>
Tue, 5 Nov 2024 13:56:36 +0000 (22:56 +0900)
Signed-off-by: Daiki Ueno <ueno@gnu.org>
src/tests.c

index 2621a110169216e8677f5908203f3a5195c6a203..6544d1e2e01a5181b684b00d1bd82c685808f1db 100644 (file)
@@ -287,6 +287,9 @@ test_code_t test_vko_gost_12(gnutls_session_t session)
        if (tls_ext_ok == 0)
                return TEST_IGNORE;
 
+       if (gnutls_fips140_mode_enabled())
+               return TEST_IGNORE;
+
        sprintf(prio_str,
                INIT_STR ALL_CIPHERS ":" ALL_COMP ":%s:" ALL_MACS
                                     ":+VKO-GOST-12:%s",
@@ -375,6 +378,9 @@ test_code_t test_ecdhe_secp521r1(gnutls_session_t session)
 
 test_code_t test_ecdhe_x25519(gnutls_session_t session)
 {
+       if (gnutls_fips140_mode_enabled())
+               return TEST_IGNORE;
+
        return test_ecdhe_curve(session, "+CURVE-X25519",
                                GNUTLS_ECC_CURVE_X25519);
 }