wrap QLibrary related code with QT_NO_LIBRARY
To fix a compile error when QT_NO_LIBRARY is defined. Change-Id: Ie72b60b8204641fa05f4cdbf66e908cb3526217e Reviewed-by: Jing Bai <jing.bai@digia.com> Reviewed-by: Richard J. Moore <rich@kde.org>
This commit is contained in:
parent
57b4a504ff
commit
37e3168abc
@ -633,6 +633,7 @@ void QSslSocketPrivate::ensureCiphersAndCertsLoaded()
|
||||
|
||||
resetDefaultCiphers();
|
||||
|
||||
#ifndef QT_NO_LIBRARY
|
||||
//load symbols needed to receive certificates from system store
|
||||
#if defined(Q_OS_MAC) && !defined(Q_OS_IOS)
|
||||
QLibrary securityLib("/System/Library/Frameworks/Security.framework/Versions/Current/Security");
|
||||
@ -680,6 +681,7 @@ void QSslSocketPrivate::ensureCiphersAndCertsLoaded()
|
||||
}
|
||||
}
|
||||
#endif
|
||||
#endif //QT_NO_LIBRARY
|
||||
// if on-demand loading was not enabled, load the certs now
|
||||
if (!s_loadRootCertsOnDemand)
|
||||
setDefaultCaCertificates(systemCaCertificates());
|
||||
|
Loading…
Reference in New Issue
Block a user