dcerpc: Fix include path so header installer translates it correctly during install.
[ira/wip.git] / source4 / librpc / rpc / dcerpc.h
index c4a48a1119d26244f4304f14a6c8a6b8f3bfa887..cc8d3d142970e5894a65f8b555f9962b003f914e 100644 (file)
@@ -27,9 +27,9 @@
 #ifndef __DCERPC_H__
 #define __DCERPC_H__
 
-#include "lib/util/data_blob.h"
+#include "../lib/util/data_blob.h"
 #include "librpc/gen_ndr/dcerpc.h"
-#include "librpc/ndr/libndr.h"
+#include "../librpc/ndr/libndr.h"
 
 enum dcerpc_transport_t {
        NCA_UNKNOWN, NCACN_NP, NCACN_IP_TCP, NCACN_IP_UDP, NCACN_VNS_IPC, 
@@ -163,6 +163,9 @@ struct dcerpc_pipe {
 /* this triggers the DCERPC_PFC_FLAG_CONC_MPX flag in the bind request */
 #define DCERPC_CONCURRENT_MULTIPLEX     (1<<19)
 
+/* this triggers the DCERPC_PFC_FLAG_SUPPORT_HEADER_SIGN flag in the bind request */
+#define DCERPC_HEADER_SIGNING          (1<<20)
+
 /* this describes a binding to a particular transport/pipe */
 struct dcerpc_binding {
        enum dcerpc_transport_t transport;
@@ -358,5 +361,20 @@ NTSTATUS dcerpc_ndr_request(struct dcerpc_pipe *p,
                            TALLOC_CTX *mem_ctx, 
                            void *r);
 
+NTSTATUS dcerpc_binding_from_tower(TALLOC_CTX *mem_ctx, 
+                                  struct epm_tower *tower, 
+                                  struct dcerpc_binding **b_out);
+
+NTSTATUS dcerpc_request(struct dcerpc_pipe *p, 
+                       struct GUID *object,
+                       uint16_t opnum,
+                       bool async,
+                       TALLOC_CTX *mem_ctx,
+                       DATA_BLOB *stub_data_in,
+                       DATA_BLOB *stub_data_out);
+
+typedef NTSTATUS (*dcerpc_call_fn) (struct dcerpc_pipe *, TALLOC_CTX *, void *);
+
+enum dcerpc_transport_t dcerpc_transport_by_endpoint_protocol(int prot);
 
 #endif /* __DCERPC_H__ */