|
ReactOS 0.4.16-dev-1946-g52006dd
|
#include <stdarg.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include "windef.h"#include "winbase.h"#include "winerror.h"#include "winuser.h"#include "rpc.h"#include "rpcndr.h"#include "rpcdcep.h"#include "wine/debug.h"#include "rpc_binding.h"#include "rpc_defs.h"#include "rpc_message.h"#include "rpc_assoc.h"#include "ncastatus.h"
Go to the source code of this file.
Macros | |
| #define | AUTH_ALIGNMENT 16 |
| #define | ROUND_UP_AMOUNT(value, alignment) (((alignment) - (((value) % (alignment)))) % (alignment)) |
| #define | ROUND_UP(value, alignment) (((value) + ((alignment) - 1)) & ~((alignment)-1)) |
| #define | WRITE_HTTP_PAYLOAD_FIELD_UINT32(payload, type, value) |
| #define | WRITE_HTTP_PAYLOAD_FIELD_UUID(payload, type, uuid) |
| #define | WRITE_HTTP_PAYLOAD_FIELD_FLOW_CONTROL(payload, bytes_transmitted, flow_control_increment, uuid) |
| #define | READ_HTTP_PAYLOAD_FIELD_TYPE(data) *(ULONG *)(data) |
| #define | GET_HTTP_PAYLOAD_FIELD_DATA(data) ((data) + sizeof(ULONG)) |
| #define AUTH_ALIGNMENT 16 |
Definition at line 49 of file rpc_message.c.
Definition at line 559 of file rpc_message.c.
Definition at line 558 of file rpc_message.c.
Definition at line 54 of file rpc_message.c.
| #define ROUND_UP_AMOUNT | ( | value, | |
| alignment | |||
| ) | (((alignment) - (((value) % (alignment)))) % (alignment)) |
Definition at line 52 of file rpc_message.c.
| #define WRITE_HTTP_PAYLOAD_FIELD_FLOW_CONTROL | ( | payload, | |
| bytes_transmitted, | |||
| flow_control_increment, | |||
| uuid | |||
| ) |
Definition at line 333 of file rpc_message.c.
Definition at line 317 of file rpc_message.c.
Definition at line 1715 of file rpc_message.c.
Referenced by async_notifier_proc().
Definition at line 1721 of file rpc_message.c.
Referenced by I_RpcSend().
| RPC_STATUS WINAPI I_RpcAsyncAbortCall | ( | PRPC_ASYNC_STATE | pAsync, |
| ULONG | ExceptionCode | ||
| ) |
Definition at line 1973 of file rpc_message.c.
| RPC_STATUS WINAPI I_RpcAsyncSetHandle | ( | PRPC_MESSAGE | pMsg, |
| PRPC_ASYNC_STATE | pAsync | ||
| ) |
Definition at line 1945 of file rpc_message.c.
Referenced by do_ndr_async_client_call().
| RPC_STATUS WINAPI I_RpcFreeBuffer | ( | PRPC_MESSAGE | pMsg | ) |
Definition at line 1692 of file rpc_message.c.
Referenced by ClientRpcChannelBuffer_FreeBuffer(), NdrFreeBuffer(), and ServerRpcChannelBuffer_FreeBuffer().
| RPC_STATUS WINAPI I_RpcGetBuffer | ( | PRPC_MESSAGE | pMsg | ) |
Definition at line 1634 of file rpc_message.c.
Referenced by ClientRpcChannelBuffer_GetBuffer(), hello_CtxClose(), hello_CtxOpen(), NdrGetBuffer(), NdrpCompleteAsyncServerCall(), NdrStubCall2(), and ServerRpcChannelBuffer_GetBuffer().
| RPC_STATUS WINAPI I_RpcNegotiateTransferSyntax | ( | PRPC_MESSAGE | pMsg | ) |
Definition at line 1570 of file rpc_message.c.
Referenced by I_RpcGetBuffer().
|
static |
Definition at line 1668 of file rpc_message.c.
Referenced by RPCRT4_ReceiveWithAuth().
| RPC_STATUS WINAPI I_RpcReceive | ( | PRPC_MESSAGE | pMsg | ) |
Definition at line 1853 of file rpc_message.c.
Referenced by I_RpcSendReceive(), and NdrpCompleteAsyncClientCall().
| RPC_STATUS WINAPI I_RpcSend | ( | PRPC_MESSAGE | pMsg | ) |
Definition at line 1786 of file rpc_message.c.
Referenced by do_ndr_async_client_call(), and I_RpcSendReceive().
| RPC_STATUS WINAPI I_RpcSendReceive | ( | PRPC_MESSAGE | pMsg | ) |
Definition at line 1914 of file rpc_message.c.
Referenced by NdrSendReceive(), and rpc_sendreceive_thread().
|
inlinestatic |
Definition at line 1833 of file rpc_message.c.
Referenced by I_RpcReceive().
|
static |
Definition at line 94 of file rpc_message.c.
Referenced by RPCRT4_ReceiveWithAuth(), and RPCRT4_Send().
Definition at line 81 of file rpc_message.c.
Referenced by RPCRT4_default_secure_packet(), and RPCRT4_SendWithAuth().
| NCA_STATUS RPC2NCA_STATUS | ( | RPC_STATUS | status | ) |
Definition at line 404 of file rpc_message.c.
Referenced by process_request_packet().
Definition at line 215 of file rpc_message.c.
Referenced by RPCRT4_ClientConnectionAuth().
| RpcPktHdr * RPCRT4_BuildBindAckHeader | ( | ULONG | DataRepresentation, |
| unsigned short | MaxTransmissionSize, | ||
| unsigned short | MaxReceiveSize, | ||
| ULONG | AssocGroupId, | ||
| LPCSTR | ServerAddress, | ||
| unsigned char | ResultCount, | ||
| const RpcResult * | Results | ||
| ) |
Definition at line 254 of file rpc_message.c.
Referenced by process_bind_packet_no_send().
| RpcPktHdr * RPCRT4_BuildBindHeader | ( | ULONG | DataRepresentation, |
| unsigned short | MaxTransmissionSize, | ||
| unsigned short | MaxReceiveSize, | ||
| ULONG | AssocGroupId, | ||
| const RPC_SYNTAX_IDENTIFIER * | AbstractId, | ||
| const RPC_SYNTAX_IDENTIFIER * | TransferId | ||
| ) |
Definition at line 186 of file rpc_message.c.
Referenced by RpcAssoc_BindConnection().
| RpcPktHdr * RPCRT4_BuildBindNackHeader | ( | ULONG | DataRepresentation, |
| unsigned char | RpcVersion, | ||
| unsigned char | RpcVersionMinor, | ||
| unsigned short | RejectReason | ||
| ) |
Definition at line 229 of file rpc_message.c.
Referenced by handle_bind_error().
|
static |
Definition at line 109 of file rpc_message.c.
Referenced by RPCRT4_BuildAuthHeader(), RPCRT4_BuildBindAckHeader(), RPCRT4_BuildBindHeader(), RPCRT4_BuildBindNackHeader(), RPCRT4_BuildFaultHeader(), RPCRT4_BuildHttpHeader(), RPCRT4_BuildRequestHeader(), and RPCRT4_BuildResponseHeader().
| RpcPktHdr * RPCRT4_BuildFaultHeader | ( | ULONG | DataRepresentation, |
| RPC_STATUS | Status | ||
| ) |
Definition at line 170 of file rpc_message.c.
Referenced by process_request_packet().
| RpcPktHdr * RPCRT4_BuildHttpConnectHeader | ( | int | out_pipe, |
| const UUID * | connection_uuid, | ||
| const UUID * | pipe_uuid, | ||
| const UUID * | association_uuid | ||
| ) |
Definition at line 345 of file rpc_message.c.
Referenced by rpcrt4_http_prepare_in_pipe(), and rpcrt4_http_prepare_out_pipe().
| RpcPktHdr * RPCRT4_BuildHttpFlowControlHeader | ( | BOOL | server, |
| ULONG | bytes_transmitted, | ||
| ULONG | flow_control_increment, | ||
| const UUID * | pipe_uuid | ||
| ) |
Definition at line 385 of file rpc_message.c.
Referenced by rpcrt4_ncacn_http_receive_fragment().
| RpcPktHdr * RPCRT4_BuildHttpHeader | ( | ULONG | DataRepresentation, |
| unsigned short | flags, | ||
| unsigned short | num_data_items, | ||
| unsigned int | payload_size | ||
| ) |
Definition at line 292 of file rpc_message.c.
Referenced by RPCRT4_BuildHttpConnectHeader(), RPCRT4_BuildHttpFlowControlHeader(), and rpcrt4_http_keep_connection_active_timer_proc().
|
static |
Definition at line 125 of file rpc_message.c.
Referenced by I_RpcSend().
Definition at line 154 of file rpc_message.c.
Referenced by process_request_packet().
| RPC_STATUS RPCRT4_ClientConnectionAuth | ( | RpcConnection * | conn, |
| BYTE * | challenge, | ||
| ULONG | count | ||
| ) |
Definition at line 988 of file rpc_message.c.
Referenced by RpcAssoc_BindConnection().
| RPC_STATUS RPCRT4_default_authorize | ( | RpcConnection * | conn, |
| BOOL | first_time, | ||
| unsigned char * | in_buffer, | ||
| unsigned int | in_size, | ||
| unsigned char * | out_buffer, | ||
| unsigned int * | out_size | ||
| ) |
Definition at line 868 of file rpc_message.c.
| RPC_STATUS RPCRT4_default_impersonate_client | ( | RpcConnection * | conn | ) |
Definition at line 1127 of file rpc_message.c.
Referenced by rpcrt4_conn_np_impersonate_client().
| RPC_STATUS RPCRT4_default_inquire_auth_client | ( | RpcConnection * | conn, |
| RPC_AUTHZ_HANDLE * | privs, | ||
| RPC_WSTR * | server_princ_name, | ||
| ULONG * | authn_level, | ||
| ULONG * | authn_svc, | ||
| ULONG * | authz_svc, | ||
| ULONG | flags | ||
| ) |
Definition at line 1185 of file rpc_message.c.
| BOOL RPCRT4_default_is_authorized | ( | RpcConnection * | Connection | ) |
Definition at line 1118 of file rpc_message.c.
|
static |
Definition at line 1284 of file rpc_message.c.
Referenced by RPCRT4_receive_fragment().
| RPC_STATUS RPCRT4_default_revert_to_self | ( | RpcConnection * | conn | ) |
Definition at line 1155 of file rpc_message.c.
Referenced by rpcrt4_conn_np_revert_to_self().
| RPC_STATUS RPCRT4_default_secure_packet | ( | RpcConnection * | Connection, |
| enum secure_packet_direction | dir, | ||
| RpcPktHdr * | hdr, | ||
| unsigned int | hdr_size, | ||
| unsigned char * | stub_data, | ||
| unsigned int | stub_data_size, | ||
| RpcAuthVerifier * | auth_hdr, | ||
| unsigned char * | auth_value, | ||
| unsigned int | auth_value_size | ||
| ) |
Definition at line 678 of file rpc_message.c.
Definition at line 58 of file rpc_message.c.
Referenced by RPCRT4_default_receive_fragment(), rpcrt4_ncacn_http_receive_fragment(), RPCRT4_ReceiveWithAuth(), and RPCRT4_ValidateCommonHeader().
Definition at line 479 of file rpc_message.c.
Referenced by rpcrt4_http_read_http_packet(), and rpcrt4_ncacn_http_receive_fragment().
Definition at line 531 of file rpc_message.c.
Referenced by RPCRT4_ParseHttpFlowControlHeader(), and RPCRT4_ParseHttpPrepareHeader2().
| RPC_STATUS RPCRT4_ParseHttpFlowControlHeader | ( | RpcPktHdr * | header, |
| unsigned char * | data, | ||
| BOOL | server, | ||
| ULONG * | bytes_transmitted, | ||
| ULONG * | flow_control_increment, | ||
| UUID * | pipe_uuid | ||
| ) |
Definition at line 633 of file rpc_message.c.
Referenced by rpcrt4_ncacn_http_receive_fragment().
| RPC_STATUS RPCRT4_ParseHttpPrepareHeader1 | ( | RpcPktHdr * | header, |
| unsigned char * | data, | ||
| ULONG * | field1 | ||
| ) |
Definition at line 562 of file rpc_message.c.
Referenced by rpcrt4_http_prepare_out_pipe().
| RPC_STATUS RPCRT4_ParseHttpPrepareHeader2 | ( | RpcPktHdr * | header, |
| unsigned char * | data, | ||
| ULONG * | field1, | ||
| ULONG * | bytes_until_next_packet, | ||
| ULONG * | field3 | ||
| ) |
Definition at line 587 of file rpc_message.c.
Referenced by rpcrt4_http_prepare_out_pipe().
|
static |
Definition at line 1550 of file rpc_message.c.
Referenced by I_RpcReceive().
|
static |
Definition at line 1358 of file rpc_message.c.
Referenced by RPCRT4_ReceiveWithAuth().
| RPC_STATUS RPCRT4_ReceiveWithAuth | ( | RpcConnection * | Connection, |
| RpcPktHdr ** | Header, | ||
| PRPC_MESSAGE | pMsg, | ||
| unsigned char ** | auth_data_out, | ||
| ULONG * | auth_length_out | ||
| ) |
Definition at line 1372 of file rpc_message.c.
Referenced by RpcAssoc_BindConnection(), RPCRT4_io_thread(), and RPCRT4_Receive().
| RPC_STATUS RPCRT4_Send | ( | RpcConnection * | Connection, |
| RpcPktHdr * | Header, | ||
| void * | Buffer, | ||
| unsigned int | BufferLength | ||
| ) |
Definition at line 1219 of file rpc_message.c.
Referenced by I_RpcSend(), process_request_packet(), and RpcAssoc_BindConnection().
| RPC_STATUS RPCRT4_SendWithAuth | ( | RpcConnection * | Connection, |
| RpcPktHdr * | Header, | ||
| void * | Buffer, | ||
| unsigned int | BufferLength, | ||
| const void * | Auth, | ||
| unsigned int | AuthLength | ||
| ) |
Definition at line 757 of file rpc_message.c.
Referenced by process_bind_packet(), RPCRT4_ClientConnectionAuth(), and RPCRT4_Send().
| RPC_STATUS RPCRT4_ServerConnectionAuth | ( | RpcConnection * | conn, |
| BOOL | start, | ||
| RpcAuthVerifier * | auth_data_in, | ||
| ULONG | auth_length_in, | ||
| unsigned char ** | auth_data_out, | ||
| ULONG * | auth_length_out | ||
| ) |
Definition at line 1021 of file rpc_message.c.
Referenced by process_auth3_packet(), and process_bind_packet_no_send().
| RPC_STATUS RPCRT4_ValidateCommonHeader | ( | const RpcPktCommonHdr * | hdr | ) |
Definition at line 1251 of file rpc_message.c.
Referenced by RPCRT4_default_receive_fragment(), and rpcrt4_ncacn_http_receive_fragment().
| WINE_DEFAULT_DEBUG_CHANNEL | ( | rpc | ) |