QtNetwork: Remove Windows CE.
Remove #ifdef sections for Q_OS_WINCE and wince .pro file clauses in library, examples and tests. Task-number: QTBUG-51673 Change-Id: I3706336395620522ceda414d7437295d9ec64f16 Reviewed-by: Lars Knoll <lars.knoll@theqtcompany.com>bb10
parent
a06ae8452a
commit
04aa760711
|
|
@ -12,8 +12,7 @@ FORMS = bearermonitor_240_320.ui \
|
|||
bearermonitor_640_480.ui \
|
||||
sessionwidget.ui
|
||||
|
||||
win32:!wince: LIBS += -lws2_32
|
||||
wince: LIBS += -lws2
|
||||
win32:LIBS += -lws2_32
|
||||
|
||||
CONFIG += console
|
||||
|
||||
|
|
|
|||
|
|
@ -421,7 +421,7 @@ QIODevice *QNetworkDiskCache::data(const QUrl &url)
|
|||
// ### verify that QFile uses the fd size and not the file name
|
||||
qint64 size = file->size() - file->pos();
|
||||
const uchar *p = 0;
|
||||
#if !defined(Q_OS_WINCE) && !defined(Q_OS_INTEGRITY)
|
||||
#if !defined(Q_OS_INTEGRITY)
|
||||
p = file->map(file->pos(), size);
|
||||
#endif
|
||||
if (p) {
|
||||
|
|
|
|||
|
|
@ -1453,15 +1453,9 @@ static bool q_NTLM_SSPI_library_load()
|
|||
if (pSecurityFunctionTable == NULL) {
|
||||
securityDLLHandle = LoadLibrary(L"secur32.dll");
|
||||
if (securityDLLHandle != NULL) {
|
||||
#if defined(Q_OS_WINCE)
|
||||
INIT_SECURITY_INTERFACE pInitSecurityInterface =
|
||||
(INIT_SECURITY_INTERFACE)GetProcAddress(securityDLLHandle,
|
||||
L"InitSecurityInterfaceW");
|
||||
#else
|
||||
INIT_SECURITY_INTERFACE pInitSecurityInterface =
|
||||
(INIT_SECURITY_INTERFACE)GetProcAddress(securityDLLHandle,
|
||||
"InitSecurityInterfaceW");
|
||||
#endif
|
||||
if (pInitSecurityInterface != NULL)
|
||||
pSecurityFunctionTable = pInitSecurityInterface();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -73,7 +73,7 @@ QT_BEGIN_NAMESPACE
|
|||
// sockaddr_in6 size changed between old and new SDK
|
||||
// Only the new version is the correct one, so always
|
||||
// use this structure.
|
||||
#if defined(Q_OS_WINCE) || defined(Q_OS_WINRT)
|
||||
#if defined(Q_OS_WINRT)
|
||||
# if !defined(u_char)
|
||||
# define u_char unsigned char
|
||||
# endif
|
||||
|
|
|
|||
|
|
@ -82,11 +82,7 @@ static void resolveLibrary()
|
|||
{
|
||||
// Attempt to resolve getaddrinfo(); without it we'll have to fall
|
||||
// back to gethostbyname(), which has no IPv6 support.
|
||||
#if defined(Q_OS_WINCE)
|
||||
local_getaddrinfo = (getaddrinfoProto) QSystemLibrary::resolve(QLatin1String("ws2"), "getaddrinfo");
|
||||
local_freeaddrinfo = (freeaddrinfoProto) QSystemLibrary::resolve(QLatin1String("ws2"), "freeaddrinfo");
|
||||
local_getnameinfo = (getnameinfoProto) QSystemLibrary::resolve(QLatin1String("ws2"), "getnameinfo");
|
||||
#elif defined (Q_OS_WINRT)
|
||||
#if defined (Q_OS_WINRT)
|
||||
local_getaddrinfo = (getaddrinfoProto) &getaddrinfo;
|
||||
local_freeaddrinfo = (freeaddrinfoProto) &freeaddrinfo;
|
||||
local_getnameinfo = (getnameinfoProto) getnameinfo;
|
||||
|
|
@ -115,11 +111,6 @@ static void translateWSAError(int error, QHostInfo *results)
|
|||
|
||||
QHostInfo QHostInfoAgent::fromName(const QString &hostName)
|
||||
{
|
||||
#if defined(Q_OS_WINCE)
|
||||
static QBasicMutex qPrivCEMutex;
|
||||
QMutexLocker locker(&qPrivCEMutex);
|
||||
#endif
|
||||
|
||||
QSysInfo::machineHostName(); // this initializes ws2_32.dll
|
||||
|
||||
// Load res_init on demand.
|
||||
|
|
|
|||
|
|
@ -81,19 +81,11 @@ static void resolveLibs()
|
|||
HINSTANCE iphlpapiHnd = GetModuleHandle(L"iphlpapi");
|
||||
Q_ASSERT(iphlpapiHnd);
|
||||
|
||||
#if defined(Q_OS_WINCE)
|
||||
// since Windows Embedded Compact 7
|
||||
ptrConvertInterfaceIndexToLuid = (PtrConvertInterfaceIndexToLuid)GetProcAddress(iphlpapiHnd, L"ConvertInterfaceIndexToLuid");
|
||||
ptrConvertInterfaceLuidToName = (PtrConvertInterfaceLuidToName)GetProcAddress(iphlpapiHnd, L"ConvertInterfaceLuidToNameW");
|
||||
ptrConvertInterfaceLuidToIndex = (PtrConvertInterfaceLuidToIndex)GetProcAddress(iphlpapiHnd, L"ConvertInterfaceLuidToIndex");
|
||||
ptrConvertInterfaceNameToLuid = (PtrConvertInterfaceNameToLuid)GetProcAddress(iphlpapiHnd, L"ConvertInterfaceNameToLuidW");
|
||||
#else
|
||||
// since Windows Vista
|
||||
ptrConvertInterfaceIndexToLuid = (PtrConvertInterfaceIndexToLuid)GetProcAddress(iphlpapiHnd, "ConvertInterfaceIndexToLuid");
|
||||
ptrConvertInterfaceLuidToName = (PtrConvertInterfaceLuidToName)GetProcAddress(iphlpapiHnd, "ConvertInterfaceLuidToNameW");
|
||||
ptrConvertInterfaceLuidToIndex = (PtrConvertInterfaceLuidToIndex)GetProcAddress(iphlpapiHnd, "ConvertInterfaceLuidToIndex");
|
||||
ptrConvertInterfaceNameToLuid = (PtrConvertInterfaceNameToLuid)GetProcAddress(iphlpapiHnd, "ConvertInterfaceNameToLuidW");
|
||||
#endif
|
||||
done = true;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -122,7 +122,6 @@ static PtrWinHttpGetIEProxyConfigForCurrentUser ptrWinHttpGetIEProxyConfigForCur
|
|||
static PtrWinHttpCloseHandle ptrWinHttpCloseHandle = 0;
|
||||
|
||||
|
||||
#ifndef Q_OS_WINCE
|
||||
static bool currentProcessIsService()
|
||||
{
|
||||
typedef BOOL (WINAPI *PtrGetUserName)(LPTSTR lpBuffer, LPDWORD lpnSize);
|
||||
|
|
@ -152,7 +151,6 @@ static bool currentProcessIsService()
|
|||
}
|
||||
return false;
|
||||
}
|
||||
#endif // ! Q_OS_WINCE
|
||||
|
||||
static QStringList splitSpaceSemicolon(const QString &source)
|
||||
{
|
||||
|
|
@ -358,7 +356,7 @@ static QList<QNetworkProxy> parseServerList(const QNetworkProxyQuery &query, con
|
|||
return removeDuplicateProxies(result);
|
||||
}
|
||||
|
||||
#if !defined(Q_OS_WINCE) && !defined(Q_OS_WINRT)
|
||||
#if !defined(Q_OS_WINRT)
|
||||
namespace {
|
||||
class QRegistryWatcher {
|
||||
public:
|
||||
|
|
@ -409,7 +407,7 @@ private:
|
|||
QVector<HKEY> m_registryHandles;
|
||||
};
|
||||
} // namespace
|
||||
#endif // !defined(Q_OS_WINCE) && !defined(Q_OS_WINRT)
|
||||
#endif // !defined(Q_OS_WINRT)
|
||||
|
||||
class QWindowsSystemProxy
|
||||
{
|
||||
|
|
@ -428,7 +426,7 @@ public:
|
|||
QStringList proxyServerList;
|
||||
QStringList proxyBypass;
|
||||
QList<QNetworkProxy> defaultResult;
|
||||
#if !defined(Q_OS_WINCE) && !defined(Q_OS_WINRT)
|
||||
#if !defined(Q_OS_WINRT)
|
||||
QRegistryWatcher proxySettingsWatcher;
|
||||
#endif
|
||||
bool initialized;
|
||||
|
|
@ -464,7 +462,7 @@ void QWindowsSystemProxy::reset()
|
|||
void QWindowsSystemProxy::init()
|
||||
{
|
||||
bool proxySettingsChanged = false;
|
||||
#if !defined(Q_OS_WINCE) && !defined(Q_OS_WINRT)
|
||||
#if !defined(Q_OS_WINRT)
|
||||
proxySettingsChanged = proxySettingsWatcher.hasChanged();
|
||||
#endif
|
||||
|
||||
|
|
@ -474,12 +472,7 @@ void QWindowsSystemProxy::init()
|
|||
|
||||
reset();
|
||||
|
||||
#ifdef Q_OS_WINCE
|
||||
// Windows CE does not have any of the following API
|
||||
return;
|
||||
#else
|
||||
|
||||
#if !defined(Q_OS_WINCE) && !defined(Q_OS_WINRT)
|
||||
#if !defined(Q_OS_WINRT)
|
||||
proxySettingsWatcher.clear(); // needs reset to trigger a new detection
|
||||
proxySettingsWatcher.addLocation(HKEY_CURRENT_USER, QStringLiteral("Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings"));
|
||||
proxySettingsWatcher.addLocation(HKEY_LOCAL_MACHINE, QStringLiteral("Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings"));
|
||||
|
|
@ -567,7 +560,6 @@ void QWindowsSystemProxy::init()
|
|||
}
|
||||
|
||||
functional = isAutoConfig || !proxyServerList.isEmpty();
|
||||
#endif
|
||||
}
|
||||
|
||||
QList<QNetworkProxy> QNetworkProxyFactory::systemProxyForQuery(const QNetworkProxyQuery &query)
|
||||
|
|
|
|||
|
|
@ -66,21 +66,20 @@
|
|||
QT_BEGIN_NAMESPACE
|
||||
|
||||
#ifdef Q_OS_WIN
|
||||
#define QT_SOCKLEN_T int
|
||||
#define QT_SOCKOPTLEN_T int
|
||||
# define QT_SOCKLEN_T int
|
||||
# define QT_SOCKOPTLEN_T int
|
||||
|
||||
// The following definitions are copied from the MinGW header mswsock.h which
|
||||
// was placed in the public domain. The WSASendMsg and WSARecvMsg functions
|
||||
// were introduced with Windows Vista, so some Win32 headers are lacking them.
|
||||
// There are no known versions of Windows CE or Embedded that contain them.
|
||||
#ifndef Q_OS_WINCE
|
||||
# ifndef WSAID_WSARECVMSG
|
||||
typedef INT (WINAPI *LPFN_WSARECVMSG)(SOCKET s, LPWSAMSG lpMsg,
|
||||
LPDWORD lpdwNumberOfBytesRecvd,
|
||||
LPWSAOVERLAPPED lpOverlapped,
|
||||
LPWSAOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine);
|
||||
# define WSAID_WSARECVMSG {0xf689d7c8,0x6f1f,0x436b,{0x8a,0x53,0xe5,0x4f,0xe3,0x51,0xc3,0x22}}
|
||||
# endif
|
||||
# endif // !WSAID_WSARECVMSG
|
||||
# ifndef WSAID_WSASENDMSG
|
||||
typedef struct {
|
||||
LPWSAMSG lpMsg;
|
||||
|
|
@ -96,9 +95,8 @@ typedef INT (WSAAPI *LPFN_WSASENDMSG)(SOCKET s, LPWSAMSG lpMsg, DWORD dwFlags,
|
|||
LPWSAOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine);
|
||||
|
||||
# define WSAID_WSASENDMSG {0xa441e712,0x754f,0x43ca,{0x84,0xa7,0x0d,0xee,0x44,0xcf,0x60,0x6d}}
|
||||
# endif
|
||||
#endif
|
||||
#endif
|
||||
# endif // !WSAID_WSASENDMSG
|
||||
#endif // Q_OS_WIN
|
||||
|
||||
union qt_sockaddr {
|
||||
sockaddr a;
|
||||
|
|
@ -210,7 +208,7 @@ public:
|
|||
|
||||
QSocketNotifier *readNotifier, *writeNotifier, *exceptNotifier;
|
||||
|
||||
#if defined(Q_OS_WIN) && !defined(Q_OS_WINCE)
|
||||
#if defined(Q_OS_WIN)
|
||||
LPFN_WSASENDMSG sendmsg;
|
||||
LPFN_WSARECVMSG recvmsg;
|
||||
# endif
|
||||
|
|
|
|||
|
|
@ -387,7 +387,6 @@ bool QNativeSocketEnginePrivate::createNewSocket(QAbstractSocket::SocketType soc
|
|||
return false;
|
||||
}
|
||||
|
||||
#if !defined(Q_OS_WINCE)
|
||||
if (socketType == QAbstractSocket::UdpSocket) {
|
||||
// enable new behavior using
|
||||
// SIO_UDP_CONNRESET
|
||||
|
|
@ -414,7 +413,6 @@ bool QNativeSocketEnginePrivate::createNewSocket(QAbstractSocket::SocketType soc
|
|||
&sendmsgguid, sizeof(sendmsgguid),
|
||||
&sendmsg, sizeof(sendmsg), &bytesReturned, NULL, NULL) == SOCKET_ERROR)
|
||||
sendmsg = 0;
|
||||
#endif
|
||||
|
||||
socketDescriptor = socket;
|
||||
if (socket != INVALID_SOCKET) {
|
||||
|
|
@ -1078,7 +1076,6 @@ qint64 QNativeSocketEnginePrivate::nativeBytesAvailable() const
|
|||
|
||||
bool QNativeSocketEnginePrivate::nativeHasPendingDatagrams() const
|
||||
{
|
||||
#if !defined(Q_OS_WINCE)
|
||||
// Create a sockaddr struct and reset its port number.
|
||||
qt_sockaddr storage;
|
||||
QT_SOCKLEN_T storageSize = sizeof(storage);
|
||||
|
|
@ -1105,18 +1102,6 @@ bool QNativeSocketEnginePrivate::nativeHasPendingDatagrams() const
|
|||
result = true;
|
||||
}
|
||||
|
||||
#else // Q_OS_WINCE
|
||||
bool result = false;
|
||||
fd_set readS;
|
||||
FD_ZERO(&readS);
|
||||
FD_SET((SOCKET)socketDescriptor, &readS);
|
||||
timeval timeout;
|
||||
timeout.tv_sec = 0;
|
||||
timeout.tv_usec = 5000;
|
||||
int available = ::select(1, &readS, 0, 0, &timeout);
|
||||
result = available > 0;
|
||||
#endif
|
||||
|
||||
#if defined (QNATIVESOCKETENGINE_DEBUG)
|
||||
qDebug("QNativeSocketEnginePrivate::nativeHasPendingDatagrams() == %s",
|
||||
result ? "true" : "false");
|
||||
|
|
@ -1128,7 +1113,6 @@ bool QNativeSocketEnginePrivate::nativeHasPendingDatagrams() const
|
|||
qint64 QNativeSocketEnginePrivate::nativePendingDatagramSize() const
|
||||
{
|
||||
qint64 ret = -1;
|
||||
#if !defined(Q_OS_WINCE)
|
||||
int recvResult = 0;
|
||||
DWORD flags;
|
||||
DWORD bufferCount = 5;
|
||||
|
|
@ -1173,18 +1157,6 @@ qint64 QNativeSocketEnginePrivate::nativePendingDatagramSize() const
|
|||
if (buf)
|
||||
delete[] buf;
|
||||
|
||||
#else // Q_OS_WINCE
|
||||
DWORD size = -1;
|
||||
DWORD bytesReturned;
|
||||
int ioResult = WSAIoctl(socketDescriptor, FIONREAD, 0,0, &size, sizeof(size), &bytesReturned, 0, 0);
|
||||
if (ioResult == SOCKET_ERROR) {
|
||||
int err = WSAGetLastError();
|
||||
WS_ERROR_DEBUG(err);
|
||||
} else {
|
||||
ret = qint64(size);
|
||||
}
|
||||
#endif
|
||||
|
||||
#if defined (QNATIVESOCKETENGINE_DEBUG)
|
||||
qDebug("QNativeSocketEnginePrivate::nativePendingDatagramSize() == %li", ret);
|
||||
#endif
|
||||
|
|
@ -1192,12 +1164,6 @@ qint64 QNativeSocketEnginePrivate::nativePendingDatagramSize() const
|
|||
return ret;
|
||||
}
|
||||
|
||||
#ifdef Q_OS_WINCE
|
||||
// Windows CE has no support for sendmsg or recvmsg. We set it to null here to simplify the code below.
|
||||
static int (*const recvmsg)(...) = 0;
|
||||
static int (*const sendmsg)(...) = 0;
|
||||
#endif
|
||||
|
||||
qint64 QNativeSocketEnginePrivate::nativeReceiveDatagram(char *data, qint64 maxLength, QIpPacketHeader *header,
|
||||
QAbstractSocketEngine::PacketHeaderOptions options)
|
||||
{
|
||||
|
|
@ -1316,12 +1282,7 @@ qint64 QNativeSocketEnginePrivate::nativeSendDatagram(const char *data, qint64 l
|
|||
|
||||
memset(&msg, 0, sizeof(msg));
|
||||
memset(&aa, 0, sizeof(aa));
|
||||
#if !defined(Q_OS_WINCE)
|
||||
buf.buf = len ? (char*)data : 0;
|
||||
#else
|
||||
char tmp;
|
||||
buf.buf = len ? (char*)data : &tmp;
|
||||
#endif
|
||||
msg.lpBuffers = &buf;
|
||||
msg.dwBufferCount = 1;
|
||||
msg.name = &aa.a;
|
||||
|
|
@ -1482,9 +1443,6 @@ qint64 QNativeSocketEnginePrivate::nativeRead(char *data, qint64 maxLength)
|
|||
buf.len = maxLength;
|
||||
DWORD flags = 0;
|
||||
DWORD bytesRead = 0;
|
||||
#if defined(Q_OS_WINCE)
|
||||
WSASetLastError(0);
|
||||
#endif
|
||||
if (::WSARecv(socketDescriptor, &buf, 1, &bytesRead, &flags, 0,0) == SOCKET_ERROR) {
|
||||
int err = WSAGetLastError();
|
||||
WS_ERROR_DEBUG(err);
|
||||
|
|
@ -1598,11 +1556,7 @@ int QNativeSocketEnginePrivate::nativeSelect(int timeout,
|
|||
tv.tv_sec = timeout / 1000;
|
||||
tv.tv_usec = (timeout % 1000) * 1000;
|
||||
|
||||
#if !defined(Q_OS_WINCE)
|
||||
ret = select(socketDescriptor + 1, &fdread, &fdwrite, &fdexception, timeout < 0 ? 0 : &tv);
|
||||
#else
|
||||
ret = select(1, &fdread, &fdwrite, &fdexception, timeout < 0 ? 0 : &tv);
|
||||
#endif
|
||||
|
||||
//... but if it is actually set, pretend it did not happen
|
||||
if (ret > 0 && FD_ISSET((SOCKET)socketDescriptor, &fdexception))
|
||||
|
|
|
|||
|
|
@ -64,11 +64,7 @@ static const int MaxWriteBufferSize = 128*1024;
|
|||
//#define QSOCKS5SOCKETLAYER_DEBUG
|
||||
|
||||
#define MAX_DATA_DUMP 256
|
||||
#if !defined(Q_OS_WINCE)
|
||||
#define SOCKS5_BLOCKING_BIND_TIMEOUT 5000
|
||||
#else
|
||||
#define SOCKS5_BLOCKING_BIND_TIMEOUT 10000
|
||||
#endif
|
||||
|
||||
#define Q_INIT_CHECK(returnValue) do { \
|
||||
if (!d->data) { \
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ win32:!winrt:SOURCES += socket/qnativesocketengine_win.cpp \
|
|||
socket/qlocalsocket_win.cpp \
|
||||
socket/qlocalserver_win.cpp
|
||||
|
||||
win32:!wince:!winrt:LIBS_PRIVATE += -ladvapi32
|
||||
win32:!winrt:LIBS_PRIVATE += -ladvapi32
|
||||
|
||||
winrt {
|
||||
SOURCES += socket/qnativesocketengine_winrt.cpp \
|
||||
|
|
@ -54,15 +54,6 @@ winrt {
|
|||
DEFINES += QT_LOCALSOCKET_TCP
|
||||
}
|
||||
|
||||
wince {
|
||||
SOURCES -= socket/qlocalsocket_win.cpp \
|
||||
socket/qlocalserver_win.cpp
|
||||
SOURCES += socket/qlocalsocket_tcp.cpp \
|
||||
socket/qlocalserver_tcp.cpp
|
||||
|
||||
DEFINES += QT_LOCALSOCKET_TCP
|
||||
}
|
||||
|
||||
integrity: {
|
||||
SOURCES -= socket/qlocalsocket_unix.cpp \
|
||||
socket/qlocalserver_unix.cpp
|
||||
|
|
|
|||
|
|
@ -522,15 +522,9 @@ void QSslSocketPrivate::ensureCiphersAndCertsLoaded()
|
|||
#if defined(Q_OS_WIN)
|
||||
HINSTANCE hLib = LoadLibraryW(L"Crypt32");
|
||||
if (hLib) {
|
||||
#if defined(Q_OS_WINCE)
|
||||
ptrCertOpenSystemStoreW = (PtrCertOpenSystemStoreW)GetProcAddress(hLib, L"CertOpenStore");
|
||||
ptrCertFindCertificateInStore = (PtrCertFindCertificateInStore)GetProcAddress(hLib, L"CertFindCertificateInStore");
|
||||
ptrCertCloseStore = (PtrCertCloseStore)GetProcAddress(hLib, L"CertCloseStore");
|
||||
#else
|
||||
ptrCertOpenSystemStoreW = (PtrCertOpenSystemStoreW)GetProcAddress(hLib, "CertOpenSystemStoreW");
|
||||
ptrCertFindCertificateInStore = (PtrCertFindCertificateInStore)GetProcAddress(hLib, "CertFindCertificateInStore");
|
||||
ptrCertCloseStore = (PtrCertCloseStore)GetProcAddress(hLib, "CertCloseStore");
|
||||
#endif
|
||||
if (!ptrCertOpenSystemStoreW || !ptrCertFindCertificateInStore || !ptrCertCloseStore)
|
||||
qCWarning(lcSsl, "could not resolve symbols in crypt32 library"); // should never happen
|
||||
} else {
|
||||
|
|
@ -691,15 +685,7 @@ QList<QSslCertificate> QSslSocketPrivate::systemCaCertificates()
|
|||
#if defined(Q_OS_WIN)
|
||||
if (ptrCertOpenSystemStoreW && ptrCertFindCertificateInStore && ptrCertCloseStore) {
|
||||
HCERTSTORE hSystemStore;
|
||||
#if defined(Q_OS_WINCE)
|
||||
hSystemStore = ptrCertOpenSystemStoreW(CERT_STORE_PROV_SYSTEM_W,
|
||||
0,
|
||||
0,
|
||||
CERT_STORE_NO_CRYPT_RELEASE_FLAG|CERT_SYSTEM_STORE_CURRENT_USER,
|
||||
L"ROOT");
|
||||
#else
|
||||
hSystemStore = ptrCertOpenSystemStoreW(0, L"ROOT");
|
||||
#endif
|
||||
if(hSystemStore) {
|
||||
PCCERT_CONTEXT pc = NULL;
|
||||
while(1) {
|
||||
|
|
|
|||
|
|
@ -89,11 +89,7 @@ QT_BEGIN_NAMESPACE
|
|||
#endif
|
||||
|
||||
#if defined(Q_OS_WIN) && !defined(Q_OS_WINRT)
|
||||
#if defined(Q_OS_WINCE)
|
||||
typedef HCERTSTORE (WINAPI *PtrCertOpenSystemStoreW)(LPCSTR, DWORD, HCRYPTPROV_LEGACY, DWORD, const void*);
|
||||
#else
|
||||
typedef HCERTSTORE (WINAPI *PtrCertOpenSystemStoreW)(HCRYPTPROV_LEGACY, LPCWSTR);
|
||||
#endif
|
||||
typedef PCCERT_CONTEXT (WINAPI *PtrCertFindCertificateInStore)(HCERTSTORE, DWORD, DWORD, DWORD, const void*, PCCERT_CONTEXT);
|
||||
typedef BOOL (WINAPI *PtrCertCloseStore)(HCERTSTORE, DWORD);
|
||||
#endif // Q_OS_WIN && !Q_OS_WINRT
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ TEMPLATE = subdirs
|
|||
|
||||
#win32:SUBDIRS += nla
|
||||
win32:SUBDIRS += generic
|
||||
win32:!wince:!winrt: SUBDIRS += nativewifi
|
||||
win32:!winrt: SUBDIRS += nativewifi
|
||||
mac:contains(QT_CONFIG, corewlan):SUBDIRS += corewlan
|
||||
mac:SUBDIRS += generic
|
||||
android:!android-no-sdk:SUBDIRS += android
|
||||
|
|
|
|||
|
|
@ -50,17 +50,10 @@
|
|||
#include <QtCore/qdebug.h>
|
||||
#include <QtCore/private/qcoreapplication_p.h>
|
||||
|
||||
#if defined(Q_OS_WIN32) || defined(Q_OS_WINCE)
|
||||
#if defined(Q_OS_WIN32)
|
||||
#include "../platformdefs_win.h"
|
||||
#endif
|
||||
|
||||
#ifdef Q_OS_WINCE
|
||||
typedef ULONG NDIS_OID, *PNDIS_OID;
|
||||
# ifndef QT_NO_WINCE_NUIOUSER
|
||||
# include <nuiouser.h>
|
||||
# endif
|
||||
#endif // Q_OS_WINCE
|
||||
|
||||
#ifdef Q_OS_WINRT
|
||||
#include <qfunctions_winrt.h>
|
||||
|
||||
|
|
@ -92,36 +85,22 @@ QT_BEGIN_NAMESPACE
|
|||
#ifndef QT_NO_NETWORKINTERFACE
|
||||
static QNetworkConfiguration::BearerType qGetInterfaceType(const QString &interface)
|
||||
{
|
||||
#if defined(Q_OS_WIN32) || defined(Q_OS_WINCE)
|
||||
#if defined(Q_OS_WIN32)
|
||||
DWORD bytesWritten;
|
||||
NDIS_MEDIUM medium;
|
||||
NDIS_PHYSICAL_MEDIUM physicalMedium;
|
||||
|
||||
#if defined(Q_OS_WINCE) && !defined(QT_NO_WINCE_NUIOUSER)
|
||||
NDISUIO_QUERY_OID nicGetOid;
|
||||
HANDLE handle = CreateFile((PTCHAR)NDISUIO_DEVICE_NAME, 0,
|
||||
FILE_SHARE_READ, 0, OPEN_EXISTING, 0, 0);
|
||||
#else
|
||||
unsigned long oid;
|
||||
HANDLE handle = CreateFile((TCHAR *)QString::fromLatin1("\\\\.\\%1").arg(interface).utf16(), 0,
|
||||
FILE_SHARE_READ, 0, OPEN_EXISTING, 0, 0);
|
||||
#endif
|
||||
if (handle == INVALID_HANDLE_VALUE)
|
||||
return QNetworkConfiguration::BearerUnknown;
|
||||
|
||||
bytesWritten = 0;
|
||||
|
||||
#if defined(Q_OS_WINCE) && !defined(QT_NO_WINCE_NUIOUSER)
|
||||
ZeroMemory(&nicGetOid, sizeof(NDISUIO_QUERY_OID));
|
||||
nicGetOid.Oid = OID_GEN_MEDIA_SUPPORTED;
|
||||
nicGetOid.ptcDeviceName = (PTCHAR)interface.utf16();
|
||||
bool result = DeviceIoControl(handle, IOCTL_NDISUIO_QUERY_OID_VALUE, &nicGetOid, sizeof(nicGetOid),
|
||||
&nicGetOid, sizeof(nicGetOid), &bytesWritten, 0);
|
||||
#else
|
||||
oid = OID_GEN_MEDIA_SUPPORTED;
|
||||
bool result = DeviceIoControl(handle, IOCTL_NDIS_QUERY_GLOBAL_STATS, &oid, sizeof(oid),
|
||||
&medium, sizeof(medium), &bytesWritten, 0);
|
||||
#endif
|
||||
if (!result) {
|
||||
CloseHandle(handle);
|
||||
return QNetworkConfiguration::BearerUnknown;
|
||||
|
|
@ -129,22 +108,9 @@ static QNetworkConfiguration::BearerType qGetInterfaceType(const QString &interf
|
|||
|
||||
bytesWritten = 0;
|
||||
|
||||
#if defined(Q_OS_WINCE) && !defined(QT_NO_WINCE_NUIOUSER)
|
||||
medium = NDIS_MEDIUM( *(LPDWORD)nicGetOid.Data );
|
||||
|
||||
ZeroMemory(&nicGetOid, sizeof(NDISUIO_QUERY_OID));
|
||||
nicGetOid.Oid = OID_GEN_PHYSICAL_MEDIUM;
|
||||
nicGetOid.ptcDeviceName = (PTCHAR)interface.utf16();
|
||||
|
||||
result = DeviceIoControl(handle, IOCTL_NDISUIO_QUERY_OID_VALUE, &nicGetOid, sizeof(nicGetOid),
|
||||
&nicGetOid, sizeof(nicGetOid), &bytesWritten, 0);
|
||||
|
||||
physicalMedium = NDIS_PHYSICAL_MEDIUM( *(LPDWORD)nicGetOid.Data );
|
||||
#else
|
||||
oid = OID_GEN_PHYSICAL_MEDIUM;
|
||||
result = DeviceIoControl(handle, IOCTL_NDIS_QUERY_GLOBAL_STATS, &oid, sizeof(oid),
|
||||
&physicalMedium, sizeof(physicalMedium), &bytesWritten, 0);
|
||||
#endif
|
||||
|
||||
if (!result) {
|
||||
CloseHandle(handle);
|
||||
|
|
|
|||
|
|
@ -2,11 +2,7 @@ TARGET = qnlabearer
|
|||
|
||||
QT = core core-private network network-private
|
||||
|
||||
!wince* {
|
||||
LIBS += -lws2_32
|
||||
} else {
|
||||
LIBS += -lws2
|
||||
}
|
||||
LIBS += -lws2_32
|
||||
|
||||
HEADERS += qnlaengine.h \
|
||||
../platformdefs_win.h \
|
||||
|
|
|
|||
|
|
@ -4,10 +4,3 @@ SOURCES += tst_qftp.cpp
|
|||
|
||||
requires(contains(QT_CONFIG,private_tests))
|
||||
QT = core network network-private testlib
|
||||
|
||||
wince {
|
||||
addFiles.files = rfc3252.txt
|
||||
addFiles.path = .
|
||||
DEPLOYMENT += addFiles
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -276,14 +276,9 @@ void tst_QFtp::init()
|
|||
|
||||
inFileDirExistsFunction = false;
|
||||
|
||||
#if !defined(Q_OS_WINCE)
|
||||
srand(time(0));
|
||||
uniqueExtension = QString::number((quintptr)this) + QString::number(rand())
|
||||
+ QString::number((qulonglong)time(0));
|
||||
#else
|
||||
srand(0);
|
||||
uniqueExtension = QString::number((quintptr)this) + QString::number(rand()) + QLatin1Char('0');
|
||||
#endif
|
||||
}
|
||||
|
||||
void tst_QFtp::cleanup()
|
||||
|
|
@ -1352,11 +1347,7 @@ void tst_QFtp::abort_data()
|
|||
QTest::newRow( "get_fluke02" ) << QtNetworkSettings::serverName() << (uint)21 << QString("qtest/rfc3252") << QByteArray();
|
||||
|
||||
// Qt/CE test environment has too little memory for this test
|
||||
#if !defined(Q_OS_WINCE)
|
||||
QByteArray bigData( 10*1024*1024, 0 );
|
||||
#else
|
||||
QByteArray bigData( 1*1024*1024, 0 );
|
||||
#endif
|
||||
bigData.fill( 'B' );
|
||||
QTest::newRow( "put_fluke01" ) << QtNetworkSettings::serverName() << (uint)21 << QString("qtest/upload/abort_put") << bigData;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
TEMPLATE = subdirs
|
||||
|
||||
!winrt:!wince: SUBDIRS += echo
|
||||
!winrt:SUBDIRS += echo
|
||||
test.depends += $$SUBDIRS
|
||||
SUBDIRS += test
|
||||
|
|
|
|||
|
|
@ -4335,9 +4335,6 @@ void tst_QNetworkReply::ioPutToFileFromProcess()
|
|||
QSKIP("No qprocess support", SkipAll);
|
||||
#else
|
||||
|
||||
#if defined(Q_OS_WINCE)
|
||||
QSKIP("Currently no stdin/out supported for Windows CE");
|
||||
#else
|
||||
#ifdef Q_OS_WIN
|
||||
if (qstrcmp(QTest::currentDataTag(), "small") == 0)
|
||||
QSKIP("When passing a CR-LF-LF sequence through Windows stdio, it gets converted, "
|
||||
|
|
@ -4371,7 +4368,6 @@ void tst_QNetworkReply::ioPutToFileFromProcess()
|
|||
QCOMPARE(file.size(), qint64(data.size()));
|
||||
QByteArray contents = file.readAll();
|
||||
QCOMPARE(contents, data);
|
||||
#endif
|
||||
|
||||
#endif // QT_NO_PROCESS
|
||||
}
|
||||
|
|
@ -6577,12 +6573,7 @@ void tst_QNetworkReply::getFromHttpIntoBuffer2()
|
|||
QFETCH(bool, useDownloadBuffer);
|
||||
|
||||
// On my Linux Desktop the results are already visible with 128 kB, however we use this to have good results.
|
||||
#if defined(Q_OS_WINCE_WM)
|
||||
// Show some mercy to non-desktop platform/s
|
||||
enum {UploadSize = 4*1024*1024}; // 4 MB
|
||||
#else
|
||||
enum {UploadSize = 32*1024*1024}; // 32 MB
|
||||
#endif
|
||||
|
||||
GetFromHttpIntoBuffer2Server server(UploadSize, true, false);
|
||||
|
||||
|
|
|
|||
|
|
@ -5,10 +5,4 @@ SOURCES += tst_qhostaddress.cpp
|
|||
|
||||
QT = core network testlib
|
||||
|
||||
win32: {
|
||||
wince {
|
||||
LIBS += -lws2
|
||||
} else {
|
||||
LIBS += -lws2_32
|
||||
}
|
||||
}
|
||||
win32:LIBS += -lws2_32
|
||||
|
|
|
|||
|
|
@ -6,11 +6,7 @@ SOURCES += tst_qhostinfo.cpp
|
|||
requires(contains(QT_CONFIG,private_tests))
|
||||
QT = core-private network-private testlib
|
||||
|
||||
wince {
|
||||
LIBS += ws2.lib
|
||||
} else {
|
||||
win32:LIBS += -lws2_32
|
||||
}
|
||||
win32:LIBS += -lws2_32
|
||||
|
||||
# needed for getaddrinfo with official MinGW
|
||||
mingw:DEFINES += _WIN32_WINNT=0x0501
|
||||
|
|
|
|||
|
|
@ -66,11 +66,7 @@
|
|||
#include "private/qhostinfo_p.h"
|
||||
|
||||
#if !defined(QT_NO_GETADDRINFO)
|
||||
# if !defined(Q_OS_WINCE)
|
||||
# include <sys/types.h>
|
||||
# else
|
||||
# include <types.h>
|
||||
# endif
|
||||
# if defined(Q_OS_UNIX)
|
||||
# include <sys/socket.h>
|
||||
# endif
|
||||
|
|
@ -399,11 +395,7 @@ protected:
|
|||
void tst_QHostInfo::threadSafety()
|
||||
{
|
||||
const int nattempts = 5;
|
||||
#if defined(Q_OS_WINCE)
|
||||
const int runs = 10;
|
||||
#else
|
||||
const int runs = 100;
|
||||
#endif
|
||||
LookupThread thr[nattempts];
|
||||
for (int j = 0; j < runs; ++j) {
|
||||
for (int i = 0; i < nattempts; ++i)
|
||||
|
|
|
|||
|
|
@ -4,13 +4,7 @@ QNETWORK_SRC = $$QT_SOURCE_TREE/src/network
|
|||
|
||||
INCLUDEPATH += $$QNETWORK_SRC
|
||||
|
||||
win32 {
|
||||
wince {
|
||||
LIBS += -lws2
|
||||
} else {
|
||||
LIBS += -lws2_32
|
||||
}
|
||||
}
|
||||
win32:LIBS += -lws2_32
|
||||
|
||||
unix:contains(QT_CONFIG, reduce_exports) {
|
||||
SOURCES += $$QNETWORK_SRC/socket/qnativesocketengine_unix.cpp
|
||||
|
|
|
|||
|
|
@ -494,9 +494,6 @@ void tst_PlatformSocketEngine::readWriteBufferSize()
|
|||
qint64 bufferSize = device.receiveBufferSize();
|
||||
QVERIFY(bufferSize != -1);
|
||||
device.setReceiveBufferSize(bufferSize + 1);
|
||||
#if defined(Q_OS_WINCE)
|
||||
QEXPECT_FAIL(0, "Not supported by default on WinCE", Continue);
|
||||
#endif
|
||||
QVERIFY(device.receiveBufferSize() > bufferSize);
|
||||
|
||||
bufferSize = device.sendBufferSize();
|
||||
|
|
@ -649,7 +646,7 @@ void tst_PlatformSocketEngine::receiveUrgentData()
|
|||
QByteArray response;
|
||||
|
||||
// Native OOB data test doesn't work on HP-UX or WinCE
|
||||
#if !defined(Q_OS_HPUX) && !defined(Q_OS_WINCE)
|
||||
#if !defined(Q_OS_HPUX)
|
||||
// The server sends an urgent message
|
||||
msg = 'Q';
|
||||
QCOMPARE(int(::send(socketDescriptor, &msg, sizeof(msg), MSG_OOB)), 1);
|
||||
|
|
|
|||
|
|
@ -626,11 +626,7 @@ void tst_QHttpSocketEngine::downloadBigFile()
|
|||
QTime stopWatch;
|
||||
stopWatch.start();
|
||||
|
||||
#if defined(Q_OS_WINCE)
|
||||
QTestEventLoop::instance().enterLoop(240);
|
||||
#else
|
||||
QTestEventLoop::instance().enterLoop(60);
|
||||
#endif
|
||||
if (QTestEventLoop::instance().timeout())
|
||||
QFAIL("Network operation timed out");
|
||||
|
||||
|
|
|
|||
|
|
@ -2,13 +2,7 @@ CONFIG += testcase
|
|||
|
||||
DEFINES += QLOCALSERVER_DEBUG
|
||||
DEFINES += QLOCALSOCKET_DEBUG
|
||||
|
||||
wince* {
|
||||
DEFINES += QT_LOCALSOCKET_TCP
|
||||
DEFINES += SRCDIR=\\\"../\\\"
|
||||
} else {
|
||||
DEFINES += SRCDIR=\\\"$$PWD/../\\\"
|
||||
}
|
||||
DEFINES += SRCDIR=\\\"$$PWD/../\\\"
|
||||
|
||||
QT = core network testlib
|
||||
|
||||
|
|
|
|||
|
|
@ -756,10 +756,8 @@ void tst_QLocalSocket::threadedConnection_data()
|
|||
QTest::newRow("1 client") << 1;
|
||||
QTest::newRow("2 clients") << 2;
|
||||
QTest::newRow("5 clients") << 5;
|
||||
#ifndef Q_OS_WINCE
|
||||
QTest::newRow("10 clients") << 10;
|
||||
QTest::newRow("20 clients") << 20;
|
||||
#endif
|
||||
}
|
||||
|
||||
void tst_QLocalSocket::threadedConnection()
|
||||
|
|
|
|||
|
|
@ -785,11 +785,7 @@ void tst_QSocks5SocketEngine::downloadBigFile()
|
|||
QTime stopWatch;
|
||||
stopWatch.start();
|
||||
|
||||
#if !defined(Q_OS_WINCE)
|
||||
QTestEventLoop::instance().enterLoop(60);
|
||||
#else
|
||||
QTestEventLoop::instance().enterLoop(180);
|
||||
#endif
|
||||
if (QTestEventLoop::instance().timeout())
|
||||
QFAIL("Network operation timed out");
|
||||
|
||||
|
|
|
|||
|
|
@ -40,16 +40,8 @@ int main(int argc, char *argv[])
|
|||
return 1;
|
||||
}
|
||||
|
||||
#if defined(Q_OS_WINCE)
|
||||
QFile file(QLatin1String("/test_signal.txt"));
|
||||
file.open(QIODevice::WriteOnly);
|
||||
file.write("Listening\n");
|
||||
file.flush();
|
||||
file.close();
|
||||
#else
|
||||
printf("Listening\n");
|
||||
fflush(stdout);
|
||||
#endif
|
||||
|
||||
server.waitForNewConnection(5000);
|
||||
qFatal("Crash");
|
||||
|
|
|
|||
|
|
@ -1,16 +1,7 @@
|
|||
CONFIG += testcase
|
||||
SOURCES += ../tst_qtcpserver.cpp
|
||||
|
||||
win32: {
|
||||
wince {
|
||||
LIBS += -lws2
|
||||
crashApp.files = ../crashingServer/crashingServer.exe
|
||||
crashApp.path = crashingServer
|
||||
DEPLOYMENT += crashApp
|
||||
} else {
|
||||
LIBS += -lws2_32
|
||||
}
|
||||
}
|
||||
win32:LIBS += -lws2_32
|
||||
|
||||
TARGET = ../tst_qtcpserver
|
||||
|
||||
|
|
|
|||
|
|
@ -469,11 +469,7 @@ void tst_QTcpServer::waitForConnectionTest()
|
|||
ThreadConnector connector(findLocalIpSocket.localAddress(), server.serverPort());
|
||||
connector.start();
|
||||
|
||||
#if defined(Q_OS_WINCE)
|
||||
QVERIFY(server.waitForNewConnection(9000, &timeout));
|
||||
#else
|
||||
QVERIFY(server.waitForNewConnection(3000, &timeout));
|
||||
#endif
|
||||
QVERIFY(!timeout);
|
||||
}
|
||||
|
||||
|
|
@ -564,21 +560,6 @@ void tst_QTcpServer::addressReusable()
|
|||
QSKIP("No proxy support");
|
||||
#endif // QT_NO_NETWORKPROXY
|
||||
}
|
||||
#if defined(Q_OS_WINCE)
|
||||
QString signalName = QString::fromLatin1("/test_signal.txt");
|
||||
QFile::remove(signalName);
|
||||
// The crashingServer process will crash once it gets a connection.
|
||||
QProcess process;
|
||||
QString processExe = crashingServerDir + "/crashingServer";
|
||||
process.start(processExe);
|
||||
QVERIFY2(process.waitForStarted(), qPrintable(
|
||||
QString::fromLatin1("Could not start %1: %2").arg(processExe, process.errorString())));
|
||||
int waitCount = 5;
|
||||
while (waitCount-- && !QFile::exists(signalName))
|
||||
QTest::qWait(1000);
|
||||
QVERIFY(QFile::exists(signalName));
|
||||
QFile::remove(signalName);
|
||||
#else
|
||||
// The crashingServer process will crash once it gets a connection.
|
||||
QProcess process;
|
||||
QString processExe = crashingServerDir + "/crashingServer";
|
||||
|
|
@ -586,7 +567,6 @@ void tst_QTcpServer::addressReusable()
|
|||
QVERIFY2(process.waitForStarted(), qPrintable(
|
||||
QString::fromLatin1("Could not start %1: %2").arg(processExe, process.errorString())));
|
||||
QVERIFY(process.waitForReadyRead(5000));
|
||||
#endif
|
||||
|
||||
QTcpSocket socket;
|
||||
socket.connectToHost(QHostAddress::LocalHost, 49199);
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
TEMPLATE = subdirs
|
||||
|
||||
SUBDIRS = test
|
||||
!wince:!vxworks: SUBDIRS += stressTest
|
||||
!vxworks: SUBDIRS += stressTest
|
||||
|
||||
requires(contains(QT_CONFIG,private_tests))
|
||||
|
|
|
|||
|
|
@ -2,13 +2,7 @@ CONFIG += testcase
|
|||
|
||||
QT = core-private network-private testlib
|
||||
SOURCES += ../tst_qtcpsocket.cpp
|
||||
win32: {
|
||||
wince {
|
||||
LIBS += -lws2
|
||||
} else {
|
||||
LIBS += -lws2_32
|
||||
}
|
||||
}
|
||||
win32:LIBS += -lws2_32
|
||||
|
||||
TARGET = tst_qtcpsocket
|
||||
|
||||
|
|
|
|||
|
|
@ -15,12 +15,6 @@ win32 {
|
|||
DESTDIR = ../
|
||||
}
|
||||
|
||||
wince* {
|
||||
addApp.files = ../clientserver/clientserver.exe
|
||||
addApp.path = clientserver
|
||||
DEPLOYMENT += addApp
|
||||
}
|
||||
|
||||
TARGET = tst_qudpsocket
|
||||
|
||||
CONFIG+=insignificant_test # QTBUG-25367, QTBUG-25368
|
||||
|
|
|
|||
|
|
@ -434,13 +434,8 @@ void tst_QUdpSocket::ipv6Loop()
|
|||
|
||||
char peterBuffer[16*1024];
|
||||
char paulBuffer[16*1024];
|
||||
#if !defined(Q_OS_WINCE)
|
||||
QVERIFY(peter.waitForReadyRead(5000));
|
||||
QVERIFY(paul.waitForReadyRead(5000));
|
||||
#else
|
||||
QVERIFY(peter.waitForReadyRead(15000));
|
||||
QVERIFY(paul.waitForReadyRead(15000));
|
||||
#endif
|
||||
QVERIFY(peter.waitForReadyRead(5000));
|
||||
QVERIFY(paul.waitForReadyRead(5000));
|
||||
if (success) {
|
||||
QCOMPARE(peter.readDatagram(peterBuffer, sizeof(peterBuffer)), qint64(paulMessage.length()));
|
||||
QCOMPARE(paul.readDatagram(paulBuffer, sizeof(peterBuffer)), qint64(peterMessage.length()));
|
||||
|
|
@ -937,9 +932,6 @@ void tst_QUdpSocket::outOfProcessConnectedClientServerTest()
|
|||
#ifdef QT_NO_PROCESS
|
||||
QSKIP("No qprocess support", SkipAll);
|
||||
#else
|
||||
#if defined(Q_OS_WINCE)
|
||||
QSKIP("This test depends on reading data from QProcess (not supported on Qt/WinCE).");
|
||||
#endif
|
||||
QProcess serverProcess;
|
||||
serverProcess.start(QLatin1String("clientserver/clientserver server 1 1"),
|
||||
QIODevice::ReadWrite | QIODevice::Text);
|
||||
|
|
@ -1001,9 +993,6 @@ void tst_QUdpSocket::outOfProcessUnconnectedClientServerTest()
|
|||
#ifdef QT_NO_PROCESS
|
||||
QSKIP("No qprocess support", SkipAll);
|
||||
#else
|
||||
#if defined(Q_OS_WINCE)
|
||||
QSKIP("This test depends on reading data from QProcess (not supported on Qt/WinCE).");
|
||||
#endif
|
||||
QProcess serverProcess;
|
||||
serverProcess.start(QLatin1String("clientserver/clientserver server 1 1"),
|
||||
QIODevice::ReadWrite | QIODevice::Text);
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
CONFIG += testcase
|
||||
|
||||
SOURCES += tst_qsslcertificate.cpp
|
||||
!wince:win32:LIBS += -lws2_32
|
||||
win32:LIBS += -lws2_32
|
||||
QT = core network testlib
|
||||
|
||||
TARGET = tst_qsslcertificate
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
CONFIG += testcase
|
||||
|
||||
SOURCES += tst_qsslcipher.cpp
|
||||
win32:!wince: LIBS += -lws2_32
|
||||
win32:LIBS += -lws2_32
|
||||
QT = core network testlib
|
||||
|
||||
TARGET = tst_qsslcipher
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
CONFIG += testcase
|
||||
|
||||
SOURCES += tst_qsslellipticcurve.cpp
|
||||
win32:!wince: LIBS += -lws2_32
|
||||
win32:LIBS += -lws2_32
|
||||
QT = core network testlib
|
||||
|
||||
TARGET = tst_qsslellipticcurve
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
CONFIG += testcase
|
||||
|
||||
SOURCES += tst_qsslerror.cpp
|
||||
win32:!wince: LIBS += -lws2_32
|
||||
win32:LIBS += -lws2_32
|
||||
QT = core network testlib
|
||||
|
||||
TARGET = tst_qsslerror
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
CONFIG += testcase
|
||||
|
||||
SOURCES += tst_qsslkey.cpp
|
||||
win32:!wince: LIBS += -lws2_32
|
||||
win32:LIBS += -lws2_32
|
||||
QT = core network testlib
|
||||
contains(QT_CONFIG, private_tests) {
|
||||
QT += core-private network-private
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
CONFIG += testcase
|
||||
|
||||
SOURCES += tst_qsslsocket.cpp
|
||||
win32:!wince: LIBS += -lws2_32
|
||||
win32:LIBS += -lws2_32
|
||||
QT = core core-private network-private testlib
|
||||
|
||||
TARGET = tst_qsslsocket
|
||||
|
|
@ -20,14 +20,6 @@ contains(QT_CONFIG, openssl) | contains(QT_CONFIG, openssl-linked) {
|
|||
LIBS += $$OPENSSL_LIBS
|
||||
}
|
||||
|
||||
wince* {
|
||||
DEFINES += SRCDIR=\\\"./\\\"
|
||||
|
||||
certFiles.files = certs ssl.tar.gz
|
||||
certFiles.path = .
|
||||
DEPLOYMENT += certFiles
|
||||
} else {
|
||||
DEFINES += SRCDIR=\\\"$$PWD/\\\"
|
||||
}
|
||||
DEFINES += SRCDIR=\\\"$$PWD/\\\"
|
||||
|
||||
requires(contains(QT_CONFIG,private_tests))
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ CONFIG += testcase
|
|||
testcase.timeout = 300 # this test is slow
|
||||
|
||||
SOURCES += tst_qsslsocket_onDemandCertificates_member.cpp
|
||||
win32:!wince: LIBS += -lws2_32
|
||||
win32:LIBS += -lws2_32
|
||||
QT = core core-private network-private testlib
|
||||
|
||||
TARGET = tst_qsslsocket_onDemandCertificates_member
|
||||
|
|
@ -15,10 +15,6 @@ win32 {
|
|||
}
|
||||
}
|
||||
|
||||
wince* {
|
||||
DEFINES += SRCDIR=\\\"./\\\"
|
||||
} else {
|
||||
DEFINES += SRCDIR=\\\"$$PWD/\\\"
|
||||
}
|
||||
DEFINES += SRCDIR=\\\"$$PWD/\\\"
|
||||
|
||||
requires(contains(QT_CONFIG,private_tests))
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
CONFIG += testcase
|
||||
|
||||
SOURCES += tst_qsslsocket_onDemandCertificates_static.cpp
|
||||
win32:!wince: LIBS += -lws2_32
|
||||
win32:LIBS += -lws2_32
|
||||
QT = core core-private network-private testlib
|
||||
|
||||
TARGET = tst_qsslsocket_onDemandCertificates_static
|
||||
|
|
@ -14,10 +14,6 @@ win32 {
|
|||
}
|
||||
}
|
||||
|
||||
wince* {
|
||||
DEFINES += SRCDIR=\\\"./\\\"
|
||||
} else {
|
||||
DEFINES += SRCDIR=\\\"$$PWD/\\\"
|
||||
}
|
||||
DEFINES += SRCDIR=\\\"$$PWD/\\\"
|
||||
|
||||
requires(contains(QT_CONFIG,private_tests))
|
||||
|
|
|
|||
Loading…
Reference in New Issue