2024-05-23 14:02:16 +00:00
|
|
|
From 831d0025257fd3746ab3fe30c05dbbfc0043f78e Mon Sep 17 00:00:00 2001
|
2023-07-31 08:04:55 +00:00
|
|
|
From: rpm-build <rpm-build>
|
2024-05-23 14:02:16 +00:00
|
|
|
Date: Wed, 6 Mar 2024 19:17:15 +0100
|
|
|
|
Subject: [PATCH 16/49] 0033-FIPS-embed-hmac.patch
|
2023-07-31 08:04:55 +00:00
|
|
|
|
|
|
|
Patch-name: 0033-FIPS-embed-hmac.patch
|
|
|
|
Patch-id: 33
|
|
|
|
Patch-status: |
|
2023-10-26 10:29:21 +00:00
|
|
|
# # Embed HMAC into the fips.so
|
2024-05-23 14:02:16 +00:00
|
|
|
# Modify fips self test as per
|
|
|
|
# https://github.com/simo5/openssl/commit/9b95ef8bd2f5ac862e5eee74c724b535f1a8578a
|
|
|
|
From-dist-git-commit: 4334bc837fbc64d14890fdc51679a80770d498ce
|
2023-07-31 08:04:55 +00:00
|
|
|
---
|
2024-05-23 14:02:16 +00:00
|
|
|
providers/fips/self_test.c | 204 ++++++++++++++++++++++++--
|
|
|
|
test/fipsmodule.cnf | 2 +
|
|
|
|
test/recipes/00-prep_fipsmodule_cnf.t | 2 +-
|
|
|
|
test/recipes/01-test_fipsmodule_cnf.t | 2 +-
|
|
|
|
test/recipes/03-test_fipsinstall.t | 2 +-
|
|
|
|
test/recipes/30-test_defltfips.t | 2 +-
|
|
|
|
test/recipes/80-test_ssl_new.t | 2 +-
|
|
|
|
test/recipes/90-test_sslapi.t | 2 +-
|
|
|
|
8 files changed, 200 insertions(+), 18 deletions(-)
|
2023-07-31 08:04:55 +00:00
|
|
|
create mode 100644 test/fipsmodule.cnf
|
|
|
|
|
|
|
|
diff --git a/providers/fips/self_test.c b/providers/fips/self_test.c
|
2024-05-23 14:02:16 +00:00
|
|
|
index b8dc9817b2..28f536d13c 100644
|
2023-07-31 08:04:55 +00:00
|
|
|
--- a/providers/fips/self_test.c
|
|
|
|
+++ b/providers/fips/self_test.c
|
2024-05-23 14:02:16 +00:00
|
|
|
@@ -230,11 +230,133 @@ err:
|
2023-07-27 16:50:18 +00:00
|
|
|
return ok;
|
2022-09-01 10:42:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
+#define HMAC_LEN 32
|
|
|
|
+/*
|
|
|
|
+ * The __attribute__ ensures we've created the .rodata1 section
|
|
|
|
+ * static ensures it's zero filled
|
|
|
|
+*/
|
|
|
|
+static const unsigned char __attribute__ ((section (".rodata1"))) fips_hmac_container[HMAC_LEN] = {0};
|
|
|
|
+
|
|
|
|
/*
|
|
|
|
* Calculate the HMAC SHA256 of data read using a BIO and read_cb, and verify
|
|
|
|
* the result matches the expected value.
|
|
|
|
* Return 1 if verified, or 0 if it fails.
|
|
|
|
*/
|
2024-05-23 14:02:16 +00:00
|
|
|
+
|
2022-09-01 10:42:16 +00:00
|
|
|
+#ifndef __USE_GNU
|
|
|
|
+#define __USE_GNU
|
|
|
|
+#include <dlfcn.h>
|
|
|
|
+#undef __USE_GNU
|
|
|
|
+#else
|
|
|
|
+#include <dlfcn.h>
|
|
|
|
+#endif
|
|
|
|
+#include <link.h>
|
2024-05-23 14:02:16 +00:00
|
|
|
+
|
|
|
|
+static int verify_integrity_rodata(OSSL_CORE_BIO *bio,
|
|
|
|
+ OSSL_FUNC_BIO_read_ex_fn read_ex_cb,
|
|
|
|
+ unsigned char *expected, size_t expected_len,
|
|
|
|
+ OSSL_LIB_CTX *libctx, OSSL_SELF_TEST *ev,
|
|
|
|
+ const char *event_type)
|
|
|
|
+{
|
|
|
|
+ int ret = 0, status;
|
|
|
|
+ unsigned char out[MAX_MD_SIZE];
|
|
|
|
+ unsigned char buf[INTEGRITY_BUF_SIZE];
|
|
|
|
+ size_t bytes_read = 0, out_len = 0;
|
|
|
|
+ EVP_MAC *mac = NULL;
|
|
|
|
+ EVP_MAC_CTX *ctx = NULL;
|
|
|
|
+ OSSL_PARAM params[2], *p = params;
|
|
|
|
+ Dl_info info;
|
|
|
|
+ void *extra_info = NULL;
|
|
|
|
+ struct link_map *lm = NULL;
|
|
|
|
+ unsigned long paddr;
|
|
|
|
+ unsigned long off = 0;
|
|
|
|
+
|
|
|
|
+ if (expected_len != HMAC_LEN)
|
|
|
|
+ goto err;
|
|
|
|
+
|
|
|
|
+ if (!integrity_self_test(ev, libctx))
|
|
|
|
+ goto err;
|
|
|
|
+
|
|
|
|
+ OSSL_SELF_TEST_onbegin(ev, event_type, OSSL_SELF_TEST_DESC_INTEGRITY_HMAC);
|
|
|
|
+
|
|
|
|
+ if (!dladdr1 ((const void *)fips_hmac_container,
|
|
|
|
+ &info, &extra_info, RTLD_DL_LINKMAP))
|
|
|
|
+ goto err;
|
|
|
|
+ lm = extra_info;
|
|
|
|
+ paddr = (unsigned long)fips_hmac_container - lm->l_addr;
|
|
|
|
+
|
|
|
|
+ mac = EVP_MAC_fetch(libctx, MAC_NAME, NULL);
|
|
|
|
+ if (mac == NULL)
|
|
|
|
+ goto err;
|
|
|
|
+ ctx = EVP_MAC_CTX_new(mac);
|
|
|
|
+ if (ctx == NULL)
|
|
|
|
+ goto err;
|
|
|
|
+
|
|
|
|
+ *p++ = OSSL_PARAM_construct_utf8_string("digest", DIGEST_NAME, 0);
|
|
|
|
+ *p = OSSL_PARAM_construct_end();
|
|
|
|
+
|
|
|
|
+ if (!EVP_MAC_init(ctx, fixed_key, sizeof(fixed_key), params))
|
|
|
|
+ goto err;
|
|
|
|
+
|
|
|
|
+ while ((off + INTEGRITY_BUF_SIZE) <= paddr) {
|
|
|
|
+ status = read_ex_cb(bio, buf, INTEGRITY_BUF_SIZE, &bytes_read);
|
|
|
|
+ if (status != 1)
|
|
|
|
+ break;
|
|
|
|
+ if (!EVP_MAC_update(ctx, buf, bytes_read))
|
|
|
|
+ goto err;
|
|
|
|
+ off += bytes_read;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if (off < paddr) {
|
|
|
|
+ int delta = paddr - off;
|
|
|
|
+ status = read_ex_cb(bio, buf, delta, &bytes_read);
|
|
|
|
+ if (status != 1)
|
|
|
|
+ goto err;
|
|
|
|
+ if (!EVP_MAC_update(ctx, buf, bytes_read))
|
|
|
|
+ goto err;
|
|
|
|
+ off += bytes_read;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /* read away the buffer */
|
|
|
|
+ status = read_ex_cb(bio, buf, HMAC_LEN, &bytes_read);
|
|
|
|
+ if (status != 1)
|
|
|
|
+ goto err;
|
|
|
|
+
|
|
|
|
+ /* check that it is the expect bytes, no point in continuing otherwise */
|
|
|
|
+ if (memcmp(expected, buf, HMAC_LEN) != 0)
|
|
|
|
+ goto err;
|
|
|
|
+
|
|
|
|
+ /* replace in-file HMAC buffer with the original zeros */
|
|
|
|
+ memset(buf, 0, HMAC_LEN);
|
|
|
|
+ if (!EVP_MAC_update(ctx, buf, HMAC_LEN))
|
|
|
|
+ goto err;
|
|
|
|
+ off += HMAC_LEN;
|
|
|
|
+
|
|
|
|
+ while (bytes_read > 0) {
|
|
|
|
+ status = read_ex_cb(bio, buf, INTEGRITY_BUF_SIZE, &bytes_read);
|
|
|
|
+ if (status != 1)
|
|
|
|
+ break;
|
|
|
|
+ if (!EVP_MAC_update(ctx, buf, bytes_read))
|
|
|
|
+ goto err;
|
|
|
|
+ off += bytes_read;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if (!EVP_MAC_final(ctx, out, &out_len, sizeof(out)))
|
|
|
|
+ goto err;
|
|
|
|
+
|
|
|
|
+ OSSL_SELF_TEST_oncorrupt_byte(ev, out);
|
|
|
|
+ if (expected_len != out_len
|
|
|
|
+ || memcmp(expected, out, out_len) != 0)
|
|
|
|
+ goto err;
|
|
|
|
+ ret = 1;
|
|
|
|
+err:
|
|
|
|
+ OPENSSL_cleanse(out, MAX_MD_SIZE);
|
|
|
|
+ OSSL_SELF_TEST_onend(ev, ret);
|
|
|
|
+ EVP_MAC_CTX_free(ctx);
|
|
|
|
+ EVP_MAC_free(mac);
|
|
|
|
+ return ret;
|
|
|
|
+}
|
2022-09-01 10:42:16 +00:00
|
|
|
+
|
|
|
|
static int verify_integrity(OSSL_CORE_BIO *bio, OSSL_FUNC_BIO_read_ex_fn read_ex_cb,
|
|
|
|
unsigned char *expected, size_t expected_len,
|
|
|
|
OSSL_LIB_CTX *libctx, OSSL_SELF_TEST *ev,
|
2024-05-23 14:02:16 +00:00
|
|
|
@@ -247,12 +369,23 @@ static int verify_integrity(OSSL_CORE_BIO *bio, OSSL_FUNC_BIO_read_ex_fn read_ex
|
2022-09-01 10:42:16 +00:00
|
|
|
EVP_MAC *mac = NULL;
|
|
|
|
EVP_MAC_CTX *ctx = NULL;
|
|
|
|
OSSL_PARAM params[2], *p = params;
|
|
|
|
+ Dl_info info;
|
|
|
|
+ void *extra_info = NULL;
|
|
|
|
+ struct link_map *lm = NULL;
|
|
|
|
+ unsigned long paddr;
|
|
|
|
+ unsigned long off = 0;
|
|
|
|
|
2023-07-27 16:50:18 +00:00
|
|
|
if (!integrity_self_test(ev, libctx))
|
|
|
|
goto err;
|
|
|
|
|
2022-09-01 10:42:16 +00:00
|
|
|
OSSL_SELF_TEST_onbegin(ev, event_type, OSSL_SELF_TEST_DESC_INTEGRITY_HMAC);
|
|
|
|
|
|
|
|
+ if (!dladdr1 ((const void *)fips_hmac_container,
|
|
|
|
+ &info, &extra_info, RTLD_DL_LINKMAP))
|
|
|
|
+ goto err;
|
|
|
|
+ lm = extra_info;
|
|
|
|
+ paddr = (unsigned long)fips_hmac_container - lm->l_addr;
|
|
|
|
+
|
|
|
|
mac = EVP_MAC_fetch(libctx, MAC_NAME, NULL);
|
|
|
|
if (mac == NULL)
|
|
|
|
goto err;
|
2024-05-23 14:02:16 +00:00
|
|
|
@@ -266,13 +399,42 @@ static int verify_integrity(OSSL_CORE_BIO *bio, OSSL_FUNC_BIO_read_ex_fn read_ex
|
2022-09-01 10:42:16 +00:00
|
|
|
if (!EVP_MAC_init(ctx, fixed_key, sizeof(fixed_key), params))
|
|
|
|
goto err;
|
|
|
|
|
2023-01-05 10:30:00 +00:00
|
|
|
- while (1) {
|
2022-09-01 10:42:16 +00:00
|
|
|
- status = read_ex_cb(bio, buf, sizeof(buf), &bytes_read);
|
2023-01-05 10:30:00 +00:00
|
|
|
+ while ((off + INTEGRITY_BUF_SIZE) <= paddr) {
|
|
|
|
+ status = read_ex_cb(bio, buf, INTEGRITY_BUF_SIZE, &bytes_read);
|
2024-05-23 14:02:16 +00:00
|
|
|
if (status != 1)
|
|
|
|
break;
|
|
|
|
if (!EVP_MAC_update(ctx, buf, bytes_read))
|
|
|
|
goto err;
|
2023-01-05 10:30:00 +00:00
|
|
|
+ off += bytes_read;
|
2024-05-23 14:02:16 +00:00
|
|
|
}
|
2023-01-05 10:30:00 +00:00
|
|
|
+
|
|
|
|
+ if (off + INTEGRITY_BUF_SIZE > paddr) {
|
|
|
|
+ int delta = paddr - off;
|
|
|
|
+ status = read_ex_cb(bio, buf, delta, &bytes_read);
|
|
|
|
+ if (status != 1)
|
|
|
|
+ goto err;
|
|
|
|
+ if (!EVP_MAC_update(ctx, buf, bytes_read))
|
|
|
|
+ goto err;
|
|
|
|
+ off += bytes_read;
|
|
|
|
+
|
|
|
|
+ status = read_ex_cb(bio, buf, HMAC_LEN, &bytes_read);
|
|
|
|
+ memset(buf, 0, HMAC_LEN);
|
|
|
|
+ if (status != 1)
|
|
|
|
+ goto err;
|
|
|
|
+ if (!EVP_MAC_update(ctx, buf, bytes_read))
|
|
|
|
+ goto err;
|
|
|
|
+ off += bytes_read;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ while (bytes_read > 0) {
|
|
|
|
+ status = read_ex_cb(bio, buf, INTEGRITY_BUF_SIZE, &bytes_read);
|
2024-05-23 14:02:16 +00:00
|
|
|
+ if (status != 1)
|
|
|
|
+ break;
|
|
|
|
+ if (!EVP_MAC_update(ctx, buf, bytes_read))
|
|
|
|
+ goto err;
|
2023-01-05 10:30:00 +00:00
|
|
|
+ off += bytes_read;
|
2024-05-23 14:02:16 +00:00
|
|
|
+ }
|
2023-01-05 10:30:00 +00:00
|
|
|
+
|
2022-09-01 10:42:16 +00:00
|
|
|
if (!EVP_MAC_final(ctx, out, &out_len, sizeof(out)))
|
|
|
|
goto err;
|
2023-01-05 10:30:00 +00:00
|
|
|
|
2024-05-23 14:02:16 +00:00
|
|
|
@@ -282,6 +444,7 @@ static int verify_integrity(OSSL_CORE_BIO *bio, OSSL_FUNC_BIO_read_ex_fn read_ex
|
2023-08-31 15:23:53 +00:00
|
|
|
goto err;
|
|
|
|
ret = 1;
|
|
|
|
err:
|
|
|
|
+ OPENSSL_cleanse(out, sizeof(out));
|
|
|
|
OSSL_SELF_TEST_onend(ev, ret);
|
|
|
|
EVP_MAC_CTX_free(ctx);
|
|
|
|
EVP_MAC_free(mac);
|
2024-05-23 14:02:16 +00:00
|
|
|
@@ -335,8 +498,7 @@ int SELF_TEST_post(SELF_TEST_POST_PARAMS *st, int on_demand_test)
|
2023-10-26 10:29:21 +00:00
|
|
|
return 0;
|
2022-09-01 10:42:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
- if (st == NULL
|
|
|
|
- || st->module_checksum_data == NULL) {
|
|
|
|
+ if (st == NULL) {
|
|
|
|
ERR_raise(ERR_LIB_PROV, PROV_R_MISSING_CONFIG_DATA);
|
|
|
|
goto end;
|
|
|
|
}
|
2024-05-23 14:02:16 +00:00
|
|
|
@@ -345,8 +507,14 @@ int SELF_TEST_post(SELF_TEST_POST_PARAMS *st, int on_demand_test)
|
2022-09-01 10:42:16 +00:00
|
|
|
if (ev == NULL)
|
|
|
|
goto end;
|
|
|
|
|
|
|
|
- module_checksum = OPENSSL_hexstr2buf(st->module_checksum_data,
|
|
|
|
- &checksum_len);
|
2024-05-23 14:02:16 +00:00
|
|
|
+ if (st->module_checksum_data == NULL) {
|
|
|
|
+ module_checksum = fips_hmac_container;
|
|
|
|
+ checksum_len = sizeof(fips_hmac_container);
|
|
|
|
+ } else {
|
|
|
|
+ module_checksum = OPENSSL_hexstr2buf(st->module_checksum_data,
|
|
|
|
+ &checksum_len);
|
|
|
|
+ }
|
2022-09-01 10:42:16 +00:00
|
|
|
+
|
|
|
|
if (module_checksum == NULL) {
|
|
|
|
ERR_raise(ERR_LIB_PROV, PROV_R_INVALID_CONFIG_DATA);
|
|
|
|
goto end;
|
2024-05-23 14:02:16 +00:00
|
|
|
@@ -354,14 +522,27 @@ int SELF_TEST_post(SELF_TEST_POST_PARAMS *st, int on_demand_test)
|
|
|
|
bio_module = (*st->bio_new_file_cb)(st->module_filename, "rb");
|
|
|
|
|
|
|
|
/* Always check the integrity of the fips module */
|
|
|
|
- if (bio_module == NULL
|
|
|
|
- || !verify_integrity(bio_module, st->bio_read_ex_cb,
|
|
|
|
- module_checksum, checksum_len, st->libctx,
|
|
|
|
- ev, OSSL_SELF_TEST_TYPE_MODULE_INTEGRITY)) {
|
|
|
|
+ if (bio_module == NULL) {
|
|
|
|
ERR_raise(ERR_LIB_PROV, PROV_R_MODULE_INTEGRITY_FAILURE);
|
|
|
|
goto end;
|
|
|
|
}
|
|
|
|
-
|
|
|
|
+ if (st->module_checksum_data == NULL) {
|
|
|
|
+ if (!verify_integrity_rodata(bio_module, st->bio_read_ex_cb,
|
|
|
|
+ module_checksum, checksum_len,
|
|
|
|
+ st->libctx, ev,
|
|
|
|
+ OSSL_SELF_TEST_TYPE_MODULE_INTEGRITY)) {
|
|
|
|
+ ERR_raise(ERR_LIB_PROV, PROV_R_MODULE_INTEGRITY_FAILURE);
|
|
|
|
+ goto end;
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
|
|
+ if (!verify_integrity(bio_module, st->bio_read_ex_cb,
|
|
|
|
+ module_checksum, checksum_len,
|
|
|
|
+ st->libctx, ev,
|
|
|
|
+ OSSL_SELF_TEST_TYPE_MODULE_INTEGRITY)) {
|
|
|
|
+ ERR_raise(ERR_LIB_PROV, PROV_R_MODULE_INTEGRITY_FAILURE);
|
|
|
|
+ goto end;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
/* This will be NULL during installation - so the self test KATS will run */
|
|
|
|
if (st->indicator_data != NULL) {
|
|
|
|
/*
|
|
|
|
@@ -420,7 +601,6 @@ int SELF_TEST_post(SELF_TEST_POST_PARAMS *st, int on_demand_test)
|
2022-09-01 10:42:16 +00:00
|
|
|
end:
|
2023-07-27 16:50:18 +00:00
|
|
|
EVP_RAND_free(testrand);
|
2022-09-01 10:42:16 +00:00
|
|
|
OSSL_SELF_TEST_free(ev);
|
|
|
|
- OPENSSL_free(module_checksum);
|
|
|
|
OPENSSL_free(indicator_checksum);
|
|
|
|
|
|
|
|
if (st != NULL) {
|
2023-07-31 08:04:55 +00:00
|
|
|
diff --git a/test/fipsmodule.cnf b/test/fipsmodule.cnf
|
|
|
|
new file mode 100644
|
|
|
|
index 0000000000..f05d0dedbe
|
|
|
|
--- /dev/null
|
|
|
|
+++ b/test/fipsmodule.cnf
|
|
|
|
@@ -0,0 +1,2 @@
|
|
|
|
+[fips_sect]
|
|
|
|
+activate = 1
|
|
|
|
diff --git a/test/recipes/00-prep_fipsmodule_cnf.t b/test/recipes/00-prep_fipsmodule_cnf.t
|
|
|
|
index 4e3a6d85e8..e8255ba974 100644
|
|
|
|
--- a/test/recipes/00-prep_fipsmodule_cnf.t
|
|
|
|
+++ b/test/recipes/00-prep_fipsmodule_cnf.t
|
|
|
|
@@ -20,7 +20,7 @@ use lib srctop_dir('Configurations');
|
2022-09-01 10:42:16 +00:00
|
|
|
use lib bldtop_dir('.');
|
|
|
|
use platform;
|
|
|
|
|
|
|
|
-my $no_check = disabled("fips");
|
|
|
|
+my $no_check = 1;
|
|
|
|
plan skip_all => "FIPS module config file only supported in a fips build"
|
|
|
|
if $no_check;
|
|
|
|
|
2023-07-31 08:04:55 +00:00
|
|
|
diff --git a/test/recipes/01-test_fipsmodule_cnf.t b/test/recipes/01-test_fipsmodule_cnf.t
|
|
|
|
index ce594817d5..00cebacff8 100644
|
|
|
|
--- a/test/recipes/01-test_fipsmodule_cnf.t
|
|
|
|
+++ b/test/recipes/01-test_fipsmodule_cnf.t
|
|
|
|
@@ -23,7 +23,7 @@ use lib srctop_dir('Configurations');
|
2022-09-01 10:42:16 +00:00
|
|
|
use lib bldtop_dir('.');
|
|
|
|
use platform;
|
|
|
|
|
|
|
|
-my $no_check = disabled("fips");
|
|
|
|
+my $no_check = 1;
|
|
|
|
plan skip_all => "Test only supported in a fips build"
|
|
|
|
if $no_check;
|
|
|
|
plan tests => 1;
|
2023-07-31 08:04:55 +00:00
|
|
|
diff --git a/test/recipes/03-test_fipsinstall.t b/test/recipes/03-test_fipsinstall.t
|
|
|
|
index b8b136d110..8242f4ebc3 100644
|
|
|
|
--- a/test/recipes/03-test_fipsinstall.t
|
|
|
|
+++ b/test/recipes/03-test_fipsinstall.t
|
|
|
|
@@ -22,7 +22,7 @@ use lib srctop_dir('Configurations');
|
2022-09-01 10:42:16 +00:00
|
|
|
use lib bldtop_dir('.');
|
|
|
|
use platform;
|
|
|
|
|
|
|
|
-plan skip_all => "Test only supported in a fips build" if disabled("fips");
|
|
|
|
+plan skip_all => "Test only supported in a fips build" if 1;
|
|
|
|
|
2023-07-27 16:50:18 +00:00
|
|
|
# Compatible options for pedantic FIPS compliance
|
|
|
|
my @pedantic_okay =
|
2023-07-31 08:04:55 +00:00
|
|
|
diff --git a/test/recipes/30-test_defltfips.t b/test/recipes/30-test_defltfips.t
|
2023-10-26 10:29:21 +00:00
|
|
|
index c8f145405b..56a2ec5dc4 100644
|
2023-07-31 08:04:55 +00:00
|
|
|
--- a/test/recipes/30-test_defltfips.t
|
|
|
|
+++ b/test/recipes/30-test_defltfips.t
|
2023-10-26 10:29:21 +00:00
|
|
|
@@ -24,7 +24,7 @@ use lib bldtop_dir('.');
|
|
|
|
plan skip_all => "Configuration loading is turned off"
|
|
|
|
if disabled("autoload-config");
|
2022-09-01 10:42:16 +00:00
|
|
|
|
|
|
|
-my $no_fips = disabled('fips') || ($ENV{NO_FIPS} // 0);
|
|
|
|
+my $no_fips = 1; #disabled('fips') || ($ENV{NO_FIPS} // 0);
|
|
|
|
|
|
|
|
plan tests =>
|
|
|
|
($no_fips ? 1 : 5);
|
2023-07-31 08:04:55 +00:00
|
|
|
diff --git a/test/recipes/80-test_ssl_new.t b/test/recipes/80-test_ssl_new.t
|
2024-05-23 14:02:16 +00:00
|
|
|
index 195b85ea8c..92d48dbf7d 100644
|
2023-07-31 08:04:55 +00:00
|
|
|
--- a/test/recipes/80-test_ssl_new.t
|
|
|
|
+++ b/test/recipes/80-test_ssl_new.t
|
|
|
|
@@ -27,7 +27,7 @@ setup("test_ssl_new");
|
2022-09-01 10:42:16 +00:00
|
|
|
use lib srctop_dir('Configurations');
|
|
|
|
use lib bldtop_dir('.');
|
|
|
|
|
|
|
|
-my $no_fips = disabled('fips') || ($ENV{NO_FIPS} // 0);
|
|
|
|
+my $no_fips = 1; #disabled('fips') || ($ENV{NO_FIPS} // 0);
|
|
|
|
|
|
|
|
$ENV{TEST_CERTS_DIR} = srctop_dir("test", "certs");
|
|
|
|
|
2023-07-31 08:04:55 +00:00
|
|
|
diff --git a/test/recipes/90-test_sslapi.t b/test/recipes/90-test_sslapi.t
|
2024-05-23 14:02:16 +00:00
|
|
|
index 18d9f3d204..71780d8caa 100644
|
2023-07-31 08:04:55 +00:00
|
|
|
--- a/test/recipes/90-test_sslapi.t
|
|
|
|
+++ b/test/recipes/90-test_sslapi.t
|
|
|
|
@@ -17,7 +17,7 @@ setup("test_sslapi");
|
2024-05-23 14:02:16 +00:00
|
|
|
setup("test_sslapi");
|
|
|
|
}
|
2022-09-01 10:42:16 +00:00
|
|
|
|
|
|
|
-my $no_fips = disabled('fips') || ($ENV{NO_FIPS} // 0);
|
|
|
|
+my $no_fips = 1; #disabled('fips') || ($ENV{NO_FIPS} // 0);
|
2023-07-27 16:50:18 +00:00
|
|
|
my $fipsmodcfg_filename = "fipsmodule.cnf";
|
|
|
|
my $fipsmodcfg = bldtop_file("test", $fipsmodcfg_filename);
|
2022-09-01 10:42:16 +00:00
|
|
|
|
2023-07-31 08:04:55 +00:00
|
|
|
--
|
2024-05-23 14:02:16 +00:00
|
|
|
2.44.0
|
2023-12-08 12:39:16 +00:00
|
|
|
|