summaryrefslogtreecommitdiff
path: root/source3/librpc/rpc/dcerpc.h
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2010-07-14 12:18:49 -0400
committerGünther Deschner <gd@samba.org>2010-07-16 01:51:17 +0200
commitbd19c964d54571b1cdb8e4f1ea47a24e790e6e3c (patch)
tree27b64ae1c7f1089c7b147c1dc495099ec86a51b9 /source3/librpc/rpc/dcerpc.h
parentca3bdca52e93ec492f06f18d8428e80bbad375be (diff)
downloadsamba-bd19c964d54571b1cdb8e4f1ea47a24e790e6e3c.tar.gz
samba-bd19c964d54571b1cdb8e4f1ea47a24e790e6e3c.tar.bz2
samba-bd19c964d54571b1cdb8e4f1ea47a24e790e6e3c.zip
s3-dcerpc: Move common helpers into a common file
Signed-off-by: Günther Deschner <gd@samba.org>
Diffstat (limited to 'source3/librpc/rpc/dcerpc.h')
-rw-r--r--source3/librpc/rpc/dcerpc.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/source3/librpc/rpc/dcerpc.h b/source3/librpc/rpc/dcerpc.h
index 0c120dfef5..d18920ca0d 100644
--- a/source3/librpc/rpc/dcerpc.h
+++ b/source3/librpc/rpc/dcerpc.h
@@ -111,4 +111,31 @@ _PUBLIC_ NTSTATUS dcerpc_binding_build_tower(TALLOC_CTX *mem_ctx,
const struct dcerpc_binding *binding,
struct epm_tower *tower);
+struct NL_AUTH_MESSAGE;
+
+/* The following definitions come from librpc/rpc/dcerpc_helpers.c */
+NTSTATUS dcerpc_push_ncacn_packet(TALLOC_CTX *mem_ctx,
+ enum dcerpc_pkt_type ptype,
+ uint8_t pfc_flags,
+ uint16_t auth_length,
+ uint32_t call_id,
+ union dcerpc_payload *u,
+ DATA_BLOB *blob);
+NTSTATUS dcerpc_pull_ncacn_packet(TALLOC_CTX *mem_ctx,
+ const DATA_BLOB *blob,
+ struct ncacn_packet *r);
+NTSTATUS dcerpc_push_schannel_bind(TALLOC_CTX *mem_ctx,
+ struct NL_AUTH_MESSAGE *r,
+ DATA_BLOB *blob);
+NTSTATUS dcerpc_push_dcerpc_auth(TALLOC_CTX *mem_ctx,
+ enum dcerpc_AuthType auth_type,
+ enum dcerpc_AuthLevel auth_level,
+ uint8_t auth_pad_length,
+ uint32_t auth_context_id,
+ const DATA_BLOB *credentials,
+ DATA_BLOB *blob);
+NTSTATUS dcerpc_pull_dcerpc_auth(TALLOC_CTX *mem_ctx,
+ const DATA_BLOB *blob,
+ struct dcerpc_auth *r);
+
#endif /* __DCERPC_H__ */