summaryrefslogtreecommitdiffstats
path: root/meta/recipes-qt/qt4
diff options
context:
space:
mode:
authorMartin Jansa <Martin.Jansa@gmail.com>2012-09-26 21:03:25 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-10-02 17:19:27 +0100
commit425df23c02b7dad3c843ec9959a51337ab450cd1 (patch)
tree9fdfe77dec99904c32746953f176969f9199c263 /meta/recipes-qt/qt4
parentb0862a5cf2ba2878e7fefa5193acae3a82ea46fd (diff)
downloadpoky-425df23c02b7dad3c843ec9959a51337ab450cd1.tar.gz
qt4: drop patches not used in any recipe
(From OE-Core rev: 5f0684c1d23a3520095a4d450a0c1fa95fa1c7b2) Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-qt/qt4')
-rw-r--r--meta/recipes-qt/qt4/qt4-4.8.1/0008-qt-lib-infix.patch41
-rw-r--r--meta/recipes-qt/qt4/qt4-4.8.1/blacklist-diginotar-certs.diff95
-rw-r--r--meta/recipes-qt/qt4/qt4-4.8.1/compile.test-lflags.patch17
-rw-r--r--meta/recipes-qt/qt4/qt4-4.8.1/fix-config-tests.patch38
4 files changed, 0 insertions, 191 deletions
diff --git a/meta/recipes-qt/qt4/qt4-4.8.1/0008-qt-lib-infix.patch b/meta/recipes-qt/qt4/qt4-4.8.1/0008-qt-lib-infix.patch
deleted file mode 100644
index d308a15cf8..0000000000
--- a/meta/recipes-qt/qt4/qt4-4.8.1/0008-qt-lib-infix.patch
+++ /dev/null
@@ -1,41 +0,0 @@
1Add lib infix for QtUiTools to distinguish different Qt edition: e.g. "E" for embedded, "" for X11
2
3Patch has been accepted upstream and should be included in the next major version (4.8.0), see:
4http://bugreports.qt.nokia.com/browse/QTBUG-7169
5
6Original Author: Jeremy Lainé <jeremy.laine@m4x.org>
7Ported from OE by: Yu Ke <ke.yu@intel.com>
8Upstream-Status: Accepted
9
10--- /tmp/uitools.prf 2009-12-01 18:38:22.000000000 +0100
11+++ qt-everywhere-opensource-src-4.6.0/mkspecs/features/uitools.prf 2009-12-01 18:58:16.000000000 +0100
12@@ -3,11 +3,11 @@
13
14 # Include the correct version of the UiLoader library
15 symbian: QTUITOOLS_LINKAGE = -lQtUiTools.lib
16-else: QTUITOOLS_LINKAGE = -lQtUiTools
17+else: QTUITOOLS_LINKAGE = -lQtUiTools$${QT_LIBINFIX}
18
19 CONFIG(debug, debug|release) {
20- mac: QTUITOOLS_LINKAGE = -lQtUiTools_debug
21- win32: QTUITOOLS_LINKAGE = -lQtUiToolsd
22+ mac: QTUITOOLS_LINKAGE = -lQtUiTools$${QT_LIBINFIX}_debug
23+ win32: QTUITOOLS_LINKAGE = -lQtUiTools$${QT_LIBINFIX}d
24 }
25 LIBS += $$QTUITOOLS_LINKAGE
26
27--- /tmp/uitools.pro 2009-12-01 18:40:28.000000000 +0100
28+++ qt-everywhere-opensource-src-4.6.0/tools/designer/src/uitools/uitools.pro 2009-12-01 18:59:18.000000000 +0100
29@@ -1,5 +1,5 @@
30 TEMPLATE = lib
31-TARGET = $$qtLibraryTarget(QtUiTools)
32+TARGET = QtUiTools
33 QT += xml
34 CONFIG += qt staticlib
35 DESTDIR = ../../../../lib
36@@ -43,3 +43,5 @@
37 QMAKE_PKGCONFIG_DESTDIR = pkgconfig
38 QMAKE_PKGCONFIG_REQUIRES += QtXml
39 }
40+
41+TARGET = $$qtLibraryTarget($$TARGET$$QT_LIBINFIX) #do this towards the end
diff --git a/meta/recipes-qt/qt4/qt4-4.8.1/blacklist-diginotar-certs.diff b/meta/recipes-qt/qt4/qt4-4.8.1/blacklist-diginotar-certs.diff
deleted file mode 100644
index 4d88ae2e60..0000000000
--- a/meta/recipes-qt/qt4/qt4-4.8.1/blacklist-diginotar-certs.diff
+++ /dev/null
@@ -1,95 +0,0 @@
1http://labs.qt.nokia.com/2011/09/02/what-the-diginotar-security-breach-means-for-qt-users/
2http://labs.qt.nokia.com/2011/09/07/what-the-diginotar-security-breach-means-for-qt-users-continued/
3
4Original Author:Nokia
5Upstream-Status: Integrated in upcoming versions
6
7diff --git a/src/network/ssl/qsslcertificate.cpp b/src/network/ssl/qsslcertificate.cpp
8index 328c5c2..1ae98f4 100644
9--- a/src/network/ssl/qsslcertificate.cpp
10+++ b/src/network/ssl/qsslcertificate.cpp
11@@ -803,22 +803,47 @@ QList<QSslCertificate> QSslCertificatePrivate::certificatesFromDer(const QByteAr
12 // These certificates are known to be fraudulent and were created during the comodo
13 // compromise. See http://www.comodo.com/Comodo-Fraud-Incident-2011-03-23.html
14 static const char *certificate_blacklist[] = {
15- "04:7e:cb:e9:fc:a5:5f:7b:d0:9e:ae:36:e1:0c:ae:1e",
16- "f5:c8:6a:f3:61:62:f1:3a:64:f5:4f:6d:c9:58:7c:06",
17- "d7:55:8f:da:f5:f1:10:5b:b2:13:28:2b:70:77:29:a3",
18- "39:2a:43:4f:0e:07:df:1f:8a:a3:05:de:34:e0:c2:29",
19- "3e:75:ce:d4:6b:69:30:21:21:88:30:ae:86:a8:2a:71",
20- "e9:02:8b:95:78:e4:15:dc:1a:71:0a:2b:88:15:44:47",
21- "92:39:d5:34:8f:40:d1:69:5a:74:54:70:e1:f2:3f:43",
22- "b0:b7:13:3e:d0:96:f9:b5:6f:ae:91:c8:74:bd:3a:c0",
23- "d8:f3:5f:4e:b7:87:2b:2d:ab:06:92:e3:15:38:2f:b0",
24+ "04:7e:cb:e9:fc:a5:5f:7b:d0:9e:ae:36:e1:0c:ae:1e", "mail.google.com", // Comodo
25+ "f5:c8:6a:f3:61:62:f1:3a:64:f5:4f:6d:c9:58:7c:06", "www.google.com", // Comodo
26+ "d7:55:8f:da:f5:f1:10:5b:b2:13:28:2b:70:77:29:a3", "login.yahoo.com", // Comodo
27+ "39:2a:43:4f:0e:07:df:1f:8a:a3:05:de:34:e0:c2:29", "login.yahoo.com", // Comodo
28+ "3e:75:ce:d4:6b:69:30:21:21:88:30:ae:86:a8:2a:71", "login.yahoo.com", // Comodo
29+ "e9:02:8b:95:78:e4:15:dc:1a:71:0a:2b:88:15:44:47", "login.skype.com", // Comodo
30+ "92:39:d5:34:8f:40:d1:69:5a:74:54:70:e1:f2:3f:43", "addons.mozilla.org", // Comodo
31+ "b0:b7:13:3e:d0:96:f9:b5:6f:ae:91:c8:74:bd:3a:c0", "login.live.com", // Comodo
32+ "d8:f3:5f:4e:b7:87:2b:2d:ab:06:92:e3:15:38:2f:b0", "global trustee", // Comodo
33+
34+ "05:e2:e6:a4:cd:09:ea:54:d6:65:b0:75:fe:22:a2:56", "*.google.com", // leaf certificate issued by DigiNotar
35+ "0c:76:da:9c:91:0c:4e:2c:9e:fe:15:d0:58:93:3c:4c", "DigiNotar Root CA", // DigiNotar root
36+ "f1:4a:13:f4:87:2b:56:dc:39:df:84:ca:7a:a1:06:49", "DigiNotar Services CA", // DigiNotar intermediate signed by DigiNotar Root
37+ "36:16:71:55:43:42:1b:9d:e6:cb:a3:64:41:df:24:38", "DigiNotar Services 1024 CA", // DigiNotar intermediate signed by DigiNotar Root
38+ "0a:82:bd:1e:14:4e:88:14:d7:5b:1a:55:27:be:bf:3e", "DigiNotar Root CA G2", // other DigiNotar Root CA
39+ "a4:b6:ce:e3:2e:d3:35:46:26:3c:b3:55:3a:a8:92:21", "CertiID Enterprise Certificate Authority", // DigiNotar intermediate signed by "DigiNotar Root CA G2"
40+ "5b:d5:60:9c:64:17:68:cf:21:0e:35:fd:fb:05:ad:41", "DigiNotar Qualified CA", // DigiNotar intermediate signed by DigiNotar Root
41+
42+ "1184640176", "DigiNotar Services 1024 CA", // DigiNotar intermediate cross-signed by Entrust
43+ "120000525", "DigiNotar Cyber CA", // DigiNotar intermediate cross-signed by CyberTrust
44+ "120000505", "DigiNotar Cyber CA", // DigiNotar intermediate cross-signed by CyberTrust
45+ "120000515", "DigiNotar Cyber CA", // DigiNotar intermediate cross-signed by CyberTrust
46+ "20015536", "DigiNotar PKIoverheid CA Overheid en Bedrijven", // DigiNotar intermediate cross-signed by the Dutch government
47+ "20001983", "DigiNotar PKIoverheid CA Organisatie - G2", // DigiNotar intermediate cross-signed by the Dutch government
48+ "d6:d0:29:77:f1:49:fd:1a:83:f2:b9:ea:94:8c:5c:b4", "DigiNotar Extended Validation CA", // DigiNotar intermediate signed by DigiNotar EV Root
49+ "1e:7d:7a:53:3d:45:30:41:96:40:0f:71:48:1f:45:04", "DigiNotar Public CA 2025", // DigiNotar intermediate
50+// "(has not been seen in the wild so far)", "DigiNotar Public CA - G2", // DigiNotar intermediate
51+// "(has not been seen in the wild so far)", "Koninklijke Notariele Beroepsorganisatie CA", // compromised during DigiNotar breach
52+// "(has not been seen in the wild so far)", "Stichting TTP Infos CA," // compromised during DigiNotar breach
53+ "1184640175", "DigiNotar Root CA", // DigiNotar intermediate cross-signed by Entrust
54+ "1184644297", "DigiNotar Root CA", // DigiNotar intermediate cross-signed by Entrust
55 0
56 };
57
58 bool QSslCertificatePrivate::isBlacklisted(const QSslCertificate &certificate)
59 {
60 for (int a = 0; certificate_blacklist[a] != 0; a++) {
61- if (certificate.serialNumber() == certificate_blacklist[a])
62+ QString blacklistedCommonName = QString::fromUtf8(certificate_blacklist[(a+1)]);
63+ if (certificate.serialNumber() == certificate_blacklist[a++] &&
64+ (certificate.subjectInfo(QSslCertificate::CommonName) == blacklistedCommonName ||
65+ certificate.issuerInfo(QSslCertificate::CommonName) == blacklistedCommonName))
66 return true;
67 }
68 return false;
69diff --git a/src/network/ssl/qsslsocket_openssl.cpp b/src/network/ssl/qsslsocket_openssl.cpp
70index 141d80a..b8e6c4c 100644
71--- a/src/network/ssl/qsslsocket_openssl.cpp
72+++ b/src/network/ssl/qsslsocket_openssl.cpp
73@@ -1193,12 +1193,16 @@ bool QSslSocketBackendPrivate::startHandshake()
74 X509 *x509 = q_SSL_get_peer_certificate(ssl);
75 configuration.peerCertificate = QSslCertificatePrivate::QSslCertificate_from_X509(x509);
76 q_X509_free(x509);
77- if (QSslCertificatePrivate::isBlacklisted(configuration.peerCertificate)) {
78- q->setErrorString(QSslSocket::tr("The peer certificate is blacklisted"));
79- q->setSocketError(QAbstractSocket::SslHandshakeFailedError);
80- emit q->error(QAbstractSocket::SslHandshakeFailedError);
81- plainSocket->disconnectFromHost();
82- return false;
83+
84+ // check the whole chain for blacklisting (including root, as we check for subjectInfo and issuer)
85+ foreach (const QSslCertificate &cert, configuration.peerCertificateChain) {
86+ if (QSslCertificatePrivate::isBlacklisted(cert)) {
87+ q->setErrorString(QSslSocket::tr("The peer certificate is blacklisted"));
88+ q->setSocketError(QAbstractSocket::SslHandshakeFailedError);
89+ emit q->error(QAbstractSocket::SslHandshakeFailedError);
90+ plainSocket->disconnectFromHost();
91+ return false;
92+ }
93 }
94
95 // Start translating errors.
diff --git a/meta/recipes-qt/qt4/qt4-4.8.1/compile.test-lflags.patch b/meta/recipes-qt/qt4/qt4-4.8.1/compile.test-lflags.patch
deleted file mode 100644
index 1d725b7e03..0000000000
--- a/meta/recipes-qt/qt4/qt4-4.8.1/compile.test-lflags.patch
+++ /dev/null
@@ -1,17 +0,0 @@
1Pass through LDFLAGS to configure tests
2
3Upstream-Status: Inappropriate [configuration]
4
5Index: qt-everywhere-opensource-src-4.6.3/config.tests/unix/compile.test
6===================================================================
7--- qt-everywhere-opensource-src-4.6.3.orig/config.tests/unix/compile.test 2010-06-02 06:03:18.000000000 +0400
8+++ qt-everywhere-opensource-src-4.6.3/config.tests/unix/compile.test 2010-10-04 17:35:07.587783460 +0400
9@@ -11,7 +11,7 @@
10 EXE=`basename "$6"`
11 DESCRIPTION=$7
12 shift 7
13-LFLAGS=""
14+LFLAGS="$LDFLAGS"
15 INCLUDEPATH=""
16 CXXFLAGS=""
17 MAC_ARCH_CXXFLAGS=""
diff --git a/meta/recipes-qt/qt4/qt4-4.8.1/fix-config-tests.patch b/meta/recipes-qt/qt4/qt4-4.8.1/fix-config-tests.patch
deleted file mode 100644
index 1e0d14eb6b..0000000000
--- a/meta/recipes-qt/qt4/qt4-4.8.1/fix-config-tests.patch
+++ /dev/null
@@ -1,38 +0,0 @@
1Fix invocation in case of "ccache some-compiler-gcc". As the command "ccache some-compiler-gcc" will not exist but "ccache" will.
2
3both visibility and relocs were affected.
4
5Original Author: Holger Hans Peter Freyther <zecke@selfish.org>
6Ported from OE by: Yu Ke <ke.yu@intel.com>
7Upstream-Status: Pending
8
9Index: qt-x11-opensource-src-4.5.2/config.tests/unix/bsymbolic_functions.test
10===================================================================
11--- qt-x11-opensource-src-4.5.2.orig/config.tests/unix/bsymbolic_functions.test 2009-08-01 08:01:11.000000000 +0200
12+++ qt-x11-opensource-src-4.5.2/config.tests/unix/bsymbolic_functions.test 2009-08-01 08:01:16.000000000 +0200
13@@ -8,7 +8,7 @@
14 int main() { return 0; }
15 EOF
16
17-"$COMPILER" -o libtest.so -shared -Wl,-Bsymbolic-functions -fPIC bsymbolic_functions.c >/dev/null 2>&1 && BSYMBOLIC_FUNCTIONS_SUPPORT=yes
18+$COMPILER -o libtest.so -shared -Wl,-Bsymbolic-functions -fPIC bsymbolic_functions.c >/dev/null 2>&1 && BSYMBOLIC_FUNCTIONS_SUPPORT=yes
19 rm -f bsymbolic_functions.c libtest.so
20
21 # done
22Index: qt-x11-opensource-src-4.5.2/config.tests/unix/fvisibility.test
23===================================================================
24--- qt-x11-opensource-src-4.5.2.orig/config.tests/unix/fvisibility.test 2009-06-20 06:57:50.000000000 +0200
25+++ qt-x11-opensource-src-4.5.2/config.tests/unix/fvisibility.test 2009-08-01 07:59:05.000000000 +0200
26@@ -15,9 +15,9 @@
27 EOF
28
29 if [ "$VERBOSE" = "yes" ] ; then
30- "$COMPILER" -c -fvisibility=hidden fvisibility.c && FVISIBILITY_SUPPORT=yes
31+ $COMPILER -c -fvisibility=hidden fvisibility.c && FVISIBILITY_SUPPORT=yes
32 else
33- "$COMPILER" -c -fvisibility=hidden fvisibility.c >/dev/null 2>&1 && FVISIBILITY_SUPPORT=yes
34+ $COMPILER -c -fvisibility=hidden fvisibility.c >/dev/null 2>&1 && FVISIBILITY_SUPPORT=yes
35 fi
36 rm -f fvisibility.c fvisibility.o
37 }
38