diff options
author | Peter Hartmann <peter.hartmann@nokia.com> | 2011-02-28 17:35:23 (GMT) |
---|---|---|
committer | Peter Hartmann <peter.hartmann@nokia.com> | 2011-02-28 17:49:29 (GMT) |
commit | 74c683c6879dea1cb4eaa99aaf61e16524b8a4a1 (patch) | |
tree | d5ebeccae9008158ac756e05e575dc9c26e40b95 | |
parent | 3287348434ee1f15c7468c7d25b2fc97c8791371 (diff) | |
download | Qt-74c683c6879dea1cb4eaa99aaf61e16524b8a4a1.zip Qt-74c683c6879dea1cb4eaa99aaf61e16524b8a4a1.tar.gz Qt-74c683c6879dea1cb4eaa99aaf61e16524b8a4a1.tar.bz2 |
SSL TLS extension on Symbian: work around missing symbol
... by defining it ourselves. That symbol is missing in the header files
for Symbian.
Reviewed-by: Shane Kearns
-rw-r--r-- | src/network/ssl/qsslsocket_openssl.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/network/ssl/qsslsocket_openssl.cpp b/src/network/ssl/qsslsocket_openssl.cpp index 60d6cae..455a49f1 100644 --- a/src/network/ssl/qsslsocket_openssl.cpp +++ b/src/network/ssl/qsslsocket_openssl.cpp @@ -60,6 +60,12 @@ #include <QtCore/qvarlengtharray.h> #include <QLibrary> // for loading the security lib for the CA store +#if OPENSSL_VERSION_NUMBER >= 0x0090806fL && !defined(OPENSSL_NO_TLSEXT) +// Symbian does not seem to have the symbol for SNI defined +#ifndef SSL_CTRL_SET_TLSEXT_HOSTNAME +#define SSL_CTRL_SET_TLSEXT_HOSTNAME 55 +#endif +#endif QT_BEGIN_NAMESPACE #if defined(Q_OS_MAC) |