diff --git a/Crypto.h b/Crypto.h index 19ea0a13..4408a193 100644 --- a/Crypto.h +++ b/Crypto.h @@ -282,7 +282,7 @@ namespace crypto // take care about openssl version #include -#if (OPENSSL_VERSION_NUMBER < 0x010100000) // 1.1.0 +#if (OPENSSL_VERSION_NUMBER < 0x010100000) || defined(LIBRESSL_VERSION_NUMBER) // 1.1.0 or LibreSSL // define getters and setters introduced in 1.1.0 inline int DSA_set0_pqg(DSA *d, BIGNUM *p, BIGNUM *q, BIGNUM *g) { d->p = p; d->q = q; d->g = g; return 1; } inline int DSA_set0_key(DSA *d, BIGNUM *pub_key, BIGNUM *priv_key) { d->pub_key = pub_key; d->priv_key = priv_key; return 1; } diff --git a/I2PTunnel.cpp b/I2PTunnel.cpp index be48b83a..0ce9a7e3 100644 --- a/I2PTunnel.cpp +++ b/I2PTunnel.cpp @@ -175,7 +175,9 @@ namespace client Write (m_StreamBuffer, bytes_transferred); // postpone termination else Terminate (); - } + } + else + Terminate (); } else Write (m_StreamBuffer, bytes_transferred); diff --git a/contrib/rpm/i2pd.spec b/contrib/rpm/i2pd.spec index 8b66d911..bb58d28d 100644 --- a/contrib/rpm/i2pd.spec +++ b/contrib/rpm/i2pd.spec @@ -1,12 +1,11 @@ Name: i2pd Version: 2.10.0 -Release: 2%{?dist} +Release: 3%{?dist} Summary: I2P router written in C++ License: BSD URL: https://github.com/PurpleI2P/i2pd Source0: https://github.com/PurpleI2P/i2pd/archive/%{version}/%name-%version.tar.gz -Source1: i2pd.service %if 0%{?rhel} == 7 BuildRequires: cmake3 @@ -68,7 +67,7 @@ make %{?_smp_mflags} cd build chrpath -d i2pd install -D -m 755 i2pd %{buildroot}%{_bindir}/i2pd -install -D -m 644 %{SOURCE1} %{buildroot}/%{_unitdir}/i2pd.service +install -D -m 644 %{_builddir}/%{name}-%{version}/contrib/rpm/i2pd.service %{buildroot}/%{_unitdir}/i2pd.service install -d -m 700 %{buildroot}/%{_sharedstatedir}/i2pd @@ -102,8 +101,9 @@ getent passwd i2pd >/dev/null || \ %changelog -* Tue Oct 20 2016 Anatolii Vorona - 2.10.0-2 +* Tue Oct 20 2016 Anatolii Vorona - 2.10.0-3 - add support C7 +- move rpm-related files to contrib folder * Sun Oct 16 2016 Oleg Girko - 2.10.0-1 - update to 2.10.0