boinc: fix builds with OpenSSL 3

This commit is contained in:
Yaksh Bariya 2022-02-19 18:40:59 +05:30 committed by YAKSH BARIYA
parent 0608868e17
commit 49106f00c5
2 changed files with 12 additions and 0 deletions

View File

@ -3,6 +3,7 @@ TERMUX_PKG_DESCRIPTION="Open-source software for volunteer computing"
TERMUX_PKG_LICENSE="GPL-3.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=7.18.1
TERMUX_PKG_REVISION=1
TERMUX_PKG_SRCURL=https://github.com/BOINC/boinc/archive/client_release/${TERMUX_PKG_VERSION:0:4}/${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=274388d9c49e488b6c8502ffc6eb605d5ceae391fb0c2fc56dbb0254d0ceb27e
TERMUX_PKG_DEPENDS="libandroid-shmem, libc++, libcurl, openssl, zlib"

View File

@ -0,0 +1,11 @@
--- ./lib/crypt.cpp.orig 2022-02-19 18:38:44.955894789 +0530
+++ ./lib/crypt.cpp 2022-02-19 18:39:20.225894775 +0530
@@ -672,7 +672,7 @@
}
#ifdef HAVE_OPAQUE_RSA_DSA_DH
RSA *rsa;
- rsa = EVP_PKEY_get0_RSA(pubKey);
+ rsa = (rsa_st*)EVP_PKEY_get0_RSA(pubKey);
if (!RSA_blinding_on(rsa, c)) {
#else
if (!RSA_blinding_on(pubKey->pkey.rsa, c)) {