Compare commits
3 Commits
strongswan
...
strongswan
| Author | SHA1 | Date | |
|---|---|---|---|
| 0154eaadcf | |||
|
|
a2b9b8b4df | ||
|
|
812d691f0c |
6
.gitignore
vendored
6
.gitignore
vendored
@@ -9,9 +9,3 @@
|
|||||||
/strongswan-5.9.5.tar.bz2.sig
|
/strongswan-5.9.5.tar.bz2.sig
|
||||||
/strongswan-5.9.6.tar.bz2
|
/strongswan-5.9.6.tar.bz2
|
||||||
/strongswan-5.9.6.tar.bz2.sig
|
/strongswan-5.9.6.tar.bz2.sig
|
||||||
/strongswan-5.9.8.tar.bz2
|
|
||||||
/strongswan-5.9.8.tar.bz2.sig
|
|
||||||
/strongswan-5.9.9.tar.bz2
|
|
||||||
/strongswan-5.9.9.tar.bz2.sig
|
|
||||||
/strongswan-5.9.10.tar.bz2
|
|
||||||
/strongswan-5.9.10.tar.bz2.sig
|
|
||||||
|
|||||||
4
sources
4
sources
@@ -1,2 +1,2 @@
|
|||||||
SHA512 (strongswan-5.9.10.tar.bz2) = cf1d4a79ec02ac0502494ce6bfcab7399ddff151e2bc39bd4fbb9562bae7d0c66cf8d1e387b3c36a35e4387d597889fd7519e7bce07d3a7f764b1b73bd8a4667
|
SHA512 (strongswan-5.9.6.tar.bz2.sig) = c5f863eb1f504033aec2ab48f802584f97bb39650e55e829e31f36ea1594428caab84ea559ba82b56b060019598aada02df09311b583b098e32f5abad9fab29b
|
||||||
SHA512 (strongswan-5.9.10.tar.bz2.sig) = 174c3582c50505d7f35638eb68f717fd16e426009dff135125a847635fea1184d81fb7e81e24e3539bda1faa3fa9b1a42b679a841521c82d8048523d6b972fd3
|
SHA512 (strongswan-5.9.6.tar.bz2) = 8efb7a55b074485b874e941e42462e97a404b4f84e2f90ed18ef66274731b22d167a571f6fd028dccc1f199f2e591c82616d0a832a5084e1981c6b867fe5bb6a
|
||||||
|
|||||||
31
strongswan-5.9.4-test-socket.patch
Normal file
31
strongswan-5.9.4-test-socket.patch
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
From 377039d24648f82dac35dcf22a2b43de81f2fb96 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Petr Mensik <pemensik@redhat.com>
|
||||||
|
Date: Thu, 11 Nov 2021 05:48:38 +0100
|
||||||
|
Subject: [PATCH] Skip test case, which always hangs
|
||||||
|
|
||||||
|
It just stops and does not continue. Avoid that test.
|
||||||
|
---
|
||||||
|
src/libtls/tests/suites/test_socket.c | 2 ++
|
||||||
|
1 file changed, 2 insertions(+)
|
||||||
|
|
||||||
|
diff --git a/src/libtls/tests/suites/test_socket.c b/src/libtls/tests/suites/test_socket.c
|
||||||
|
index 9e26e91..5296680 100644
|
||||||
|
--- a/src/libtls/tests/suites/test_socket.c
|
||||||
|
+++ b/src/libtls/tests/suites/test_socket.c
|
||||||
|
@@ -804,11 +804,13 @@ Suite *socket_suite_create()
|
||||||
|
add_tls_versions_test(test_tls_12_server, TLS_1_0, TLS_1_3);
|
||||||
|
suite_add_tcase(s, tc);
|
||||||
|
|
||||||
|
+#if 0
|
||||||
|
tc = tcase_create("TLS 1.3/key exchange groups");
|
||||||
|
tcase_add_checked_fixture(tc, setup_creds, teardown_creds);
|
||||||
|
tcase_add_loop_test(tc, test_tls13_ke_groups, 0,
|
||||||
|
tls_crypto_get_supported_groups(NULL));
|
||||||
|
suite_add_tcase(s, tc);
|
||||||
|
+#endif
|
||||||
|
|
||||||
|
tc = tcase_create("TLS 1.3/signature schemes");
|
||||||
|
tcase_add_checked_fixture(tc, setup_all_creds, teardown_creds);
|
||||||
|
--
|
||||||
|
2.31.1
|
||||||
|
|
||||||
71
strongswan-5.9.5-atexit-handlers.patch
Normal file
71
strongswan-5.9.5-atexit-handlers.patch
Normal file
@@ -0,0 +1,71 @@
|
|||||||
|
--- strongswan-5.9.5-orig/src/libstrongswan/plugins/openssl/openssl_plugin.c 2022-01-08 12:54:02.000000000 +0100
|
||||||
|
+++ strongswan-5.9.5/src/libstrongswan/plugins/openssl/openssl_plugin.c 2022-02-23 23:12:03.685111475 +0100
|
||||||
|
@@ -16,7 +16,6 @@
|
||||||
|
|
||||||
|
#include <library.h>
|
||||||
|
#include <utils/debug.h>
|
||||||
|
-#include <collections/array.h>
|
||||||
|
#include <threading/thread.h>
|
||||||
|
#include <threading/mutex.h>
|
||||||
|
#include <threading/thread_value.h>
|
||||||
|
@@ -74,13 +73,6 @@
|
||||||
|
* public functions
|
||||||
|
*/
|
||||||
|
openssl_plugin_t public;
|
||||||
|
-
|
||||||
|
-#if OPENSSL_VERSION_NUMBER >= 0x30000000L
|
||||||
|
- /**
|
||||||
|
- * Loaded providers
|
||||||
|
- */
|
||||||
|
- array_t *providers;
|
||||||
|
-#endif
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
@@ -881,21 +873,12 @@
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
*features = f;
|
||||||
|
- return countof(f);
|
||||||
|
+ return count;
|
||||||
|
}
|
||||||
|
|
||||||
|
METHOD(plugin_t, destroy, void,
|
||||||
|
private_openssl_plugin_t *this)
|
||||||
|
{
|
||||||
|
-#if OPENSSL_VERSION_NUMBER >= 0x30000000L
|
||||||
|
- OSSL_PROVIDER *provider;
|
||||||
|
- while (array_remove(this->providers, ARRAY_TAIL, &provider))
|
||||||
|
- {
|
||||||
|
- OSSL_PROVIDER_unload(provider);
|
||||||
|
- }
|
||||||
|
- array_destroy(this->providers);
|
||||||
|
-#endif /* OPENSSL_VERSION_NUMBER */
|
||||||
|
-
|
||||||
|
/* OpenSSL 1.1.0 cleans up itself at exit and while OPENSSL_cleanup() exists we
|
||||||
|
* can't call it as we couldn't re-initialize the library (as required by the
|
||||||
|
* unit tests and the Android app) */
|
||||||
|
@@ -1009,20 +992,16 @@
|
||||||
|
DBG1(DBG_LIB, "unable to load OpenSSL FIPS provider");
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
- array_insert_create(&this->providers, ARRAY_TAIL, fips);
|
||||||
|
/* explicitly load the base provider containing encoding functions */
|
||||||
|
- array_insert_create(&this->providers, ARRAY_TAIL,
|
||||||
|
- OSSL_PROVIDER_load(NULL, "base"));
|
||||||
|
+ OSSL_PROVIDER_load(NULL, "base");
|
||||||
|
}
|
||||||
|
else if (lib->settings->get_bool(lib->settings, "%s.plugins.openssl.load_legacy",
|
||||||
|
TRUE, lib->ns))
|
||||||
|
{
|
||||||
|
/* load the legacy provider for algorithms like MD4, DES, BF etc. */
|
||||||
|
- array_insert_create(&this->providers, ARRAY_TAIL,
|
||||||
|
- OSSL_PROVIDER_load(NULL, "legacy"));
|
||||||
|
+ OSSL_PROVIDER_load(NULL, "legacy");
|
||||||
|
/* explicitly load the default provider, as mentioned by crypto(7) */
|
||||||
|
- array_insert_create(&this->providers, ARRAY_TAIL,
|
||||||
|
- OSSL_PROVIDER_load(NULL, "default"));
|
||||||
|
+ OSSL_PROVIDER_load(NULL, "default");
|
||||||
|
}
|
||||||
|
ossl_provider_names_t data = {};
|
||||||
|
OSSL_PROVIDER_do_all(NULL, concat_ossl_providers, &data);
|
||||||
11
strongswan-5.9.6-error-format-security.patch
Normal file
11
strongswan-5.9.6-error-format-security.patch
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
--- strongswan-5.9.6-orig/src/libstrongswan/utils/enum.c 2022-04-16 10:08:07.000000000 +0200
|
||||||
|
+++ strongswan-5.9.6/src/libstrongswan/utils/enum.c 2022-06-20 23:21:47.408857710 +0200
|
||||||
|
@@ -97,7 +97,7 @@
|
||||||
|
return buf;
|
||||||
|
}
|
||||||
|
|
||||||
|
- if (snprintf(buf, len, e->names[0]) >= len)
|
||||||
|
+ if (snprintf(buf, len, "%s", e->names[0]) >= len)
|
||||||
|
{
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
diff --git a/configure.ac b/configure.ac
|
|
||||||
index f9e6e55c2..247d055d8 100644
|
|
||||||
--- a/configure.ac
|
|
||||||
+++ b/configure.ac
|
|
||||||
@@ -1480,7 +1480,6 @@ else
|
|
||||||
fi
|
|
||||||
# disable some warnings, whether explicitly enabled above or by default
|
|
||||||
# these are not compatible with our custom printf specifiers
|
|
||||||
-WARN_CFLAGS="$WARN_CFLAGS -Wno-format"
|
|
||||||
WARN_CFLAGS="$WARN_CFLAGS -Wno-format-security"
|
|
||||||
# we generally use comments, but GCC doesn't seem to recognize many of them
|
|
||||||
WARN_CFLAGS="$WARN_CFLAGS -Wno-implicit-fallthrough"
|
|
||||||
@@ -13,35 +13,31 @@
|
|||||||
%bcond_with tss_trousers
|
%bcond_with tss_trousers
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%global forgeurl0 https://github.com/strongswan/strongswan
|
|
||||||
|
|
||||||
Name: strongswan
|
Name: strongswan
|
||||||
Version: 5.9.10
|
Version: 5.9.6
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: An OpenSource IPsec-based VPN and TNC solution
|
Summary: An OpenSource IPsec-based VPN and TNC solution
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
URL: https://www.strongswan.org/
|
URL: http://www.strongswan.org/
|
||||||
VCS: git:%{forgeurl0}
|
Source0: http://download.strongswan.org/strongswan-%{version}%{?prerelease}.tar.bz2
|
||||||
Source0: https://download.strongswan.org/strongswan-%{version}%{?prerelease}.tar.bz2
|
Source1: http://download.strongswan.org/strongswan-%{version}%{?prerelease}.tar.bz2.sig
|
||||||
Source1: https://download.strongswan.org/strongswan-%{version}%{?prerelease}.tar.bz2.sig
|
|
||||||
Source2: https://download.strongswan.org/STRONGSWAN-RELEASE-PGP-KEY
|
Source2: https://download.strongswan.org/STRONGSWAN-RELEASE-PGP-KEY
|
||||||
Source3: tmpfiles-strongswan.conf
|
Source3: tmpfiles-strongswan.conf
|
||||||
Patch0: strongswan-5.6.0-uintptr_t.patch
|
Patch0: strongswan-5.6.0-uintptr_t.patch
|
||||||
# https://github.com/strongswan/strongswan/issues/1198
|
# https://github.com/strongswan/strongswan/issues/1025
|
||||||
Patch1: strongswan-5.9.7-error-no-format.patch
|
Patch1: strongswan-5.9.6-error-format-security.patch
|
||||||
|
|
||||||
Patch10: 0001-charon-add-optional-source-and-remote-overrides-for-.patch
|
Patch10: 0001-charon-add-optional-source-and-remote-overrides-for-.patch
|
||||||
Patch11: 0002-vici-send-certificates-for-ike-sa-events.patch
|
Patch11: 0002-vici-send-certificates-for-ike-sa-events.patch
|
||||||
Patch12: 0003-vici-add-support-for-individual-sa-state-changes.patch
|
Patch12: 0003-vici-add-support-for-individual-sa-state-changes.patch
|
||||||
|
|
||||||
BuildRequires: autoconf
|
# only needed for pre-release versions
|
||||||
BuildRequires: automake
|
#BuildRequires: autoconf automake
|
||||||
|
|
||||||
BuildRequires: gnupg2
|
BuildRequires: gnupg2
|
||||||
BuildRequires: make
|
BuildRequires: make
|
||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
BuildRequires: systemd
|
|
||||||
BuildRequires: systemd-devel
|
BuildRequires: systemd-devel
|
||||||
BuildRequires: systemd-rpm-macros
|
|
||||||
BuildRequires: gmp-devel
|
BuildRequires: gmp-devel
|
||||||
BuildRequires: libcurl-devel
|
BuildRequires: libcurl-devel
|
||||||
BuildRequires: openldap-devel
|
BuildRequires: openldap-devel
|
||||||
@@ -52,6 +48,7 @@ BuildRequires: libxml2-devel
|
|||||||
BuildRequires: pam-devel
|
BuildRequires: pam-devel
|
||||||
BuildRequires: json-c-devel
|
BuildRequires: json-c-devel
|
||||||
BuildRequires: libgcrypt-devel
|
BuildRequires: libgcrypt-devel
|
||||||
|
BuildRequires: systemd-devel
|
||||||
BuildRequires: iptables-devel
|
BuildRequires: iptables-devel
|
||||||
BuildRequires: libcap-devel
|
BuildRequires: libcap-devel
|
||||||
BuildRequires: tpm2-tss-devel
|
BuildRequires: tpm2-tss-devel
|
||||||
@@ -64,7 +61,7 @@ BuildRequires: python3-pytest
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if %{with perl}
|
%if %{with perl}
|
||||||
BuildRequires: perl-devel perl-generators
|
BuildRequires: perl-devel perl-macros
|
||||||
BuildRequires: perl(ExtUtils::MakeMaker)
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@@ -224,6 +221,8 @@ for Strongswan runtime configuration from perl applications.
|
|||||||
--enable-imv-attestation \
|
--enable-imv-attestation \
|
||||||
--enable-imv-os \
|
--enable-imv-os \
|
||||||
--enable-imc-os \
|
--enable-imc-os \
|
||||||
|
--enable-imc-swid \
|
||||||
|
--enable-imv-swid \
|
||||||
--enable-imc-swima \
|
--enable-imc-swima \
|
||||||
--enable-imv-swima \
|
--enable-imv-swima \
|
||||||
--enable-imc-hcd \
|
--enable-imc-hcd \
|
||||||
@@ -260,9 +259,6 @@ for p in bypass-lan; do
|
|||||||
echo -e "\ncharon.plugins.${p}.load := no" >> conf/plugins/${p}.opt
|
echo -e "\ncharon.plugins.${p}.load := no" >> conf/plugins/${p}.opt
|
||||||
done
|
done
|
||||||
|
|
||||||
# ensure manual page is regenerated with local configuration
|
|
||||||
rm -f src/ipsec/_ipsec.8
|
|
||||||
|
|
||||||
%make_build
|
%make_build
|
||||||
|
|
||||||
pushd src/libcharon/plugins/vici
|
pushd src/libcharon/plugins/vici
|
||||||
@@ -421,38 +417,10 @@ install -D -m 0644 %{SOURCE3} %{buildroot}/%{_tmpfilesdir}/strongswan-starter.co
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Thu Mar 02 2023 Paul Wouters <paul.wouters@aiven.io - 5.9.10-1
|
|
||||||
- Update to 5.9.10
|
|
||||||
|
|
||||||
* Tue Feb 28 2023 Paul Wouters <paul.wouters@aiven.io - 5.9.9-3
|
|
||||||
- Resolves: CVE-2023-26463 authorization bypass in TLS-based EAP methods
|
|
||||||
|
|
||||||
* Mon Jan 16 2023 Petr Menšík <pemensik@redhat.com> - 5.9.9-2
|
|
||||||
- Use configure paths in manual pages (#2106120)
|
|
||||||
|
|
||||||
* Sun Jan 15 2023 Petr Menšík <pemensik@redhat.com> - 5.9.9-1
|
|
||||||
- Update to 5.9.9 (#2157850)
|
|
||||||
|
|
||||||
* Thu Dec 08 2022 Jitka Plesnikova <jplesnik@redhat.com> - 5.9.8-2
|
|
||||||
- Add BR perl-generators to automatically generates run-time dependencies
|
|
||||||
for installed Perl files
|
|
||||||
|
|
||||||
* Sun Oct 16 2022 Arne Reiter <redhat@arnereiter.de> - 5.9.8-1
|
|
||||||
- Resolves rhbz#2112274 strongswan-5.9.8 is available
|
|
||||||
- Patch1 removes CFLAGS -Wno-format which interferes with -Werror=format-security
|
|
||||||
- Add BuildRequire for autoconf and automake, now required for release
|
|
||||||
- Remove obsolete patches
|
|
||||||
|
|
||||||
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 5.9.6-2
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
||||||
|
|
||||||
* Wed Jun 22 2022 Arne Reiter <redhat@arnereiter.de> - 5.9.6-1
|
* Wed Jun 22 2022 Arne Reiter <redhat@arnereiter.de> - 5.9.6-1
|
||||||
- Resolves rhbz#2080070 strongswan-5.9.6 is available
|
- Resolves rhbz#2080070 strongswan-5.9.6 is available
|
||||||
- Fixed missing format string in enum_flags_to_string()
|
- Fixed missing format string in enum_flags_to_string()
|
||||||
|
|
||||||
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 5.9.5-4
|
|
||||||
- Rebuilt for Python 3.11
|
|
||||||
|
|
||||||
* Fri Feb 25 2022 Arne Reiter <redhat@arnereiter.de> - 5.9.5-3
|
* Fri Feb 25 2022 Arne Reiter <redhat@arnereiter.de> - 5.9.5-3
|
||||||
- Resolves: rhbz#2048108 - segfault at 18 ip 00007f4c7c0d841c sp 00007ffe49f61b70 error 4 in libc.so.6
|
- Resolves: rhbz#2048108 - segfault at 18 ip 00007f4c7c0d841c sp 00007ffe49f61b70 error 4 in libc.so.6
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user