FreeBSD Bugzilla – Attachment 190684 Details for
Bug 225929
[exp-run] Update QCA to 2.1.3
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed patch
qca-2.1.3-v2.diff (text/plain), 6.22 KB, created by
Raphael Kubo da Costa
on 2018-02-16 10:02:02 UTC
(
hide
)
Description:
Proposed patch
Filename:
MIME Type:
Creator:
Raphael Kubo da Costa
Created:
2018-02-16 10:02:02 UTC
Size:
6.22 KB
patch
obsolete
>commit dc82790f321c1984c1449e2b20c813a6b4a67ef9 >Author: Raphael Kubo da Costa <rakuco@FreeBSD.org> >Date: Thu Feb 15 18:19:13 2018 +0100 > > Update QCA to 2.1.3. > >diff --git a/devel/qca/Makefile b/devel/qca/Makefile >index c5beafb5a703..c528cff2a681 100644 >--- a/devel/qca/Makefile >+++ b/devel/qca/Makefile >@@ -2,8 +2,7 @@ > # $FreeBSD$ > > PORTNAME= qca >-PORTVERSION= 2.1.1 >-PORTREVISION= 1 >+PORTVERSION= 2.1.3 > CATEGORIES= devel > MASTER_SITES= KDE/stable/qca/${PORTVERSION}/src > >diff --git a/devel/qca/distinfo b/devel/qca/distinfo >index b218ee5a6b83..805f8eef5743 100644 >--- a/devel/qca/distinfo >+++ b/devel/qca/distinfo >@@ -1,2 +1,3 @@ >-SHA256 (qca-2.1.1.tar.xz) = 95de3e7910b5f9ec7084169989c9d98bfb527e6a4865fe17269c3b24308be983 >-SIZE (qca-2.1.1.tar.xz) = 688460 >+TIMESTAMP = 1518775098 >+SHA256 (qca-2.1.3.tar.xz) = 003fd86a32421057a03b18a8168db52e2940978f9db5ebbb6a08882f8ab1e353 >+SIZE (qca-2.1.3.tar.xz) = 686340 >diff --git a/devel/qca/files/patch-git_601fd3 b/devel/qca/files/patch-git_601fd3 >deleted file mode 100644 >index a4d53fbab9e1..000000000000 >--- a/devel/qca/files/patch-git_601fd3 >+++ /dev/null >@@ -1,39 +0,0 @@ >-From 601fd3a05141c614ae48a3ddac44194d669eaae1 Mon Sep 17 00:00:00 2001 >-From: Rolf Eike Beer <eb@emlix.com> >-Date: Mon, 27 Jun 2016 12:55:51 +0200 >-Subject: fix base64 decoding on ARM >- >-This code was broken on ARM and other architectures where "char" is unsigned by >-default. >- >-First, it breaks with newer compilers with errors like: >- >- .../src/qca_textfilter.cpp:314:2: error: narrowing conversion of '-1' from 'int' to 'char' inside { } [-Wnarrowing] >- >-Second, if the compiler would just allow this conversion then the unsigned char >-would hold 255, which would not be sign extended when cast to an int later, so >-all the checks "< 0" will never trigger, and so invalid input characters cannot >-be detected. >- >-REVIEW:128295 >-BUG:364495 >---- >- src/qca_textfilter.cpp | 2 +- >- 1 file changed, 1 insertion(+), 1 deletion(-) >- >-diff --git a/src/qca_textfilter.cpp b/src/qca_textfilter.cpp >-index 9889a24..3baf511 100644 >---- src/qca_textfilter.cpp >-+++ src/qca_textfilter.cpp >-@@ -293,7 +293,7 @@ static QByteArray b64decode(const QByteArray &s, bool *ok) >- // 64 specifies eof >- // everything else specifies data >- >-- static char tbl[] = >-+ static signed char tbl[] = >- { >- -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, >- -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, >--- >-cgit v0.11.2 >- >diff --git a/devel/qca/files/patch-plugins_qca-ossl_CMakeLists.txt b/devel/qca/files/patch-plugins_qca-ossl_CMakeLists.txt >deleted file mode 100644 >index 8e9ecf0c4f86..000000000000 >--- a/devel/qca/files/patch-plugins_qca-ossl_CMakeLists.txt >+++ /dev/null >@@ -1,28 +0,0 @@ >-qca-ossl: Fix build without support for SHA-0 >-https://quickgit.kde.org/?p=qca.git&a=commit&h=0dbed8eb38afd1561907a52283091c37e7b85156 >- >-LibreSSL >= 2.3.0 removed support for SHA-0, so there's no EVP_sha >-anymore. >-Wikipedia says about SHA-0: "160-bit hash function published in 1993 >-under the name SHA. It was withdrawn shortly after publication due to >-an undisclosed "significant flaw" and replaced by the slightly revised >-version SHA-1.' >- >-REVIEW: 125387 >- >---- plugins/qca-ossl/CMakeLists.txt.orig >-+++ plugins/qca-ossl/CMakeLists.txt >-@@ -24,6 +24,13 @@ >- else(HAVE_OPENSSL_AES_CTR) >- message(WARNING "qca-ossl will be compiled without AES CTR mode encryption support") >- endif(HAVE_OPENSSL_AES_CTR) >-+ >-+ check_function_exists(EVP_sha HAVE_OPENSSL_SHA0) >-+ if(HAVE_OPENSSL_SHA0) >-+ add_definitions(-DHAVE_OPENSSL_SHA0) >-+ else(HAVE_OPENSSL_SHA0) >-+ message(WARNING "qca-ossl will be compiled without SHA-0 digest algorithm support") >-+ endif(HAVE_OPENSSL_SHA0) >- >- set(QCA_OSSL_SOURCES qca-ossl.cpp) >- >diff --git a/devel/qca/files/patch-plugins_qca-ossl_qca-ossl.cpp b/devel/qca/files/patch-plugins_qca-ossl_qca-ossl.cpp >deleted file mode 100644 >index ee560f195ef5..000000000000 >--- a/devel/qca/files/patch-plugins_qca-ossl_qca-ossl.cpp >+++ /dev/null >@@ -1,73 +0,0 @@ >-qca-ossl: Fix build without SSLv3 >-http://quickgit.kde.org/?p=qca.git&a=commit&h=20a587d77636186edb044cd2b71d6d90fe98d232 >- >-This fixes building with LibreSSL >= 2.3.0 which has removed support >-for SSLv3 completely. As far as I know OpenSSL can be configured to >-build without it, so it might be helpful there as well. >- >-REVIEW: 125386 >- >-qca-ossl: Fix build without support for SHA-0 >-https://quickgit.kde.org/?p=qca.git&a=commit&h=0dbed8eb38afd1561907a52283091c37e7b85156 >- >-LibreSSL >= 2.3.0 removed support for SHA-0, so there's no EVP_sha >-anymore. >-Wikipedia says about SHA-0: "160-bit hash function published in 1993 >-under the name SHA. It was withdrawn shortly after publication due to >-an undisclosed "significant flaw" and replaced by the slightly revised >-version SHA-1.' >- >-REVIEW: 125387 >- >-Also includes: >-qca-ossl: Remove SHA0 from all_hash_types() when it is not available. >-https://git.reviewboard.kde.org/r/128700/ >- >---- plugins/qca-ossl/qca-ossl.cpp.orig 2015-10-02 09:39:21 UTC >-+++ plugins/qca-ossl/qca-ossl.cpp >-@@ -5403,9 +5403,11 @@ public: >- ctx = SSL_CTX_new(SSLv2_client_method()); >- break; >- #endif >-+#ifndef OPENSSL_NO_SSL3_METHOD >- case TLS::SSL_v3: >- ctx = SSL_CTX_new(SSLv3_client_method()); >- break; >-+#endif >- case TLS::TLS_v1: >- ctx = SSL_CTX_new(TLSv1_client_method()); >- break; >-@@ -5805,7 +5807,11 @@ public: >- { >- SessionInfo sessInfo; >- >-- sessInfo.isCompressed = (0 != SSL_SESSION_get_compress_id(ssl->session)); >-+#ifndef OPENSSL_NO_COMP >-+ sessInfo.isCompressed = (0 != ssl->session->compress_meth); >-+#else >-+ sessInfo.isCompressed = 0; >-+#endif >- >- if (ssl->version == TLS1_VERSION) >- sessInfo.version = TLS::TLS_v1; >-@@ -6880,7 +6886,9 @@ static QStringList all_hash_types() >- { >- QStringList list; >- list += "sha1"; >-+#ifdef HAVE_OPENSSL_SHA0 >- list += "sha0"; >-+#endif >- list += "ripemd160"; >- #ifdef HAVE_OPENSSL_MD2 >- list += "md2"; >-@@ -7133,8 +7141,10 @@ public: >- return new opensslInfoContext(this); >- else if ( type == "sha1" ) >- return new opensslHashContext( EVP_sha1(), this, type); >-+#ifdef HAVE_OPENSSL_SHA0 >- else if ( type == "sha0" ) >- return new opensslHashContext( EVP_sha(), this, type); >-+#endif >- else if ( type == "ripemd160" ) >- return new opensslHashContext( EVP_ripemd160(), this, type); >- #ifdef HAVE_OPENSSL_MD2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 225929
:
190660
| 190684