Francois Gouget
f43b549081
rpcrt4/tests: Remove an unneeded '#if 0' and fix the code so it compiles without warnings.
2007-01-08 12:08:03 +01:00
Francois Gouget
9f586f1b79
rpcrt4/tests: Replace some '#if 0's with 'if (0)'s, or remove them if not needed anymore.
...
Fix the code so it compiles without warnings.
2007-01-08 12:07:59 +01:00
Rob Shearman
98c87d0e70
rpcrt4: Pass WT_EXECUTELONGFUNCTION to QueueUserWorkItem since the
...
function being called can sometimes take a long time to return and we
almost always want a new thread to be created if there are no free
threads available.
2007-01-04 21:13:49 +01:00
Rob Shearman
776f81b3be
rpcrt4: A NULL IfSpec in RpcServerUnregisterIf should remove all interfaces, not crash.
2007-01-02 20:49:04 +01:00
Rob Shearman
48344f505b
rpcrt4: Free the resource allocated by InitializeSecurityContext when the connection is closed.
2006-12-18 11:45:51 +01:00
Dmitry Timoshkov
8c3fdfea42
rpcrt4: Make some data const.
2006-12-14 20:11:34 +01:00
Andrew Talbot
82a042d0df
rpcrt4/tests: Cast-qual warnings fix.
2006-12-14 12:51:10 +01:00
Marcus Meissner
f0280cbd1e
made functions and variables static in some testcases.
2006-12-11 12:18:29 +01:00
Francois Gouget
bb8e625b5b
Assorted spelling fixes.
2006-12-05 10:31:47 +01:00
Rob Shearman
06dd3efe2f
rpcrt4: RPC_C_AUTHN_LEVEL_NONE and RPC_C_AUTHN_LEVEL_DEFAULT are
...
handled at the binding level now instead of the message level, so
remove this special handling in RPCRT4_Send.
2006-11-22 11:37:15 +01:00
Rob Shearman
20c53a77e2
rpcrt4: Allow applications to specify authentication levels other than connect in RpcBindingSetAuthInfoA/W.
...
Map the default authentication level and service to sane values.
Don't create an RpcAuthInfo object if RPC_C_AUTHN_LEVEL_NONE is specified.
2006-11-22 11:37:08 +01:00
Rob Shearman
8bb10f1082
rpcrt4: Use SecInvalidateHandle and SecIsValidHandle for handling RpcConnection::ctx instead of setting/comparing the field to 0.
2006-11-15 11:25:57 +01:00
Rob Shearman
51dd6f9fb8
rpcrt4: Add support for signing, verifying, encrypting and decrypting RPC packets.
2006-11-15 11:25:53 +01:00
Rob Shearman
8e178b2d4f
rpcrt4: Fix a crash in RPCRT4_OpenBinding that can occur if
...
RPCRT4_CreateConnection fails by checking the return value from the
function and returning in this case.
2006-11-15 11:25:44 +01:00
Rob Shearman
079b6b074c
rpcrt4: Add a FIXME for unsupported client protocol sequences.
2006-11-15 11:25:35 +01:00
Rob Shearman
29a9abff8a
rpcrt4: Implement RpcServerUnregisterIf.
2006-11-13 14:32:41 +01:00
Rob Shearman
0b1cc1061b
rpcrt4: Convert the server interfaces list into a standard Wine list.
2006-11-13 14:32:24 +01:00
Rob Shearman
59a90143bf
rpcrt4: Fix a comment and move a WARN to where it really indicates a problem, rather than falsely triggering on normal conditions.
2006-11-13 14:32:21 +01:00
Francois Gouget
b2656633a6
Add some documentation headers to make winapi_check happy.
2006-11-13 13:01:15 +01:00
Francois Gouget
5962cf6e4f
rpcrt4: Add some stub documentation headers to make winapi_check happy.
...
Also fix some headers that identified internal APIs as external.
2006-11-13 13:00:53 +01:00
Andrew Talbot
fcb5bc6a1f
rpcrt4: Cast-qual warnings fix.
2006-11-13 12:47:00 +01:00
Andrew Talbot
b011a4eecd
rpcrt4: Cast-qual warnings fix.
2006-11-13 12:46:53 +01:00
Alexandre Julliard
e9d5e5503f
rpcrt4: Avoid a sizeof in a trace.
2006-11-10 14:29:55 +01:00
Rob Shearman
61967ff4be
rpcrt4: Create one protseq object per used protocol sequence, not per RpcServerUseProtseq* function call.
2006-11-10 13:50:17 +01:00
Rob Shearman
e1561038d0
rpcrt4: Don't store the endpoint in the protseq.
2006-11-10 13:50:12 +01:00
Rob Shearman
e0acc8d276
rpcrt4: Fix a crash in RpcServerUseProtseqEpExA/W when using an unsupported protseq.
2006-11-10 13:50:07 +01:00
Rob Shearman
44922d29db
rpcrt4: Correctly align the results in the RPC Bind Ack packet.
2006-11-10 13:50:03 +01:00
Michael Stefaniuc
de21efbadd
rpcrt4: Win64 printf format warning fixes.
2006-11-10 11:31:59 +01:00
Michael Stefaniuc
718f3c3505
rpcrt4: More "unsigned long" to "ULONG" changes in preparation of the removal of WINE_NO_LONG_AS_INT.
2006-11-10 11:31:45 +01:00
Michael Stefaniuc
32ec528405
rpcrt4: Bring the function definitions in sync with their declaration.
...
They got out of sync due to the unsigned long to ULONG changes in the headers.
2006-11-10 11:31:37 +01:00
Michael Stefaniuc
0628fb5098
rpcrt4/ndr_marshall.c: Bring the function definitions in sync with their declaration.
...
Those got out of sync due to the unsigned long to ULONG migration in the headers.
2006-11-10 11:31:26 +01:00
Alexandre Julliard
c0f9d369dc
rpcrt4/tests: Replace || by |.
2006-11-09 18:20:49 +01:00
Michael Stefaniuc
6bf97313bc
rpcrt4/tests: Fix the warnings introduced by the "unsigned long" to "ULONG" header changes.
2006-11-09 10:43:45 +01:00
Rob Shearman
0345a578b5
rpcrt4: For TCP endpoints, bind to all the address and ports that getaddrinfo for the machine.
2006-11-09 10:37:29 +01:00
Rob Shearman
034eaa1cad
rpcrt4: Use MaxCalls from the protseq when determining the backlog length to pass in to listen.
2006-11-09 10:37:15 +01:00
Rob Shearman
34577de406
rpcrt4: The error code RPC_S_SERVER_UNAVAILABLE doesn't make much sense on the server side
...
so replace it with some more appropriate endpoint error codes.
2006-11-09 10:37:07 +01:00
Rob Shearman
8b6c30ab4b
rpcrt4: Open the endpoint from the caller of RpcServerUseProtseq* instead of the protseq server thread.
...
This allows errors to be returned to the caller and to create more than
one connection for an endpoint.
2006-11-09 10:36:47 +01:00
Michael Stefaniuc
e9ae478c14
rpcproxy.h: Use LONG/ULONG for Win64 compatibility instead of long and unsigned long.
2006-11-08 15:51:25 +01:00
Michael Stefaniuc
4e2b462d4f
rpcrt4: For Win64 compatibility use a temp variable of the right type in ComputeVariance().
2006-11-08 15:51:22 +01:00
Francois Gouget
ea483682c5
secur32: sspi.h must not include wtypes.h.
2006-11-08 12:11:00 +01:00
Rob Shearman
3acc624219
rpcrt4: Remove unnecessary quotes in traces, as debugstr_a and debugstr_w add them instead.
2006-11-06 12:27:21 +01:00
Rob Shearman
85e28ae33d
rpcrt4: Set the AI_PASSIVE flag to getaddrinfo in rpcrt4_ip_tcp_open so that the bound-to port is connectable from other machines.
2006-10-31 21:42:32 +01:00
Rob Shearman
3ed6a201c2
rpcrt4: Improve the debug messages for failures in rpcrt4_ip_tcp_open.
2006-10-31 21:42:25 +01:00
Rob Shearman
828c733f72
rpcrt4: Set the socket back to blocking in rpcrt4_conn_tcp_handoff as
...
the read and write function for the protseq assume that syscalls will block.
2006-10-31 21:42:17 +01:00
Rob Shearman
e2e05d0493
rpcrt4: Fix a typo in rpcrt4_ip_tcp_open that would cause the function
...
to go into an infinite loop if getaddrinfo returned more than one entry.
2006-10-31 21:41:38 +01:00
Rob Shearman
593d0fbac0
rpcrt4: Convert the named pipe server code to look directly into the
...
connection to get at the wait handles, instead of using
get_connect_wait_handle which isn't generic enough to be used for
other protocols.
Remove the unneeded get_connect_wait_handle function from the connection
operations function list.
2006-10-31 21:41:29 +01:00
Rob Shearman
7553a8990c
rpcrt4: Eliminate the extra thread used for RPC over TCP/IP servers by adding socket-specific server protseq functions.
2006-10-31 21:41:07 +01:00
Rob Shearman
709b536f0c
rpcrt4: The allocation hint in request and response packets is just that - a hint.
...
It is not an error if the stub data exceeds this size, so reallocate the
buffer with the newly calculated size and continue.
2006-10-27 12:00:22 +02:00
Rob Shearman
fbe829cbb1
rpcrt4: Don't terminate the loop on the buffer becoming filled, but when we receive a packet with the RPC_FLG_LAST flag set.
...
This matches what is mentioned in the DCE/RPC specification.
2006-10-27 12:00:12 +02:00
Rob Shearman
28d3bd3e42
rpcrt4: Fix RPCRT4_Receive to accept authentication verifier data on any packets, not just bind packets.
2006-10-27 12:00:05 +02:00