rpms/qt/devel qt-x11-opensource-src-4.5.2-system_ca_certificates.patch, 1.1, 1.2 qt.spec, 1.324, 1.325
Than Ngo
than at fedoraproject.org
Wed Sep 9 13:04:25 UTC 2009
- Previous message (by thread): rpms/firefox/F-11 .cvsignore, 1.99, 1.100 firefox.spec, 1.337, 1.338 sources, 1.112, 1.113
- Next message (by thread): rpms/gnome-system-monitor/devel about-this-computer.desktop, 1.6, 1.7 gnome-system-monitor.spec, 1.147, 1.148
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: than
Update of /cvs/extras/rpms/qt/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv3676
Modified Files:
qt-x11-opensource-src-4.5.2-system_ca_certificates.patch
qt.spec
Log Message:
add a correct system_ca_certificates patch
qt-x11-opensource-src-4.5.2-system_ca_certificates.patch:
qsslsocket_openssl.cpp | 25 +++++++------------------
1 file changed, 7 insertions(+), 18 deletions(-)
Index: qt-x11-opensource-src-4.5.2-system_ca_certificates.patch
===================================================================
RCS file: /cvs/extras/rpms/qt/devel/qt-x11-opensource-src-4.5.2-system_ca_certificates.patch,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- qt-x11-opensource-src-4.5.2-system_ca_certificates.patch 8 Sep 2009 18:01:18 -0000 1.1
+++ qt-x11-opensource-src-4.5.2-system_ca_certificates.patch 9 Sep 2009 13:04:25 -0000 1.2
@@ -1,36 +1,42 @@
-diff -up qt-x11-opensource-src-4.5.2/src/network/ssl/qsslsocket_openssl.cpp.ca_bundle qt-x11-opensource-src-4.5.2/src/network/ssl/qsslsocket_openssl.cpp
---- qt-x11-opensource-src-4.5.2/src/network/ssl/qsslsocket_openssl.cpp.ca_bundle 2009-09-08 12:30:33.197347131 -0500
-+++ qt-x11-opensource-src-4.5.2/src/network/ssl/qsslsocket_openssl.cpp 2009-09-08 12:41:50.295324320 -0500
-@@ -482,11 +482,11 @@ void QSslSocketPrivate::resetDefaultCiph
+diff -up qt-x11-opensource-src-4.5.2/src/network/ssl/qsslsocket_openssl.cpp.me qt-x11-opensource-src-4.5.2/src/network/ssl/qsslsocket_openssl.cpp
+--- qt-x11-opensource-src-4.5.2/src/network/ssl/qsslsocket_openssl.cpp.me 2009-09-09 14:28:38.000000000 +0200
++++ qt-x11-opensource-src-4.5.2/src/network/ssl/qsslsocket_openssl.cpp 2009-09-09 15:00:07.000000000 +0200
+@@ -482,31 +482,20 @@ void QSslSocketPrivate::resetDefaultCiph
QList<QSslCertificate> QSslSocketPrivate::systemCaCertificates()
{
-#ifdef QQ_OS_UNIX
++ QFile caBundle;
++
+#ifdef Q_OS_UNIX
// Check known locations for the system's default bundle. ### On Windows,
// we should use CAPI to find the bundle, and not rely on default unix
// locations.
- const char *standardLocations[] = {"/etc/ssl/certs/",
-+ const char *standardLocations[] = {"/etc/pki/tls/certs/",
- #if 0
- // KDE uses KConfig for its SSL store,
- // but it also stores the bundle at
-@@ -495,13 +495,16 @@ QList<QSslCertificate> QSslSocketPrivate
- #endif
- 0};
- const char **it = standardLocations;
-+ QList<QSslCertificate> certs;
- QStringList nameFilter;
- nameFilter << QLatin1String("*.pem") << QLatin1String("*.crt");
- while (*it) {
+-#if 0
+- // KDE uses KConfig for its SSL store,
+- // but it also stores the bundle at
+- // this location
+- "$HOME/.kde/share/apps/kssl/ca-bundle.crt",
+-#endif
+- 0};
+- const char **it = standardLocations;
+- QStringList nameFilter;
+- nameFilter << QLatin1String("*.pem") << QLatin1String("*.crt");
+- while (*it) {
- if (QDirIterator(QLatin1String(*it), nameFilter).hasNext())
- return certificatesFromPath(QLatin1String(*it));
-+ QDirIterator certfilesIt(QLatin1String(*it), nameFilter);
-+ while (certfilesIt.hasNext())
-+ certs += QSslCertificate::fromPath(certfilesIt.next());
- ++it;
- }
-+ return certs;
+- ++it;
+- }
++ caBundle.setFileName(QLatin1String("/etc/pki/tls/certs/ca-bundle.crt"));
++ if (caBundle.open(QIODevice::ReadOnly | QIODevice::Text))
++ return QSslCertificate::fromDevice(&caBundle);
#endif
// Qt provides a default bundle when we cannot detect the system's default
+ // bundle.
+- QFile caBundle(QLatin1String(":/trolltech/network/ssl/qt-ca-bundle.crt"));
++ caBundle.setFileName(QLatin1String(":/trolltech/network/ssl/qt-ca-bundle.crt"));
+ if (caBundle.open(QIODevice::ReadOnly | QIODevice::Text))
+ return QSslCertificate::fromDevice(&caBundle);
+
Index: qt.spec
===================================================================
RCS file: /cvs/extras/rpms/qt/devel/qt.spec,v
retrieving revision 1.324
retrieving revision 1.325
diff -u -p -r1.324 -r1.325
--- qt.spec 8 Sep 2009 18:01:19 -0000 1.324
+++ qt.spec 9 Sep 2009 13:04:25 -0000 1.325
@@ -10,7 +10,7 @@ Summary: Qt toolkit
Name: qt
Epoch: 1
Version: 4.5.2
-Release: 15%{?dist}
+Release: 16%{?dist}
# See LGPL_EXCEPTIONS.txt, LICENSE.GPL3, respectively, for exception details
License: LGPLv2 with exceptions or GPLv3 with exceptions
@@ -890,6 +890,9 @@ fi
%{_datadir}/icons/hicolor/*/apps/qt4-logo.*
%changelog
+* Wed Sep 09 2009 Than Ngo <than at redhat.com> - 4.5.2-16
+- add a correct system_ca_certificates patch
+
* Tue Sep 08 2009 Rex Dieter <rdieter at fedoraproject.org> - 4.5.2-15
- use system ca-certificates (#521911)
- Previous message (by thread): rpms/firefox/F-11 .cvsignore, 1.99, 1.100 firefox.spec, 1.337, 1.338 sources, 1.112, 1.113
- Next message (by thread): rpms/gnome-system-monitor/devel about-this-computer.desktop, 1.6, 1.7 gnome-system-monitor.spec, 1.147, 1.148
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list