--- qt-all-opensource-src-4.4.0-rc1/src/network/ssl/qsslsocket_openssl_symbols.cpp~ 2008-04-02 20:34:00 +0400 +++ qt-all-opensource-src-4.4.0-rc1/src/network/ssl/qsslsocket_openssl_symbols.cpp 2008-04-10 17:10:03 +0400 @@ -301,6 +301,7 @@ static bool libGreaterThan(const QString static QStringList findAllLibSsl() { +#if 0 QStringList paths; # ifdef Q_OS_DARWIN paths = QString::fromLatin1(qgetenv("DYLD_LIBRARY_PATH")) @@ -320,6 +321,10 @@ static QStringList findAllLibSsl() foreach (const QString &entry, entryList) foundSsls << path + QLatin1Char('/') + entry; } +#else + QStringList foundSsls; + foundSsls << "/lib/libssl.so.6" << "/lib/libssl.so.4" << "/usr/lib/libssl.so"; +#endif return foundSsls; } @@ -378,6 +383,7 @@ static QPair loadO // DT_RPATH tags on our library header as well as other system-specific search // paths. See the man page for dlopen(3) on your system for more information. +#if 0 #ifdef SHLIB_VERSION_NUMBER // first attempt: the canonical name is libssl.so. libssl->setFileNameAndVersion(QLatin1String("ssl"), QLatin1String(SHLIB_VERSION_NUMBER)); @@ -401,6 +407,7 @@ static QPair loadO libssl->unload(); libcrypto->unload(); } +#endif // third attempt: loop on the most common library paths and find libssl QStringList sslList = findAllLibSsl();