summaryrefslogtreecommitdiff
path: root/src/network/ssl/qsslcipher.h
diff options
context:
space:
mode:
authorRichard Moore <rich@kde.org>2012-01-03 14:08:03 +0000
committerQt by Nokia <qt-info@nokia.com>2012-01-06 11:19:23 +0100
commitb328e36e41dc0c529c897fe845c53be1d39424be (patch)
tree7a9e2dacda5a6ca7da6923425e793b50f908bc08 /src/network/ssl/qsslcipher.h
parentc25d147c4304ef85653f628259b2fa4846e1c29f (diff)
downloadqtbase-b328e36e41dc0c529c897fe845c53be1d39424be.tar.gz
Add a new QT_NO_SSL feature macro.
At the moment users of Qt must detect if it was compiled with SSL support by testing for QT_NO_OPENSSL. This means that any code that is conditionally compiled this way is tied to the presence of the openssl backend. This commit makes it possible to implement new SSL backends during the Qt5 lifetime without breaking this code. People can still test for QT_NO_OPENSSL if they really need openssl, but if they simply want to know if there's SSL support at all they should use this define instead. In addition, this commit changes the public API headers to use the new define. Change-Id: Ib57a71aa65836ac9351f120a487bfeb8009d9515 Reviewed-by: Peter Hartmann <peter.hartmann@nokia.com>
Diffstat (limited to 'src/network/ssl/qsslcipher.h')
-rw-r--r--src/network/ssl/qsslcipher.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/network/ssl/qsslcipher.h b/src/network/ssl/qsslcipher.h
index 112b7753a7..8d58fa50ba 100644
--- a/src/network/ssl/qsslcipher.h
+++ b/src/network/ssl/qsslcipher.h
@@ -53,7 +53,7 @@ QT_BEGIN_NAMESPACE
QT_MODULE(Network)
-#ifndef QT_NO_OPENSSL
+#ifndef QT_NO_SSL
class QSslCipherPrivate;
class Q_NETWORK_EXPORT QSslCipher
@@ -88,7 +88,7 @@ class QDebug;
Q_NETWORK_EXPORT QDebug operator<<(QDebug debug, const QSslCipher &cipher);
#endif
-#endif // QT_NO_OPENSSL
+#endif // QT_NO_SSL
QT_END_NAMESPACE