Skip to content

Commit

Permalink
Merge branch 'openssl' into openbsd-build
Browse files Browse the repository at this point in the history
  • Loading branch information
vaygr committed Oct 22, 2016
2 parents b68381d + 25c1884 commit 87a85ff
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Crypto.h
Expand Up @@ -282,7 +282,7 @@ namespace crypto

// take care about openssl version
#include <openssl/opensslv.h>
#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; }
Expand Down
4 changes: 3 additions & 1 deletion I2PTunnel.cpp
Expand Up @@ -175,7 +175,9 @@ namespace client
Write (m_StreamBuffer, bytes_transferred); // postpone termination
else
Terminate ();
}
}
else
Terminate ();
}
else
Write (m_StreamBuffer, bytes_transferred);
Expand Down
8 changes: 4 additions & 4 deletions 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
Expand Down Expand Up @@ -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


Expand Down Expand Up @@ -102,8 +101,9 @@ getent passwd i2pd >/dev/null || \


%changelog
* Tue Oct 20 2016 Anatolii Vorona <vorona.tolik@gmail.com> - 2.10.0-2
* Tue Oct 20 2016 Anatolii Vorona <vorona.tolik@gmail.com> - 2.10.0-3
- add support C7
- move rpm-related files to contrib folder

* Sun Oct 16 2016 Oleg Girko <ol@infoserver.lv> - 2.10.0-1
- update to 2.10.0
Expand Down

0 comments on commit 87a85ff

Please sign in to comment.