diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c7a344c52911c..b52b8c15f4dbd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -179,6 +179,19 @@ jobs: - name: make test run: make test HARNESS_JOBS=${HARNESS_JOBS:-4} + fips_and_ktls: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: modprobe tls + run: sudo modprobe tls + - name: config + run: ./config --banner=Configured --strict-warnings enable-ktls enable-fips && perl configdata.pm --dump + - name: make + run: make -s -j4 + - name: make test + run: make test HARNESS_JOBS=${HARNESS_JOBS:-4} + no-legacy: runs-on: ubuntu-latest steps: diff --git a/test/sslapitest.c b/test/sslapitest.c index e95d2657f46c4..7af0eab3fce03 100644 --- a/test/sslapitest.c +++ b/test/sslapitest.c @@ -1158,6 +1158,11 @@ static int execute_test_ktls(int cis_ktls, int sis_ktls, goto end; } + if (is_fips && strstr(cipher, "CHACHA") != NULL) { + testresult = TEST_skip("CHACHA is not supported in FIPS"); + goto end; + } + /* Create a session based on SHA-256 */ if (!TEST_true(create_ssl_ctx_pair(libctx, TLS_server_method(), TLS_client_method(), @@ -1292,6 +1297,11 @@ static int execute_test_ktls_sendfile(int tls_version, const char *cipher) goto end; } + if (is_fips && strstr(cipher, "CHACHA") != NULL) { + testresult = TEST_skip("CHACHA is not supported in FIPS"); + goto end; + } + /* Create a session based on SHA-256 */ if (!TEST_true(create_ssl_ctx_pair(libctx, TLS_server_method(), TLS_client_method(),