s3-dcerpc: make dceprc_push_dcerpc_auth public
authorSimo Sorce <idra@samba.org>
Thu, 8 Jul 2010 15:36:03 +0000 (11:36 -0400)
committerSimo Sorce <idra@samba.org>
Thu, 8 Jul 2010 22:38:56 +0000 (18:38 -0400)
source3/include/proto.h
source3/rpc_client/cli_pipe.c

index 8ce2bf169cf5ac4b2e9e8aa31e6c8cb23a332969..4300d3fc6d7ab1c39f71ba6d1ad5d5ab587d487f 100644 (file)
@@ -4847,6 +4847,13 @@ NTSTATUS dcerpc_pull_ncacn_packet(TALLOC_CTX *mem_ctx,
 NTSTATUS dcerpc_pull_ncacn_packet_header(TALLOC_CTX *mem_ctx,
                                         const DATA_BLOB *blob,
                                         struct ncacn_packet_header *r);
+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);
 struct tevent_req *rpc_pipe_bind_send(TALLOC_CTX *mem_ctx,
                                      struct event_context *ev,
                                      struct rpc_pipe_client *cli,
index 3d53d2ecd541b5a24da2c8f35ddeb37530515890..b3aaf9df3e85b041626decc1f058989bab827a52 100644 (file)
@@ -1754,15 +1754,16 @@ static NTSTATUS rpc_api_pipe_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx,
 }
 
 /*******************************************************************
+ Creates an auth_data blob.
  ********************************************************************/
 
-static 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_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)
 {
        struct dcerpc_auth r;
        enum ndr_err_code ndr_err;