1 |
commit: 656e54a46c18a478a03b9ff1d860fa03ef1d240e |
2 |
Author: Stefan Strogin <stefan.strogin <AT> gmail <DOT> com> |
3 |
AuthorDate: Thu Apr 11 18:42:04 2019 +0000 |
4 |
Commit: Stefan Strogin <stefan.strogin <AT> gmail <DOT> com> |
5 |
CommitDate: Thu Apr 11 18:42:29 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/libressl.git/commit/?id=656e54a4 |
7 |
|
8 |
app-crypt/qca: bump version to 2.2.0; update patch |
9 |
|
10 |
Package-Manager: Portage-2.3.62, Repoman-2.3.12 |
11 |
Signed-off-by: Stefan Strogin <stefan.strogin <AT> gmail.com> |
12 |
|
13 |
app-crypt/qca/Manifest | 2 +- |
14 |
...606-libressl.patch => qca-2.2.0-libressl.patch} | 52 ++++++++++++++++++---- |
15 |
...a-2.2.0_pre20180606.ebuild => qca-2.2.0.ebuild} | 2 +- |
16 |
3 files changed, 45 insertions(+), 11 deletions(-) |
17 |
|
18 |
diff --git a/app-crypt/qca/Manifest b/app-crypt/qca/Manifest |
19 |
index f525059..421d83e 100644 |
20 |
--- a/app-crypt/qca/Manifest |
21 |
+++ b/app-crypt/qca/Manifest |
22 |
@@ -1 +1 @@ |
23 |
-DIST qca-2.2.0_pre20180606.tar.xz 700756 BLAKE2B 0204854a664f211e9289cd4609938fd21e62de5bec5d7f5a99843a12483c960b6f8cc7392dc84bcf0676220411106bf7f23c5059d4f7031791fe9a3259d21d2c SHA512 78f9f8ebc726e95768034c580d5ac30933f7c06e026b7daad04f11477dc623e4267895e409f7830c5149e620876dcc524278ef569956d03820b0864d629c4df8 |
24 |
+DIST qca-2.2.0.tar.xz 691264 BLAKE2B 3b9196372c8a8f2e50a86a8a581a549d52a324cbfa919945683222d605747f7127af469a1de0310e24e823243ab4cd884a763b7baac94048e739f49d2a31dcbf SHA512 2a3f73bbd73ae8f74b2b4ec143bc010b7efaba267fc3349fc681623f29a288f69e5c457597f4964f88172a98e0a7eba6d2555675704d5d7026df794b8f772e69 |
25 |
|
26 |
diff --git a/app-crypt/qca/files/qca-2.2.0_pre20180606-libressl.patch b/app-crypt/qca/files/qca-2.2.0-libressl.patch |
27 |
similarity index 66% |
28 |
rename from app-crypt/qca/files/qca-2.2.0_pre20180606-libressl.patch |
29 |
rename to app-crypt/qca/files/qca-2.2.0-libressl.patch |
30 |
index 2f6d461..f4c2f01 100644 |
31 |
--- a/app-crypt/qca/files/qca-2.2.0_pre20180606-libressl.patch |
32 |
+++ b/app-crypt/qca/files/qca-2.2.0-libressl.patch |
33 |
@@ -1,23 +1,24 @@ |
34 |
-From 32e4f55732e42103cd7ba5e84ddd086bf8103948 Mon Sep 17 00:00:00 2001 |
35 |
+From bfc0dd038fea35f004867867935eb695b958f849 Mon Sep 17 00:00:00 2001 |
36 |
From: Stefan Strogin <stefan.strogin@×××××.com> |
37 |
-Date: Fri, 5 Apr 2019 09:57:14 +0300 |
38 |
+Date: Fri, 5 Apr 2019 09:17:23 +0300 |
39 |
Subject: [PATCH] Fix build with LibreSSL |
40 |
|
41 |
Provide RSA_meth_set_{sign,verify} for LibreSSL. |
42 |
Do not redefine M_ASN1_IA5STRING_new and RSA_F_RSA_EAY_PRIVATE_DECRYPT. |
43 |
+Disable HKDF. |
44 |
|
45 |
Upstream-Status: Submitted [https://phabricator.kde.org/D20259] |
46 |
Signed-off-by: Stefan Strogin <stefan.strogin@×××××.com> |
47 |
--- |
48 |
plugins/qca-ossl/ossl110-compat.h | 34 ++++++++++++++++--------------- |
49 |
- plugins/qca-ossl/qca-ossl.cpp | 2 +- |
50 |
- 2 files changed, 19 insertions(+), 17 deletions(-) |
51 |
+ plugins/qca-ossl/qca-ossl.cpp | 10 ++++----- |
52 |
+ 2 files changed, 23 insertions(+), 21 deletions(-) |
53 |
|
54 |
diff --git a/plugins/qca-ossl/ossl110-compat.h b/plugins/qca-ossl/ossl110-compat.h |
55 |
-index ec15475..2d47835 100644 |
56 |
+index b320707..d093e50 100644 |
57 |
--- a/plugins/qca-ossl/ossl110-compat.h |
58 |
+++ b/plugins/qca-ossl/ossl110-compat.h |
59 |
-@@ -213,22 +213,6 @@ static int RSA_meth_set_priv_dec(RSA_METHOD *rsa, int (*priv_dec) (int flen, con |
60 |
+@@ -205,22 +205,6 @@ static int RSA_meth_set_priv_dec(RSA_METHOD *rsa, int (*priv_dec) (int flen, con |
61 |
return 1; |
62 |
} |
63 |
|
64 |
@@ -40,7 +41,7 @@ index ec15475..2d47835 100644 |
65 |
static int RSA_meth_set_finish(RSA_METHOD *meth, int (*finish) (RSA *rsa)) |
66 |
{ |
67 |
if (!meth) return 0; |
68 |
-@@ -280,4 +264,22 @@ static void HMAC_CTX_free(HMAC_CTX *ctx) |
69 |
+@@ -272,4 +256,22 @@ static void HMAC_CTX_free(HMAC_CTX *ctx) |
70 |
|
71 |
#endif // OPENSSL_VERSION_NUMBER < 0x10100000L |
72 |
|
73 |
@@ -64,10 +65,10 @@ index ec15475..2d47835 100644 |
74 |
+ |
75 |
#endif // OSSL110COMPAT_H |
76 |
diff --git a/plugins/qca-ossl/qca-ossl.cpp b/plugins/qca-ossl/qca-ossl.cpp |
77 |
-index 39dbc2b..1216bef 100644 |
78 |
+index 11ecdc9..75c48fc 100644 |
79 |
--- a/plugins/qca-ossl/qca-ossl.cpp |
80 |
+++ b/plugins/qca-ossl/qca-ossl.cpp |
81 |
-@@ -61,7 +61,7 @@ |
82 |
+@@ -62,12 +62,12 @@ |
83 |
#endif |
84 |
|
85 |
// OpenSSL 1.1.0 compatibility macros |
86 |
@@ -76,6 +77,39 @@ index 39dbc2b..1216bef 100644 |
87 |
#define M_ASN1_IA5STRING_new() ASN1_IA5STRING_new() |
88 |
#define RSA_F_RSA_EAY_PRIVATE_DECRYPT RSA_F_RSA_OSSL_PRIVATE_DECRYPT |
89 |
#endif |
90 |
+ |
91 |
+-#ifdef OSSL_110 |
92 |
++#if defined(OSSL_110) && !defined(LIBRESSL_VERSION_NUMBER) |
93 |
+ #include <openssl/kdf.h> |
94 |
+ #endif |
95 |
+ |
96 |
+@@ -1280,7 +1280,7 @@ public: |
97 |
+ protected: |
98 |
+ }; |
99 |
+ |
100 |
+-#ifdef OSSL_110 |
101 |
++#if defined(OSSL_110) && !defined(LIBRESSL_VERSION_NUMBER) |
102 |
+ class opensslHkdfContext : public HKDFContext |
103 |
+ { |
104 |
+ public: |
105 |
+@@ -7416,7 +7416,7 @@ public: |
106 |
+ #endif |
107 |
+ list += "pbkdf1(sha1)"; |
108 |
+ list += "pbkdf2(sha1)"; |
109 |
+-#ifdef OSSL_110 |
110 |
++#if defined(OSSL_110) && !defined(LIBRESSL_VERSION_NUMBER) |
111 |
+ list += "hkdf(sha256)"; |
112 |
+ #endif |
113 |
+ list += "pkey"; |
114 |
+@@ -7489,7 +7489,7 @@ public: |
115 |
+ #endif |
116 |
+ else if ( type == "pbkdf2(sha1)" ) |
117 |
+ return new opensslPbkdf2Context( this, type ); |
118 |
+-#ifdef OSSL_110 |
119 |
++#if defined(OSSL_110) && !defined(LIBRESSL_VERSION_NUMBER) |
120 |
+ else if ( type == "hkdf(sha256)" ) |
121 |
+ return new opensslHkdfContext( this, type ); |
122 |
+ #endif |
123 |
-- |
124 |
2.21.0 |
125 |
|
126 |
|
127 |
diff --git a/app-crypt/qca/qca-2.2.0_pre20180606.ebuild b/app-crypt/qca/qca-2.2.0.ebuild |
128 |
similarity index 96% |
129 |
rename from app-crypt/qca/qca-2.2.0_pre20180606.ebuild |
130 |
rename to app-crypt/qca/qca-2.2.0.ebuild |
131 |
index 9aaf988..bdbfdd2 100644 |
132 |
--- a/app-crypt/qca/qca-2.2.0_pre20180606.ebuild |
133 |
+++ b/app-crypt/qca/qca-2.2.0.ebuild |
134 |
@@ -7,7 +7,7 @@ inherit cmake-utils qmake-utils |
135 |
|
136 |
DESCRIPTION="Qt Cryptographic Architecture (QCA)" |
137 |
HOMEPAGE="https://userbase.kde.org/QCA" |
138 |
-SRC_URI="https://dev.gentoo.org/~asturm/distfiles/${P}.tar.xz" |
139 |
+SRC_URI="mirror://kde/stable/${PN}/${PV}/${P}.tar.xz" |
140 |
|
141 |
LICENSE="LGPL-2.1" |
142 |
SLOT="2" |