Commit Graph

1433 Commits

Author SHA1 Message Date
Hans Leidekker f8450fae23 rpcrt4: Handle NULL binding in RpcBindingInqAuthClient{,Ex}.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-11-22 16:31:52 +01:00
Jacek Caban ad77b4c5fd rpcrt4: Initialize all rpc_server_registered_auth_info fields in RpcServerRegisterAuthInfoW.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-11-08 19:01:58 +01:00
Huw Davies eb3ceac1dd rpcrt4/tests: Register the proxies to fix a crash on Windows 8 and 10.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-11-03 19:44:13 +01:00
Huw Davies f4d598ae08 rpcrt4/tests: Extend the tests for NdrDllGetClassObject().
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-11-03 19:44:10 +01:00
Alexandre Julliard 38b57b30fe rpcrt4: Include ntstatus.h before headers that may need it.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-11-03 18:06:45 +01:00
Alexandre Julliard 7b0c2cdbcd rpcrt4: Remove noisy fixme.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-20 16:26:26 -07:00
Christoph von Wittich 01290cdc1f rpcrt4: Implement RpcBindingServerFromClient and populate NetworkAddr for each transport.
Add more thorough testing for this function.

Signed-off-by: Colin Finck <mail@colinfinck.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-19 09:44:01 -07:00
Jacek Caban 2f0de6a1bc rpcrt4: Use NtReadFile in rpcrt4_conn_np_read.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-07 18:08:02 +02:00
Huw Davies f53c320f04 rpcrt4/tests: Win 8 and 10 do not correctly unmarshal a ranged enum16.
In practice this bug is not observed since midl, unlike widl, does not
generate ranges in inline stub mode.  For interpreted stubs, where
midl does generate ranges, the [out] parameters are zero-initialised
by the runtime.

Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-07 00:34:25 +09:00
Huw Davies 76ddf58c44 rpcrt4/tests: Mark Win 8.1 behaviour of UuidCreateSequential() as broken.
Some versions of Win 8.1 provide a randomised node ID (with the
multicast bit set) but return S_OK instead of RPC_S_UUID_LOCAL_ONLY.
This is despite having access to a valid MAC address.

Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-02 11:27:13 +09:00
Huw Davies 225c43b812 rpcrt4/tests: Remove an unnecessary and confusing message.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-01 22:17:14 +09:00
Alexandre Julliard 8df5add2d7 rpcss: Make rpcss a proper service.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-31 22:22:59 +09:00
Jacek Caban ffe01b33f1 rpcrt4/tests: Don't load GetUserNameEx dynamically.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-30 11:43:22 +09:00
Colin Finck b59c53fbff rpcrt4: Add a test for RpcBindingServerFromClient (todo_wine).
Signed-off-by: Colin Finck <mail@colinfinck.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-22 12:47:18 +09:00
Nikolay Sivov 6ac3c09a76 rpcrt4/tests: Fix indentation warning on GCC 6.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-10 22:22:39 +09:00
Nikolay Sivov 858064abf6 rpcrt4: Added NdrAsyncServerCall stub.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-29 12:02:05 +09:00
Jacek Caban 3b6cb60ea6 rpcrt4: Added RpcServerRegisterAuthInfoW failure test.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-03 10:54:18 +09:00
Jacek Caban f3e5e76da9 rpcrt4: Moved AcquireCredentialHandle call to RPCRT4_ServerGetRegisteredAuthInfo.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-03 10:54:17 +09:00
Jacek Caban 6cdbde64ea rpcrt4: Moved EnumerateSecurityPackagesW call to helper function.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-03 10:54:17 +09:00
Jacek Caban a7b1e61fa6 rpcrt4: Forward RpcServerRegisterAuthInfoA to RpcServerRegisterAuthInfoW.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-03 10:54:17 +09:00
Jacek Caban 6141cc800c rpcrt4: Added RpcServerRegisterIf3 implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-18 15:16:12 +09:00
Austin English 591f632218 rpcrt4: Add a stub for RpcBindingServerFromClient.
Signed-off-by: Austin English <austinenglish@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-14 22:17:56 +09:00
Jacek Caban f3f07bdf35 rpcrt4: Added RpcMgmtIsServerListening tests.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-28 12:45:02 +09:00
Jacek Caban 41f93d8f59 rpcrt4: Added support for binding argument in RpcMgmtIsServerListening.
Based on patch by Andrew Eikum.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-28 12:45:01 +09:00
Jacek Caban 6c40b63d3e rpcrt4: Moved formatting pipe names to helper functions.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-28 12:45:01 +09:00
Piotr Caban 614afcefa3 rpcrt4: Free server side arguments with MustFree flag first so other arguments may be used to determine its size.
This also fixes a leak when both MustFree and ServerAllocSize flags are
specified.
2015-09-08 14:49:21 +09:00
Gerald Pfeifer e6ca322fb1 rpcrt4/tests: Cast to ULONGLONG instead of LONGLONG to avoid shift overflow. 2015-09-04 16:15:00 +09:00
André Hentschel ef783d62cc rpcrt4: Add ARM support. 2015-08-17 16:59:23 +09:00
Huw Davies 173ae68f0b rpcrt4: Procedures containing a range within a conformance have a larger correlation descriptor. 2015-07-13 22:11:42 +09:00
Huw Davies e8d1380aa7 rpcrt4: Use CorrDespIncrement to skip over the correlation descriptor. 2015-07-13 22:11:34 +09:00
Huw Davies a8f46c78ff rpcrt4: Add missing calls to NdrCorrelationInitialize/Free. 2015-07-13 22:11:27 +09:00
Huw Davies 76dc3b64ae rpcrt4: Set CorrDespIncrement to the size of the (non-range) /robust payload.
fHasNewCorrDesc is only set on older versions of Windows that don't
set CorrDespIncrement, but it can't hurt to continue to set it.
2015-07-13 22:11:17 +09:00
Huw Davies 6518b72889 rpcrt4: Initialize CorrDespIncrement to zero and mark the pre-Vista behaviour as broken. 2015-07-13 22:11:12 +09:00
Michael Müller ab82b446a0 rpcrt4: Fix arguments of HttpAddRequestHeaders. 2015-06-25 21:01:16 +09:00
Hans Leidekker 0877e4cbb2 rpcrt4: Remove a couple of unused assignments. 2015-05-21 17:53:40 +09:00
Hans Leidekker ab6361fbbf rpcrt4: Initialize the association UUID in RpcAssoc_Alloc. 2015-05-21 17:53:35 +09:00
Hans Leidekker 852721863a rpcrt4: Use InternetSetCookie to set the session cookie.
This ensures that the cookie is preserved when the server sets an additional cookie.
2015-05-21 17:53:30 +09:00
Marcus Meissner 7b9efb1f45 rpcrt4: Make sure we do not have *data allocated on error (Coverity). 2015-05-21 13:56:47 +09:00
Hans Leidekker f4c5940656 rpcrt4: Allow all HTTP read requests to be cancelled. 2015-05-14 00:06:57 +09:00
Hans Leidekker e34cb91399 rpcrt4: Also set the Content-Length header explicitly on the in pipe request. 2015-05-14 00:06:57 +09:00
Hans Leidekker 9002780015 rpcrt4: Use the Unicode version of InternetReadFileEx. 2015-05-14 00:06:56 +09:00
Nikolay Sivov 15ff762bd5 rpcrt4: Added missing marshalling calls for FC_INT3264/FC_UINT3264 types. 2015-05-07 22:29:22 +09:00
Josh DuBois 1f34f193b6 rpcrt4: Avoid movs between rcx, rdx and xmm registers.
Apple's version of as chokes on movs between rcx and rdx and the xmm
registers.
2015-05-06 20:45:41 +09:00
Huw Davies 9f2c668c99 rpcrt4/tests: Fix some tests on Win 8. 2015-04-24 14:29:28 +09:00
Michael Stefaniuc 0a8427dc15 rpcrt4: Don't open code CONTAINING_RECORD(). 2015-04-21 17:45:14 +09:00
Huw Davies b24ce98af3 rpcrt4/tests: Avoid a double-free.
Commit 4cf70b1418 was causing the tests to
crash.  The reason is due to a Wine bug in NdrPointerUnmarshall().
Windows returns the same pointer (which is later released in a call to
NdrPointerFree()), while Wine makes a copy which Valgrind correctly
spots is leaked.
2015-04-20 21:22:36 +09:00
Nikolay Sivov 4cf70b1418 rpcrt4/tests: Fix a minor leak (Valgrind). 2015-04-13 15:05:07 +09:00
Nikolay Sivov 73a68b065b rpcrt4: Fix RpcMgmtStopServerListening() return value when we're not listening. 2015-03-26 14:21:49 +09:00
Nikolay Sivov fd25d9aadb rpcrt4/tests: Use status definitions instead of numeric values. 2015-03-26 14:21:46 +09:00
Francois Gouget 13ad265b23 rpcrt4: Remove an unneeded NONAMELESSSTRUCT directive. 2015-03-19 14:05:59 +09:00
Nikolay Sivov e1d1057232 rpcrt4: Use a helper to skip conformance. 2015-03-10 15:09:53 +09:00
Nikolay Sivov 66c05a4597 rpcrt4: Export I_UuidCreate(). 2015-03-10 15:09:33 +09:00
Nikolay Sivov 15d7436a0d rpcrt4: Add all stubs to OLE marshalling stream. 2015-03-09 17:32:19 +09:00
Nikolay Sivov 71d663f1de rpcrt4: Return buffer size directly to avoid accessing implementation fields. 2015-03-09 17:32:14 +09:00
Nikolay Sivov e7a608a4e3 rpcrt4: Handle memory allocation error when creating OLE stream instance. 2015-03-09 17:32:09 +09:00
Nikolay Sivov ecda8fd501 rpcrt4: Added inline helper to test for Oicf stub descriptions. 2015-03-06 20:40:44 +09:00
Nikolay Sivov 2b40f9b01e rpcrt4: Implement RPC_FC_CALLBACK_HANDLE handle type for NdrClientCall2(). 2015-03-06 12:57:03 +09:00
Nikolay Sivov 36bc8563cf rpcrt4: Implement MesEncodeDynBufferHandleCreate(). 2015-03-04 21:50:38 +09:00
Nikolay Sivov d240fdff18 rpcrt4: Implement MesBufferHandleReset(). 2015-03-04 21:50:37 +09:00
Nikolay Sivov 37dd441587 rpcrt4: Fix argument check in MesEncodeFixedBufferHandleCreate(). 2015-03-03 23:16:42 +09:00
Nikolay Sivov 0810db96fa rpcrt4: Use RPC_* error code names. 2015-03-03 20:32:06 +09:00
Austin English ecdaf568b5 rpcrt4: Add a stub for I_RpcBindingInqLocalClientPID. 2015-02-10 16:41:37 +09:00
Hans Leidekker 49a2fb660b rpcrt4: Make sure the Content-Length header is set correctly when preparing the out pipe. 2014-12-19 22:36:17 +01:00
Amine Khaldi 19254eb438 rpcrt4/tests: Remove unused if3_table and if4_table (Clang). 2014-10-24 19:58:05 +09:00
Eric Kohl 23981241c1 rpcrt4: Fix buffer size calculation for arrays with embedded pointers. 2014-09-18 18:40:21 +02:00
Thomas Faber 6a30cde7b0 rpcrt4: Correctly check for in-buffer memory in PointerFree. 2014-08-11 23:55:23 +02:00
Marcus Meissner 906c341781 rpcrt4: Fixed memory leak on error exit (Coverity). 2014-07-15 15:30:44 +02:00
Austin English b4e006720a rpcrt4: Add a stub for RpcSsDontSerializeContext. 2014-07-08 10:25:45 +02:00
Thomas Faber 8fe759dfae rpcrt4: Do not omit mandatory argument to VirtualProtect. 2014-06-23 10:08:13 +02:00
Bruno Jesus d4278ce0ed rpcrt4: Take care of EINTR on send/recv. 2014-06-12 18:05:03 +02:00
Dmitry Timoshkov 05aab53f38 rpcrt4/tests: Add a couple of tests for marshalling an array of strings. 2014-04-02 15:46:51 +02:00
Alexandre Julliard cf0e96c6d0 configure: Rename substituted variables to a standard _CFLAGS and _LIBS format. 2014-01-30 14:51:33 +01:00
Frédéric Delanoy b553f54323 rpcrt4/tests: Use common wine_dbgstr_guid implementation from test.h. 2014-01-30 12:42:55 +01:00
Alexandre Julliard 99ef0d6ff0 makefiles: Get rid of the MAKE_TEST_RULES variable. 2014-01-02 12:13:16 +01:00
Alexandre Julliard 5e7416e5c8 makefiles: Get rid of the MAKE_DLL_RULES variable. 2014-01-02 12:08:18 +01:00
Alexandre Julliard d08ff3ff19 makefiles: Use a single variable for all types of idl files. 2013-12-31 18:15:17 +01:00
Frédéric Delanoy 44c1ba9f9e rpcrt4: Constify a character string. 2013-12-18 11:39:29 +01:00
Frédéric Delanoy 47ed171aac rpcrt4: Use BOOL type where appropriate. 2013-12-03 12:40:19 +01:00
Jacek Caban 06246aff90 rpcrt4: Compile tests with -D__WINESRC__. 2013-11-08 16:29:43 +01:00
Alexandre Julliard c3a48aab20 makefiles: Add makedep pragmas for client and server idl files. 2013-11-05 20:38:18 +01:00
Alexandre Julliard 55e44092bd makefiles: Remove useless definitions of COM_NO_WINDOWS_H. 2013-10-14 16:05:31 +02:00
Michael Stefaniuc 0e681027a2 tests: Compile the tests by default with -D__WINESRC__. 2013-10-02 11:04:02 +02:00
Frédéric Delanoy c91f39055e rpcrt4: Use BOOL type where appropriate. 2013-10-01 10:50:46 +02:00
Hans Leidekker 057c98323e rpcrt4: Don't try to decode the authorization value in the first leg. 2013-09-11 16:10:05 +02:00
Hans Leidekker 6f2c4bac58 rpcrt4: Don't remove the authorization header if the scheme is Basic. 2013-09-11 16:10:01 +02:00
Hans Leidekker 9ea95f4105 rpcrt4: Add support for NTLM and Negotiate. 2013-09-05 13:26:15 +02:00
Marcus Meissner d138a1e43d rpcrt4: Free url in error paths (Coverity). 2013-09-02 18:03:49 +02:00
Hans Leidekker 0b900f2fd4 rpcrt4: Only accept status code HTTP_STATUS_OK. 2013-08-28 16:14:36 +02:00
Hans Leidekker 35468903cd rpcrt4: Don't follow HTTP redirects. 2013-08-28 16:14:36 +02:00
Hans Leidekker 9d213312f1 rpcrt4: Remove an unneeded parameter from RPCRT4_BuildHttpConnectHeader. 2013-08-28 16:14:36 +02:00
Hans Leidekker a2f6e92acd rpcrt4: Add support for session cookies. 2013-08-28 16:14:36 +02:00
Hans Leidekker d5b2c8e943 rpcrt4: Try to authorize with the first HTTP request instead of waiting for a challenge. 2013-08-20 13:01:28 +02:00
Hans Leidekker 1cef6a2322 rpcrt4: Trace the first authentication scheme in RpcBindingSetAuthInfoExA/W. 2013-08-20 13:01:11 +02:00
Hans Leidekker 1e3186c6c7 rpcrt4: Include authentication schemes in the quality of service match. 2013-08-20 13:01:07 +02:00
Hans Leidekker 4557e50575 rpcrt4: Accept NULL server principal name in RpcBindingSetAuthInfoExA. 2013-08-20 13:01:04 +02:00
Hans Leidekker 30c00ea16d rpcrt4: Specify INTERNET_FLAG_NO_CACHE_WRITE for the HTTP transport pipes. 2013-05-31 16:39:31 +02:00
Hans Leidekker 9967aed09d rpcrt4: Use the right port for https connections. 2013-03-25 16:27:17 +01:00
Andrew Talbot 49992c3a5e rpcrt4: Avoid signed-unsigned integer comparisons. 2013-02-26 11:26:58 +01:00
Hans Leidekker 164ddbca8c rpcrt4: Accept HTTP idle packets while waiting for the second prepare header. 2013-02-21 18:02:40 +01:00
Alexandre Julliard 38e8f6d83f rpcrt4/tests: Define the required Windows version before including anything. 2013-02-18 14:51:05 +01:00