summaryrefslogtreecommitdiffstats
path: root/meta/recipes-qt/qt4
diff options
context:
space:
mode:
authorEric Bénard <eric@eukrea.com>2013-01-07 18:06:57 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-01-07 19:26:28 +0000
commita06958eefcfe4e5f5c8f0bbac24fd1b43821d0b0 (patch)
tree4e4ff98f451cac426433d4579ae863e54fcebb32 /meta/recipes-qt/qt4
parent51ce14351d4a67a3c285be139a2c3af6610f2d70 (diff)
downloadpoky-a06958eefcfe4e5f5c8f0bbac24fd1b43821d0b0.tar.gz
qt4: blacklist untrusted SSL certificates
- this blacklist wrong certificates https://bugreports.qt-project.org/browse/QTBUG-24654 https://bugreports.qt-project.org/browse/QTBUG-28937 - these patches will be in the next 4.8.5 release (From OE-Core rev: aafcf34aa8be3525ada517b770e43ad05de5a4b6) Signed-off-by: Eric Bénard <eric@eukrea.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.4.inc2
-rw-r--r--meta/recipes-qt/qt4/qt4-4.8.4/0022-ssl-certificates-blacklist-mis-issued-turktrust-certificates.patch108
-rw-r--r--meta/recipes-qt/qt4/qt4-4.8.4/0023-qtnetwork-blacklist-two-more-certificates.patch41
-rw-r--r--meta/recipes-qt/qt4/qt4-embedded_4.8.4.bb2
-rw-r--r--meta/recipes-qt/qt4/qt4-x11-free_4.8.4.bb2
5 files changed, 153 insertions, 2 deletions
diff --git a/meta/recipes-qt/qt4/qt4-4.8.4.inc b/meta/recipes-qt/qt4/qt4-4.8.4.inc
index 08173a1d14..0bc106251e 100644
--- a/meta/recipes-qt/qt4/qt4-4.8.4.inc
+++ b/meta/recipes-qt/qt4/qt4-4.8.4.inc
@@ -21,6 +21,8 @@ SRC_URI = "http://releases.qt-project.org/qt4/source/qt-everywhere-opensource-sr
21 file://0018-configure-make-pulseaudio-a-configurable-option.patch \ 21 file://0018-configure-make-pulseaudio-a-configurable-option.patch \
22 file://0019-Fixes-for-gcc-4.7.0-particularly-on-qemux86.patch \ 22 file://0019-Fixes-for-gcc-4.7.0-particularly-on-qemux86.patch \
23 file://0020-webkit-disable-the-fuse-ld-gold-flag.patch \ 23 file://0020-webkit-disable-the-fuse-ld-gold-flag.patch \
24 file://0022-ssl-certificates-blacklist-mis-issued-turktrust-certificates.patch \
25 file://0023-qtnetwork-blacklist-two-more-certificates.patch \
24 file://g++.conf \ 26 file://g++.conf \
25 file://linux.conf \ 27 file://linux.conf \
26 " 28 "
diff --git a/meta/recipes-qt/qt4/qt4-4.8.4/0022-ssl-certificates-blacklist-mis-issued-turktrust-certificates.patch b/meta/recipes-qt/qt4/qt4-4.8.4/0022-ssl-certificates-blacklist-mis-issued-turktrust-certificates.patch
new file mode 100644
index 0000000000..8caef97405
--- /dev/null
+++ b/meta/recipes-qt/qt4/qt4-4.8.4/0022-ssl-certificates-blacklist-mis-issued-turktrust-certificates.patch
@@ -0,0 +1,108 @@
1From 451462b1e0304e0cb6c2872e4f5688bc2e556dca Mon Sep 17 00:00:00 2001
2From: Peter Hartmann <phartmann@rim.com>
3Date: Fri, 4 Jan 2013 11:06:14 +0100
4Subject: [PATCH] SSL certificates: blacklist mis-issued Turktrust certificates
5
6Those certificates have erroneously set the CA attribute to true,
7meaning everybody in possesion of their keys can issue certificates on
8their own.
9
10backport of bf5e7fb2652669599a508e049b46ebd5cd3206e5 from qtbase
11
12Task-number: QTBUG-28937
13Change-Id: Iee57c6f983fee61c13c3b66ed874300ef8e80c23
14Reviewed-by: Richard J. Moore <rich@kde.org>
15
16Upstream-Status: Accepted https://codereview.qt-project.org/#change,43968
17---
18 src/network/ssl/qsslcertificate.cpp | 3 ++
19 ...ted-turktrust-e-islem.kktcmerkezbankasi.org.pem | 24 +++++++++++++++
20 .../blacklisted-turktrust-ego.gov.tr.pem | 31 ++++++++++++++++++++
21 3 files changed, 58 insertions(+), 0 deletions(-)
22 create mode 100644 tests/auto/qsslcertificate/more-certificates/blacklisted-turktrust-e-islem.kktcmerkezbankasi.org.pem
23 create mode 100644 tests/auto/qsslcertificate/more-certificates/blacklisted-turktrust-ego.gov.tr.pem
24
25diff --git a/src/network/ssl/qsslcertificate.cpp b/src/network/ssl/qsslcertificate.cpp
26index 038187f..37799d1 100644
27--- a/src/network/ssl/qsslcertificate.cpp
28+++ b/src/network/ssl/qsslcertificate.cpp
29@@ -825,6 +825,9 @@ static const char *certificate_blacklist[] = {
30
31 "120001705", "Digisign Server ID (Enrich)", // (Malaysian) Digicert Sdn. Bhd. cross-signed by Verizon CyberTrust
32 "1276011370", "Digisign Server ID - (Enrich)", // (Malaysian) Digicert Sdn. Bhd. cross-signed by Entrust
33+
34+ "2087", "*.EGO.GOV.TR", // Turktrust mis-issued intermediate certificate
35+ "2148", "e-islem.kktcmerkezbankasi.org", // Turktrust mis-issued intermediate certificate
36 0
37 };
38
39diff --git a/tests/auto/qsslcertificate/more-certificates/blacklisted-turktrust-e-islem.kktcmerkezbankasi.org.pem b/tests/auto/qsslcertificate/more-certificates/blacklisted-turktrust-e-islem.kktcmerkezbankasi.org.pem
40new file mode 100644
41index 0000000..33f2ef4
42--- /dev/null
43+++ b/tests/auto/qsslcertificate/more-certificates/blacklisted-turktrust-e-islem.kktcmerkezbankasi.org.pem
44@@ -0,0 +1,24 @@
45+-----BEGIN CERTIFICATE-----
46+MIID8DCCAtigAwIBAgICCGQwDQYJKoZIhvcNAQEFBQAwgawxPTA7BgNVBAMMNFTD
47+nFJLVFJVU1QgRWxla3Ryb25payBTdW51Y3UgU2VydGlmaWthc8SxIEhpem1ldGxl
48+cmkxCzAJBgNVBAYTAlRSMV4wXAYDVQQKDFVUw5xSS1RSVVNUIEJpbGdpIMSwbGV0
49+acWfaW0gdmUgQmlsacWfaW0gR8O8dmVubGnEn2kgSGl6bWV0bGVyaSBBLsWeLiAo
50+YykgS2FzxLFtICAyMDA1MB4XDTExMDgwODA3MDc1MVoXDTIxMDgwNTA3MDc1MVow
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8zwQWFrzEms0joHXC
67+pWfGWA==
68+-----END CERTIFICATE-----
69diff --git a/tests/auto/qsslcertificate/more-certificates/blacklisted-turktrust-ego.gov.tr.pem b/tests/auto/qsslcertificate/more-certificates/blacklisted-turktrust-ego.gov.tr.pem
70new file mode 100644
71index 0000000..e9d048f
72--- /dev/null
73+++ b/tests/auto/qsslcertificate/more-certificates/blacklisted-turktrust-ego.gov.tr.pem
74@@ -0,0 +1,31 @@
75+-----BEGIN CERTIFICATE-----
76+MIIFPTCCBCWgAwIBAgICCCcwDQYJKoZIhvcNAQEFBQAwgawxPTA7BgNVBAMMNFTD
77+nFJLVFJVU1QgRWxla3Ryb25payBTdW51Y3UgU2VydGlmaWthc8SxIEhpem1ldGxl
78+cmkxCzAJBgNVBAYTAlRSMV4wXAYDVQQKDFVUw5xSS1RSVVNUIEJpbGdpIMSwbGV0
79+acWfaW0gdmUgQmlsacWfaW0gR8O8dmVubGnEn2kgSGl6bWV0bGVyaSBBLsWeLiAo
80+YykgS2FzxLFtICAyMDA1MB4XDTExMDgwODA3MDc1MVoXDTIxMDcwNjA3MDc1MVow
81+bjELMAkGA1UEBhMCVFIxDzANBgNVBAgMBkFOS0FSQTEPMA0GA1UEBwwGQU5LQVJB
82+MQwwCgYDVQQKDANFR08xGDAWBgNVBAsMD0VHTyBCSUxHSSBJU0xFTTEVMBMGA1UE
83+AwwMKi5FR08uR09WLlRSMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA
84+v5zoj2Bpdl7R1M/zF6Qf4su2F8vDqISKvuTuyJhNAHhFGHCsHjaixGMHspuz0l3V
85+50kq/ECWbN8kKaeTrB112QOrWTU276iup1Gh+OlEOiR9vlQ4VAP00dWUjD6z9HQF
86+Ci8W3EsEtiiHiYOU9BcPpPkaUbECwP4nGVwR8aPwhB5PGBJc98romdvciYkUpSOO
87+wkuSRtooA7tRlLFu72QaNpXN1NueB36I3aajPk0YyiXy2w8XlgK7QI4PSSBnSq+Q
88+blF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
104+hQ==
105+-----END CERTIFICATE-----
106--
1071.7.1
108
diff --git a/meta/recipes-qt/qt4/qt4-4.8.4/0023-qtnetwork-blacklist-two-more-certificates.patch b/meta/recipes-qt/qt4/qt4-4.8.4/0023-qtnetwork-blacklist-two-more-certificates.patch
new file mode 100644
index 0000000000..54171f7647
--- /dev/null
+++ b/meta/recipes-qt/qt4/qt4-4.8.4/0023-qtnetwork-blacklist-two-more-certificates.patch
@@ -0,0 +1,41 @@
1From 180bf94c241728dd6d6f100437914d3cb11cbc30 Mon Sep 17 00:00:00 2001
2From: Martin Petersson <Martin.Petersson@nokia.com>
3Date: Wed, 7 Mar 2012 12:05:59 +0100
4Subject: [PATCH] QtNetwork: blacklist two more certificates
5
6The comodogate 72:03:21:05:c5:0c:08:57:3d:8e:a5:30:4e:fe:e8:b0
7certificate is a test certificate and the MD5 Collisions was created
8as a proof of concept deliberately made to be expired at the time
9of it's creation.
10
11Task-number: QTBUG-24654
12(cherry picked from commit 4c0df9feb2b44d0c4fcaa5076f00aa08fbc1dda5)
13
14Signed-off-by: Peter Hartmann <phartmann@rim.com>
15
16Apparently this commit was forgotten to cherry-pick to Qt 4.
17
18Change-Id: I86949eaa3c02483b0b66b4a620bfa88aaa9aa99b
19Reviewed-by: Richard J. Moore <rich@kde.org>
20
21Upstream-Status: Accepted https://codereview.qt-project.org/#change,43992
22---
23 src/network/ssl/qsslcertificate.cpp | 2 ++
24 1 files changed, 2 insertions(+), 0 deletions(-)
25
26diff --git a/src/network/ssl/qsslcertificate.cpp b/src/network/ssl/qsslcertificate.cpp
27index 37799d1..300a261 100644
28--- a/src/network/ssl/qsslcertificate.cpp
29+++ b/src/network/ssl/qsslcertificate.cpp
30@@ -825,6 +825,8 @@ static const char *certificate_blacklist[] = {
31
32 "120001705", "Digisign Server ID (Enrich)", // (Malaysian) Digicert Sdn. Bhd. cross-signed by Verizon CyberTrust
33 "1276011370", "Digisign Server ID - (Enrich)", // (Malaysian) Digicert Sdn. Bhd. cross-signed by Entrust
34+ "72:03:21:05:c5:0c:08:57:3d:8e:a5:30:4e:fe:e8:b0", "UTN-USERFirst-Hardware", // comodogate test certificate
35+ "41", "MD5 Collisions Inc. (http://www.phreedom.org/md5)", // http://www.phreedom.org/research/rogue-ca/
36
37 "2087", "*.EGO.GOV.TR", // Turktrust mis-issued intermediate certificate
38 "2148", "e-islem.kktcmerkezbankasi.org", // Turktrust mis-issued intermediate certificate
39--
401.7.1
41
diff --git a/meta/recipes-qt/qt4/qt4-embedded_4.8.4.bb b/meta/recipes-qt/qt4/qt4-embedded_4.8.4.bb
index 187de7394f..5a3dc6537a 100644
--- a/meta/recipes-qt/qt4/qt4-embedded_4.8.4.bb
+++ b/meta/recipes-qt/qt4/qt4-embedded_4.8.4.bb
@@ -1,7 +1,7 @@
1require qt4-${PV}.inc 1require qt4-${PV}.inc
2require qt4-embedded.inc 2require qt4-embedded.inc
3 3
4PR = "${INC_PR}.0" 4PR = "${INC_PR}.1"
5 5
6QT_CONFIG_FLAGS_append_armv6 = " -no-neon " 6QT_CONFIG_FLAGS_append_armv6 = " -no-neon "
7 7
diff --git a/meta/recipes-qt/qt4/qt4-x11-free_4.8.4.bb b/meta/recipes-qt/qt4/qt4-x11-free_4.8.4.bb
index bedd201350..9b03ff2f57 100644
--- a/meta/recipes-qt/qt4/qt4-x11-free_4.8.4.bb
+++ b/meta/recipes-qt/qt4/qt4-x11-free_4.8.4.bb
@@ -1,7 +1,7 @@
1require qt4-x11-free.inc 1require qt4-x11-free.inc
2require qt4-${PV}.inc 2require qt4-${PV}.inc
3 3
4PR = "${INC_PR}.0" 4PR = "${INC_PR}.1"
5 5
6QT_CONFIG_FLAGS_append_armv6 = " -no-neon " 6QT_CONFIG_FLAGS_append_armv6 = " -no-neon "
7 7