Skip to content

Commit e47efc4

Browse files
authored
Merge pull request #14 from gardenlinux/fipsver
Change fips provider version
2 parents 3193520 + b5b65b0 commit e47efc4

6 files changed

Lines changed: 41 additions & 11 deletions

File tree

patches-debian/rules.patch.tpl

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
--- a/debian/rules
2+
+++ b/debian/rules
3+
@@ -30,7 +30,7 @@ ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
4+
endif
5+
6+
CONFARGS = --prefix=/usr --openssldir=/usr/lib/ssl --libdir=lib/$(DEB_HOST_MULTIARCH) no-idea no-mdc2 no-rc5 no-ssl3 enable-unit-test no-ssl3-method enable-rfc3779 enable-cms no-capieng no-rdrand \
7+
- enable-tfo enable-zstd enable-zlib enable-fips
8+
+ enable-tfo enable-zstd enable-zlib enable-fips '-DGL_FIPS_VERSION="\"$(VERSION)-SED_MARKER_FOR_FIPS_VERSION\""'
9+
#OPT_alpha = ev4 ev5
10+
ARCHOPTS = OPT_$(DEB_HOST_ARCH)
11+
OPTS = $($(ARCHOPTS))

patches-debian/series

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
symbols.patch
2+
rules.patch

prepare_source

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
git_src -b debian/openssl-3.5.5-1 https://salsa.debian.org/debian/openssl.git
22
import_upstream_patches
3-
apply_patches patches-debian
3+
44
version_suffix="gl21"
5+
fips_version_suffix="${version_suffix}"
6+
sed "s/SED_MARKER_FOR_FIPS_VERSION/$fips_version_suffix/" <patches-debian/rules.patch.tpl > patches-debian/rules.patch
7+
apply_patches patches-debian
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
:100644 100644 3a61c8e4e3 0000000000 M VERSION.dat
2+
3+
diff --git a/VERSION.dat b/VERSION.dat
4+
index 3a61c8e4e3..dceba4cddb 100644
5+
--- a/VERSION.dat
6+
+++ b/VERSION.dat
7+
@@ -7 +7,2 @@ RELEASE_DATE="27 Jan 2026"
8+
SHLIB_VERSION=3
9+
+FIPS_VENDOR="SAP SE Garden Linux nightly OpenSSL Cryptographic Module"
10+
--- a/providers/fips/fipsprov.c
11+
+++ b/providers/fips/fipsprov.c
12+
@@ -204,10 +204,10 @@ static int fips_get_params(void *provctx, OSSL_PARAM params[])
13+
if (p != NULL && !OSSL_PARAM_set_utf8_ptr(p, FIPS_VENDOR))
14+
return 0;
15+
p = OSSL_PARAM_locate(params, OSSL_PROV_PARAM_VERSION);
16+
- if (p != NULL && !OSSL_PARAM_set_utf8_ptr(p, OPENSSL_VERSION_STR))
17+
+ if (p != NULL && !OSSL_PARAM_set_utf8_ptr(p, GL_FIPS_VERSION))
18+
return 0;
19+
p = OSSL_PARAM_locate(params, OSSL_PROV_PARAM_BUILDINFO);
20+
- if (p != NULL && !OSSL_PARAM_set_utf8_ptr(p, OPENSSL_FULL_VERSION_STR))
21+
+ if (p != NULL && !OSSL_PARAM_set_utf8_ptr(p, GL_FIPS_VERSION))
22+
return 0;
23+
p = OSSL_PARAM_locate(params, OSSL_PROV_PARAM_STATUS);
24+
if (p != NULL && !OSSL_PARAM_set_int(p, ossl_prov_is_running()))

upstream_patches/0000-set-FIPS-vendor.patch

Lines changed: 0 additions & 9 deletions
This file was deleted.

upstream_patches/series

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
0000-set-FIPS-vendor.patch
1+
0000-set-FIPS-vendor-and-version.patch
22
0001-Allow-SHA256-192-to-be-used-internally-in-the-FIPS-p.patch
33
0002-FIPS-Allow-disabling-of-SHA1-signatures-and-Deny-SHA-1-signature-verification.patch
44
0003-FIPS-EC-DH-DSA-PCTs.patch

0 commit comments

Comments
 (0)