diff options
author | Markus Goetz <Markus.Goetz@nokia.com> | 2009-05-26 11:22:00 (GMT) |
---|---|---|
committer | Markus Goetz <Markus.Goetz@nokia.com> | 2009-05-26 12:40:13 (GMT) |
commit | c17f27a9a14c353c6149f2c15f6a0ff6afe3dedd (patch) | |
tree | 88ee389c7a7228c648effdba1a9a2df2520ec135 /src | |
parent | 871b730da203cef773e159960532888522f16a0b (diff) | |
download | Qt-c17f27a9a14c353c6149f2c15f6a0ff6afe3dedd.zip Qt-c17f27a9a14c353c6149f2c15f6a0ff6afe3dedd.tar.gz Qt-c17f27a9a14c353c6149f2c15f6a0ff6afe3dedd.tar.bz2 |
SSL: Remove broken system certificate loading code
Task-number: 254365
Reviewed-by: Peter Hartmann
Diffstat (limited to 'src')
-rw-r--r-- | src/network/ssl/qsslsocket_openssl.cpp | 25 |
1 files changed, 1 insertions, 24 deletions
diff --git a/src/network/ssl/qsslsocket_openssl.cpp b/src/network/ssl/qsslsocket_openssl.cpp index 6f8cf42..cb101af 100644 --- a/src/network/ssl/qsslsocket_openssl.cpp +++ b/src/network/ssl/qsslsocket_openssl.cpp @@ -482,30 +482,7 @@ void QSslSocketPrivate::resetDefaultCiphers() QList<QSslCertificate> QSslSocketPrivate::systemCaCertificates() { -#ifdef QQ_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/", -#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)); - ++it; - } -#endif - - // Qt provides a default bundle when we cannot detect the system's default - // bundle. + // Qt provides a default bundle of certificates QFile caBundle(QLatin1String(":/trolltech/network/ssl/qt-ca-bundle.crt")); if (caBundle.open(QIODevice::ReadOnly | QIODevice::Text)) return QSslCertificate::fromDevice(&caBundle); |