ReactOS 0.4.16-dev-753-g705a985
|
#include <stdarg.h>
#include <stdio.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 48 of file rpc_message.c.
Definition at line 563 of file rpc_message.c.
Definition at line 562 of file rpc_message.c.
Definition at line 53 of file rpc_message.c.
#define ROUND_UP_AMOUNT | ( | value, | |
alignment | |||
) | (((alignment) - (((value) % (alignment)))) % (alignment)) |
Definition at line 51 of file rpc_message.c.
#define WRITE_HTTP_PAYLOAD_FIELD_FLOW_CONTROL | ( | payload, | |
bytes_transmitted, | |||
flow_control_increment, | |||
uuid | |||
) |
Definition at line 332 of file rpc_message.c.
Definition at line 316 of file rpc_message.c.
Definition at line 1719 of file rpc_message.c.
Referenced by async_notifier_proc().
Definition at line 1725 of file rpc_message.c.
Referenced by I_RpcSend().
RPC_STATUS WINAPI I_RpcAsyncAbortCall | ( | PRPC_ASYNC_STATE | pAsync, |
ULONG | ExceptionCode | ||
) |
Definition at line 1977 of file rpc_message.c.
RPC_STATUS WINAPI I_RpcAsyncSetHandle | ( | PRPC_MESSAGE | pMsg, |
PRPC_ASYNC_STATE | pAsync | ||
) |
Definition at line 1949 of file rpc_message.c.
Referenced by do_ndr_async_client_call().
RPC_STATUS WINAPI I_RpcFreeBuffer | ( | PRPC_MESSAGE | pMsg | ) |
Definition at line 1696 of file rpc_message.c.
Referenced by ClientRpcChannelBuffer_FreeBuffer(), NdrFreeBuffer(), and ServerRpcChannelBuffer_FreeBuffer().
RPC_STATUS WINAPI I_RpcGetBuffer | ( | PRPC_MESSAGE | pMsg | ) |
Definition at line 1638 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 1574 of file rpc_message.c.
Referenced by I_RpcGetBuffer().
|
static |
Definition at line 1672 of file rpc_message.c.
Referenced by RPCRT4_ReceiveWithAuth().
RPC_STATUS WINAPI I_RpcReceive | ( | PRPC_MESSAGE | pMsg | ) |
Definition at line 1857 of file rpc_message.c.
Referenced by I_RpcSendReceive(), and NdrpCompleteAsyncClientCall().
RPC_STATUS WINAPI I_RpcSend | ( | PRPC_MESSAGE | pMsg | ) |
Definition at line 1790 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 1918 of file rpc_message.c.
Referenced by NdrSendReceive(), and rpc_sendreceive_thread().
|
inlinestatic |
Definition at line 1837 of file rpc_message.c.
Referenced by I_RpcReceive().
|
static |
Definition at line 93 of file rpc_message.c.
Referenced by RPCRT4_ReceiveWithAuth(), and RPCRT4_Send().
Definition at line 80 of file rpc_message.c.
Referenced by RPCRT4_default_secure_packet(), and RPCRT4_SendWithAuth().
NCA_STATUS RPC2NCA_STATUS | ( | RPC_STATUS | status | ) |
Definition at line 408 of file rpc_message.c.
Referenced by process_request_packet().
Definition at line 216 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 253 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 231 of file rpc_message.c.
Referenced by handle_bind_error().
|
static |
Definition at line 108 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 344 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 384 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 291 of file rpc_message.c.
Referenced by RPCRT4_BuildHttpConnectHeader(), RPCRT4_BuildHttpFlowControlHeader(), and rpcrt4_http_keep_connection_active_timer_proc().
|
static |
Definition at line 124 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 992 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 872 of file rpc_message.c.
RPC_STATUS RPCRT4_default_impersonate_client | ( | RpcConnection * | conn | ) |
Definition at line 1131 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 1189 of file rpc_message.c.
BOOL RPCRT4_default_is_authorized | ( | RpcConnection * | Connection | ) |
Definition at line 1122 of file rpc_message.c.
|
static |
Definition at line 1288 of file rpc_message.c.
Referenced by RPCRT4_receive_fragment().
RPC_STATUS RPCRT4_default_revert_to_self | ( | RpcConnection * | conn | ) |
Definition at line 1159 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 682 of file rpc_message.c.
Definition at line 403 of file rpc_message.c.
Referenced by I_RpcReceive(), I_RpcSend(), process_bind_packet(), process_request_packet(), RpcAssoc_BindConnection(), RPCRT4_ClientConnectionAuth(), RPCRT4_default_receive_fragment(), rpcrt4_http_keep_connection_active_timer_proc(), rpcrt4_http_prepare_in_pipe(), rpcrt4_http_prepare_out_pipe(), RPCRT4_io_thread(), rpcrt4_ncacn_http_receive_fragment(), RPCRT4_process_packet(), and RPCRT4_ReceiveWithAuth().
Definition at line 57 of file rpc_message.c.
Referenced by RPCRT4_default_receive_fragment(), rpcrt4_ncacn_http_receive_fragment(), RPCRT4_ReceiveWithAuth(), and RPCRT4_ValidateCommonHeader().
Definition at line 483 of file rpc_message.c.
Referenced by rpcrt4_http_read_http_packet(), and rpcrt4_ncacn_http_receive_fragment().
Definition at line 535 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 637 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 566 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 591 of file rpc_message.c.
Referenced by rpcrt4_http_prepare_out_pipe().
|
static |
Definition at line 1554 of file rpc_message.c.
Referenced by I_RpcReceive().
|
static |
Definition at line 1362 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 1376 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 1223 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 761 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 1025 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 1255 of file rpc_message.c.
Referenced by RPCRT4_default_receive_fragment(), and rpcrt4_ncacn_http_receive_fragment().
WINE_DEFAULT_DEBUG_CHANNEL | ( | rpc | ) |