2015-02-21 17:54:12 +01:00
|
|
|
diff --git a/qtbase/src/network/ssl/qsslsocket_openssl_symbols.cpp b/qtbase/src/network/ssl/qsslsocket_openssl_symbols.cpp
|
2015-04-05 09:53:54 +02:00
|
|
|
index c1fea93..bc1c0f0 100644
|
2015-02-21 17:54:12 +01:00
|
|
|
--- a/qtbase/src/network/ssl/qsslsocket_openssl_symbols.cpp
|
|
|
|
+++ b/qtbase/src/network/ssl/qsslsocket_openssl_symbols.cpp
|
2015-04-05 09:53:54 +02:00
|
|
|
@@ -611,8 +611,8 @@ static QPair<QLibrary*, QLibrary*> loadOpenSsl()
|
2015-02-21 17:54:12 +01:00
|
|
|
#endif
|
|
|
|
#if defined(SHLIB_VERSION_NUMBER) && !defined(Q_OS_QNX) // on QNX, the libs are always libssl.so and libcrypto.so
|
|
|
|
// first attempt: the canonical name is libssl.so.<SHLIB_VERSION_NUMBER>
|
|
|
|
- libssl->setFileNameAndVersion(QLatin1String("ssl"), QLatin1String(SHLIB_VERSION_NUMBER));
|
|
|
|
- libcrypto->setFileNameAndVersion(QLatin1String("crypto"), QLatin1String(SHLIB_VERSION_NUMBER));
|
|
|
|
+ libssl->setFileNameAndVersion(QLatin1String("@openssl@/lib/libssl"), QLatin1String(SHLIB_VERSION_NUMBER));
|
|
|
|
+ libcrypto->setFileNameAndVersion(QLatin1String("@openssl@/lib/libcrypto"), QLatin1String(SHLIB_VERSION_NUMBER));
|
|
|
|
if (libcrypto->load() && libssl->load()) {
|
|
|
|
// libssl.so.<SHLIB_VERSION_NUMBER> and libcrypto.so.<SHLIB_VERSION_NUMBER> found
|
|
|
|
return pair;
|
2015-04-05 09:53:54 +02:00
|
|
|
@@ -629,8 +629,8 @@ static QPair<QLibrary*, QLibrary*> loadOpenSsl()
|
|
|
|
// OS X's /usr/lib/libssl.dylib, /usr/lib/libcrypto.dylib will be picked up in the third
|
|
|
|
// attempt, _after_ <bundle>/Contents/Frameworks has been searched.
|
|
|
|
// iOS does not ship a system libssl.dylib, libcrypto.dylib in the first place.
|
2015-02-21 17:54:12 +01:00
|
|
|
- libssl->setFileNameAndVersion(QLatin1String("ssl"), -1);
|
|
|
|
- libcrypto->setFileNameAndVersion(QLatin1String("crypto"), -1);
|
|
|
|
+ libssl->setFileNameAndVersion(QLatin1String("@openssl@/lib/libssl"), -1);
|
|
|
|
+ libcrypto->setFileNameAndVersion(QLatin1String("@openssl@/lib/libcrypto"), -1);
|
|
|
|
if (libcrypto->load() && libssl->load()) {
|
|
|
|
// libssl.so.0 and libcrypto.so.0 found
|
|
|
|
return pair;
|