mirror of
https://github.com/void-linux/void-packages.git
synced 2025-09-23 04:13:06 +02:00
qca-qt5: update to 2.3.1
This commit is contained in:
parent
21296b6e33
commit
22da40f8aa
2 changed files with 65 additions and 33 deletions
|
@ -1,33 +1,65 @@
|
||||||
--- plugins/qca-ossl/ossl110-compat.h 2019-04-24 14:58:14.000000000 +0200
|
--- plugins/qca-ossl/qca-ossl.cpp.bak 2020-08-13 20:47:26.316272036 +0200
|
||||||
+++ - 2019-11-19 04:28:55.887108555 +0100
|
+++ plugins/qca-ossl/qca-ossl.cpp 2020-08-13 21:14:09.838349311 +0200
|
||||||
@@ -25,7 +25,7 @@
|
@@ -41,7 +41,13 @@
|
||||||
#include <openssl/rsa.h>
|
#include <openssl/pkcs12.h>
|
||||||
#include <openssl/dsa.h>
|
#include <openssl/ssl.h>
|
||||||
|
|
||||||
-#if OPENSSL_VERSION_NUMBER < 0x10100000L
|
+#if !defined(LIBRESSL_VERSION_NUMBER)
|
||||||
+#if OPENSSL_VERSION_NUMBER < 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER)
|
#include <openssl/kdf.h>
|
||||||
#define RSA_F_RSA_METH_DUP 161
|
+#endif
|
||||||
|
+#ifdef LIBRESSL_VERSION_NUMBER
|
||||||
|
+#define SSL_CIPHER_standard_name SSL_CIPHER_get_name
|
||||||
|
+#define RSA_F_RSA_OSSL_PRIVATE_DECRYPT RSA_F_RSA_EAY_PRIVATE_DECRYPT
|
||||||
|
+#endif
|
||||||
|
|
||||||
static void DSA_SIG_get0(const DSA_SIG *sig, const BIGNUM **pr, const BIGNUM **ps)
|
using namespace QCA;
|
||||||
--- plugins/qca-ossl/qca-ossl.cpp 2019-04-24 14:58:14.000000000 +0200
|
|
||||||
+++ - 2019-11-19 04:29:29.745309997 +0100
|
@@ -1262,6 +1268,7 @@
|
||||||
@@ -57,7 +57,7 @@
|
protected:
|
||||||
((_STACK*) (1 ? p : (type*)0))
|
};
|
||||||
|
|
||||||
|
+#ifndef LIBRESSL_VERSION_NUMBER
|
||||||
|
class opensslHkdfContext : public HKDFContext
|
||||||
|
{
|
||||||
|
Q_OBJECT
|
||||||
|
@@ -1291,6 +1298,7 @@
|
||||||
|
return out;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
+#endif
|
||||||
|
|
||||||
|
class opensslHMACContext : public MACContext
|
||||||
|
{
|
||||||
|
@@ -4990,7 +4998,11 @@
|
||||||
|
case TLS::TLS_v1:
|
||||||
|
ctx = SSL_CTX_new(TLS_client_method());
|
||||||
|
SSL_CTX_set_min_proto_version(ctx, TLS1_VERSION);
|
||||||
|
+#ifdef OPENSSL_NO_TLS1_3
|
||||||
|
+ SSL_CTX_set_max_proto_version(ctx, TLS1_2_VERSION);
|
||||||
|
+#else
|
||||||
|
SSL_CTX_set_max_proto_version(ctx, TLS1_3_VERSION);
|
||||||
|
+#endif
|
||||||
|
break;
|
||||||
|
case TLS::DTLS_v1:
|
||||||
|
default:
|
||||||
|
@@ -6751,7 +6763,9 @@
|
||||||
#endif
|
#endif
|
||||||
|
list += QStringLiteral("pbkdf1(sha1)");
|
||||||
-#if OPENSSL_VERSION_NUMBER >= 0x10100000L
|
list += QStringLiteral("pbkdf2(sha1)");
|
||||||
+#if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER)
|
+#ifndef LIBRESSL_VERSION_NUMBER
|
||||||
#define OSSL_110
|
list += QStringLiteral("hkdf(sha256)");
|
||||||
|
+#endif
|
||||||
|
list += QStringLiteral("pkey");
|
||||||
|
list += QStringLiteral("dlgroup");
|
||||||
|
list += QStringLiteral("rsa");
|
||||||
|
@@ -6820,8 +6834,10 @@
|
||||||
#endif
|
#endif
|
||||||
|
else if ( type == QLatin1String("pbkdf2(sha1)") )
|
||||||
--- plugins/qca-ossl/qca-ossl.cpp 2019-11-19 04:29:30.804925040 +0100
|
return new opensslPbkdf2Context( this, type );
|
||||||
+++ - 2019-11-19 04:30:35.947007237 +0100
|
+#ifndef LIBRESSL_VERSION_NUMBER
|
||||||
@@ -3826,7 +3826,7 @@
|
else if ( type == QLatin1String("hkdf(sha256)") )
|
||||||
p.policies = get_cert_policies(ex);
|
return new opensslHkdfContext( this, type );
|
||||||
}
|
+#endif
|
||||||
|
else if ( type == QLatin1String("hmac(md5)") )
|
||||||
-#ifdef OSSL_110
|
return new opensslHMACContext( EVP_md5(), this, type );
|
||||||
+#if defined(OSSL_110) || defined(LIBRESSL_VERSION_NUMBER)
|
else if ( type == QLatin1String("hmac(sha1)") )
|
||||||
const
|
|
||||||
#endif
|
|
||||||
ASN1_BIT_STRING *signature;
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'qca-qt5'
|
# Template file for 'qca-qt5'
|
||||||
pkgname=qca-qt5
|
pkgname=qca-qt5
|
||||||
version=2.2.1
|
version=2.3.1
|
||||||
revision=2
|
revision=1
|
||||||
wrksrc="${pkgname%-*}-${version}"
|
wrksrc="${pkgname%-*}-${version}"
|
||||||
build_style=cmake
|
build_style=cmake
|
||||||
configure_args="-DBUILD_TESTS=0 -DQCA_FEATURE_INSTALL_DIR=/usr/share/qca-qt5/mkspecs
|
configure_args="-DBUILD_TESTS=0 -DQCA_FEATURE_INSTALL_DIR=/usr/share/qca-qt5/mkspecs
|
||||||
|
@ -10,11 +10,11 @@ hostmakedepends="pkg-config ca-certificates"
|
||||||
makedepends="nss-devel libgcrypt-devel qt5-devel ca-certificates libressl-devel"
|
makedepends="nss-devel libgcrypt-devel qt5-devel ca-certificates libressl-devel"
|
||||||
depends="ca-certificates"
|
depends="ca-certificates"
|
||||||
short_desc="Qt5 Cryptographic Architecture"
|
short_desc="Qt5 Cryptographic Architecture"
|
||||||
maintainer="Duncaen <duncaen@voidlinux.org>"
|
maintainer="John <me@johnnynator.dev>"
|
||||||
license="LGPL-2.1-or-later"
|
license="LGPL-2.1-or-later"
|
||||||
homepage="https://userbase.kde.org/QCA"
|
homepage="https://userbase.kde.org/QCA"
|
||||||
distfiles="${KDE_SITE}/qca/${version}/qca-${version}.tar.xz"
|
distfiles="${KDE_SITE}/qca/${version}/qca-${version}.tar.xz"
|
||||||
checksum=d716d2d8e3ed8d95bbdb061f03081d7d032206f746a30a4d29d72196f50e7b02
|
checksum=c13851109abefc4623370989fae3a745bf6b1acb3c2a13a8958539823e974e4b
|
||||||
|
|
||||||
if [ "$CROSS_BUILD" ]; then
|
if [ "$CROSS_BUILD" ]; then
|
||||||
hostmakedepends+=" qt5-host-tools qt5-devel"
|
hostmakedepends+=" qt5-host-tools qt5-devel"
|
||||||
|
|
Loading…
Add table
Reference in a new issue