fix build with openssl 3.0

This commit is contained in:
eaglegai 2023-02-01 08:23:48 +00:00
parent 436f938119
commit 2b70d47736
2 changed files with 21 additions and 1 deletions

View 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);

View File

@ -3,7 +3,7 @@
Name: libserf
Version: 1.3.9
Release: 15
Release: 16
Summary: High-Performance Asynchronous HTTP Client Library
License: ASL 2.0
URL: https://serf.apache.org/
@ -13,6 +13,7 @@ BuildRequires: apr-devel, apr-util-devel, krb5-devel, openssl-devel
Patch0: %{name}-norpath.patch
Patch1: %{name}-python3.patch
Patch2: backport-%{name}-1.3.9-errgetfunc.patch
%description
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
%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
- Type:bugfix
- ID:NA