diff --git a/librelp-1.2.13-crypto-compliance.patch b/librelp-1.2.13-crypto-compliance.patch new file mode 100644 index 0000000000000000000000000000000000000000..d5238d002636679c61911b467024eccaee5a593c --- /dev/null +++ b/librelp-1.2.13-crypto-compliance.patch @@ -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) { diff --git a/librelp-1.2.16.tar.gz b/librelp-1.2.16.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..5518ee55eed4a6017cacd715f7c7e3f0206b7e3d Binary files /dev/null and b/librelp-1.2.16.tar.gz differ diff --git a/librelp.spec b/librelp.spec new file mode 100644 index 0000000000000000000000000000000000000000..bc654bdb0598af2708a4a866241062abf7147177 --- /dev/null +++ b/librelp.spec @@ -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 - 1.2.16-3 +- Pakcage init