fix build with openssl 3.0
This commit is contained in:
parent
436f938119
commit
2b70d47736
13
backport-libserf-1.3.9-errgetfunc.patch
Normal file
13
backport-libserf-1.3.9-errgetfunc.patch
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
--- serf-1.3.9/buckets/ssl_buckets.c.errgetfunc
|
||||||
|
+++ serf-1.3.9/buckets/ssl_buckets.c
|
||||||
|
@@ -1204,6 +1204,10 @@
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
+#ifndef ERR_GET_FUNC
|
||||||
|
+#define ERR_GET_FUNC(ec) (0)
|
||||||
|
+#endif
|
||||||
|
+
|
||||||
|
static int ssl_need_client_cert(SSL *ssl, X509 **cert, EVP_PKEY **pkey)
|
||||||
|
{
|
||||||
|
serf_ssl_context_t *ctx = SSL_get_app_data(ssl);
|
||||||
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
Name: libserf
|
Name: libserf
|
||||||
Version: 1.3.9
|
Version: 1.3.9
|
||||||
Release: 15
|
Release: 16
|
||||||
Summary: High-Performance Asynchronous HTTP Client Library
|
Summary: High-Performance Asynchronous HTTP Client Library
|
||||||
License: ASL 2.0
|
License: ASL 2.0
|
||||||
URL: https://serf.apache.org/
|
URL: https://serf.apache.org/
|
||||||
@ -13,6 +13,7 @@ BuildRequires: apr-devel, apr-util-devel, krb5-devel, openssl-devel
|
|||||||
|
|
||||||
Patch0: %{name}-norpath.patch
|
Patch0: %{name}-norpath.patch
|
||||||
Patch1: %{name}-python3.patch
|
Patch1: %{name}-python3.patch
|
||||||
|
Patch2: backport-%{name}-1.3.9-errgetfunc.patch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
The serf library is a C-based HTTP client library built upon the Apache
|
The serf library is a C-based HTTP client library built upon the Apache
|
||||||
@ -69,6 +70,12 @@ export LD_LIBRARY_PATH=%{buildroot}%{_libdir}
|
|||||||
%doc README CHANGES design-guide.txt
|
%doc README CHANGES design-guide.txt
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Feb 01 2023 gaihuiying <eaglegai@163.com> - 1.3.9-16
|
||||||
|
- Type:bugfix
|
||||||
|
- ID:NA
|
||||||
|
- SUG:NA
|
||||||
|
- DESC:fix build with openssl 3.0
|
||||||
|
|
||||||
* Sat Oct 22 2022 gaihuiying <eaglegai@163.com> - 1.3.9-15
|
* Sat Oct 22 2022 gaihuiying <eaglegai@163.com> - 1.3.9-15
|
||||||
- Type:bugfix
|
- Type:bugfix
|
||||||
- ID:NA
|
- ID:NA
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user