commit
036a2758d0
28
librelp-1.2.13-crypto-compliance.patch
Normal file
28
librelp-1.2.13-crypto-compliance.patch
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
diff -up ./src/tcp.c.fix ./src/tcp.c
|
||||||
|
--- ./src/tcp.c.fix 2018-03-26 13:44:07.627189911 +0200
|
||||||
|
+++ ./src/tcp.c 2018-03-26 13:44:51.051915920 +0200
|
||||||
|
@@ -556,23 +556,8 @@ static relpRetVal
|
||||||
|
relpTcpTLSSetPrio(relpTcp_t *const pThis)
|
||||||
|
{
|
||||||
|
int r;
|
||||||
|
- char pristringBuf[4096];
|
||||||
|
- char *pristring;
|
||||||
|
ENTER_RELPFUNC;
|
||||||
|
- /* Compute priority string (in simple cases where the user does not care...) */
|
||||||
|
- if(pThis->pristring == NULL) {
|
||||||
|
- if(pThis->bEnableTLSZip) {
|
||||||
|
- strncpy(pristringBuf, "NORMAL:+ANON-DH:+COMP-ALL", sizeof(pristringBuf));
|
||||||
|
- } else {
|
||||||
|
- strncpy(pristringBuf, "NORMAL:+ANON-DH:+COMP-NULL", sizeof(pristringBuf));
|
||||||
|
- }
|
||||||
|
- pristringBuf[sizeof(pristringBuf)-1] = '\0';
|
||||||
|
- pristring = pristringBuf;
|
||||||
|
- } else {
|
||||||
|
- pristring = pThis->pristring;
|
||||||
|
- }
|
||||||
|
-
|
||||||
|
- r = gnutls_priority_set_direct(pThis->session, pristring, NULL);
|
||||||
|
+ r = gnutls_set_default_priority(pThis->session);
|
||||||
|
if(r == GNUTLS_E_INVALID_REQUEST) {
|
||||||
|
ABORT_FINALIZE(RELP_RET_INVLD_TLS_PRIO);
|
||||||
|
} else if(r != GNUTLS_E_SUCCESS) {
|
||||||
BIN
librelp-1.2.16.tar.gz
Normal file
BIN
librelp-1.2.16.tar.gz
Normal file
Binary file not shown.
55
librelp.spec
Normal file
55
librelp.spec
Normal file
@ -0,0 +1,55 @@
|
|||||||
|
Name: librelp
|
||||||
|
Version: 1.2.16
|
||||||
|
Release: 3
|
||||||
|
Summary: An Easy To Use Library For The RELP Protocol
|
||||||
|
License: GPLv3+
|
||||||
|
URL: http://www.rsyslog.com/
|
||||||
|
Source0: http://download.rsyslog.com/librelp/%{name}-%{version}.tar.gz
|
||||||
|
Patch0001: librelp-1.2.13-crypto-compliance.patch
|
||||||
|
Requires(post): glibc
|
||||||
|
Requires(postun): glibc
|
||||||
|
BuildRequires: gnutls-devel >= 1.4.0
|
||||||
|
|
||||||
|
%description
|
||||||
|
Librelp is a convenient RELP protocol library. RELP (for Reliable Event
|
||||||
|
Logging Protocol) is a general-purpose and extensible logging protocol.
|
||||||
|
|
||||||
|
%package devel
|
||||||
|
Summary: Development files for librep
|
||||||
|
Requires: %{name} = %{version}-%{release} pkgconfig
|
||||||
|
BuildRequires: autoconf automake libtool
|
||||||
|
|
||||||
|
%description devel
|
||||||
|
The librelp-devel package includes header files and libraries necessary
|
||||||
|
for the librelp library.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -n %{name}-%{version} -p1
|
||||||
|
|
||||||
|
%build
|
||||||
|
autoreconf -ivf
|
||||||
|
%configure --disable-static
|
||||||
|
%make_build
|
||||||
|
|
||||||
|
%install
|
||||||
|
%make_install
|
||||||
|
%delete_la
|
||||||
|
|
||||||
|
%post
|
||||||
|
/sbin/ldconfig
|
||||||
|
|
||||||
|
%postun
|
||||||
|
/sbin/ldconfig
|
||||||
|
|
||||||
|
%files
|
||||||
|
%doc AUTHORS COPYING NEWS README doc/*html
|
||||||
|
%{_libdir}/librelp.so.*
|
||||||
|
|
||||||
|
%files devel
|
||||||
|
%{_includedir}/*
|
||||||
|
%{_libdir}/librelp.so
|
||||||
|
%{_libdir}/pkgconfig/relp.pc
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Wed Nov 27 2019 gulining<gulining1@huawei.com> - 1.2.16-3
|
||||||
|
- Pakcage init
|
||||||
Loading…
x
Reference in New Issue
Block a user