[packages/sslsplit] - rebuild with openssl 3.0.0, rel 2
baggins
baggins at pld-linux.org
Sun Oct 3 21:54:00 CEST 2021
commit 8f59013489c0a5f15241cd6ea64ae747a83061f6
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Sun Oct 3 21:53:39 2021 +0200
- rebuild with openssl 3.0.0, rel 2
openssl3.patch | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
sslsplit.spec | 5 ++++-
2 files changed, 62 insertions(+), 1 deletion(-)
---
diff --git a/sslsplit.spec b/sslsplit.spec
index a84115c..91b746e 100644
--- a/sslsplit.spec
+++ b/sslsplit.spec
@@ -2,13 +2,14 @@ Summary: Transparent and scalable SSL/TLS interception
Summary(pl.UTF-8): Przezroczyste i skalowalne przechwytywanie SSL/TLS
Name: sslsplit
Version: 0.5.5
-Release: 1
+Release: 2
License: BSD
Group: Applications/System
# see also https://github.com/droe/sslsplit/releases
#Source0: https://github.com/droe/sslsplit/archive/%{version}/%{name}-%{version}.tar.gz
Source0: https://mirror.roe.ch/rel/sslsplit/%{name}-%{version}.tar.bz2
# Source0-md5: c9628996a930bd18ce8e635dbedf0362
+Patch0: openssl3.patch
URL: https://www.roe.ch/SSLsplit
BuildRequires: check-devel
BuildRequires: libevent-devel >= 2
@@ -46,10 +47,12 @@ netfiltra.
%prep
%setup -q
+%patch0 -p1
%build
%{__make} \
CC="%{__cc}" \
+ CFLAGS="%{rpmcflags} %{rpmcppflags}" \
DEBUG_CFLAGS="%{rpmcflags} %{rpmcppflags}" \
PKG_LDFLAGS="%{rpmldflags}"
diff --git a/openssl3.patch b/openssl3.patch
new file mode 100644
index 0000000..09ebb0d
--- /dev/null
+++ b/openssl3.patch
@@ -0,0 +1,58 @@
+--- sslsplit-0.5.5/pxyconn.c~ 2019-08-30 13:09:00.000000000 +0200
++++ sslsplit-0.5.5/pxyconn.c 2021-10-03 21:51:40.305960755 +0200
+@@ -2188,7 +2188,7 @@
+ /* these can happen due to client cert auth,
+ * only log error if debugging is activated */
+ log_dbg_printf("Error from %s bufferevent: "
+- "%i:%s %lu:%i:%s:%i:%s:%i:%s\n",
++ "%i:%s %lu:%i:%s:%i:%s:%s\n",
+ (bev == ctx->src.bev) ? "src" : "dst",
+ errno,
+ errno ? strerror(errno) : "-",
+@@ -2199,24 +2199,22 @@
+ ERR_GET_LIB(sslerr),
+ sslerr ?
+ ERR_lib_error_string(sslerr) : "-",
+- ERR_GET_FUNC(sslerr),
+ sslerr ?
+ ERR_func_error_string(sslerr) : "-");
+ while ((sslerr = bufferevent_get_openssl_error(bev))) {
+ log_dbg_printf("Additional SSL error: "
+- "%lu:%i:%s:%i:%s:%i:%s\n",
++ "%lu:%i:%s:%i:%s:%s\n",
+ sslerr,
+ ERR_GET_REASON(sslerr),
+ ERR_reason_error_string(sslerr),
+ ERR_GET_LIB(sslerr),
+ ERR_lib_error_string(sslerr),
+- ERR_GET_FUNC(sslerr),
+ ERR_func_error_string(sslerr));
+ }
+ } else {
+ /* real errors */
+ log_err_printf("Error from %s bufferevent: "
+- "%i:%s %lu:%i:%s:%i:%s:%i:%s\n",
++ "%i:%s %lu:%i:%s:%i:%s:%s\n",
+ (bev == ctx->src.bev) ? "src" : "dst",
+ errno,
+ errno ? strerror(errno) : "-",
+@@ -2227,18 +2225,16 @@
+ ERR_GET_LIB(sslerr),
+ sslerr ?
+ ERR_lib_error_string(sslerr) : "-",
+- ERR_GET_FUNC(sslerr),
+ sslerr ?
+ ERR_func_error_string(sslerr) : "-");
+ while ((sslerr = bufferevent_get_openssl_error(bev))) {
+ log_err_printf("Additional SSL error: "
+- "%lu:%i:%s:%i:%s:%i:%s\n",
++ "%lu:%i:%s:%i:%s:%s\n",
+ sslerr,
+ ERR_GET_REASON(sslerr),
+ ERR_reason_error_string(sslerr),
+ ERR_GET_LIB(sslerr),
+ ERR_lib_error_string(sslerr),
+- ERR_GET_FUNC(sslerr),
+ ERR_func_error_string(sslerr));
+ }
+ }
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/sslsplit.git/commitdiff/8f59013489c0a5f15241cd6ea64ae747a83061f6
More information about the pld-cvs-commit
mailing list