summaryrefslogtreecommitdiff
path: root/source3/libnet
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-06-23 17:03:53 +0200
committerGünther Deschner <gd@samba.org>2008-06-23 23:38:52 +0200
commit8725626ec8b2b2a11b2c0bb5e7010f229d552b5e (patch)
tree7d21793f6a1bf36d4e2ee6b8eaf6c255038b1818 /source3/libnet
parentbd6fece98af7142790625ddd19769529eba4ada3 (diff)
downloadsamba-8725626ec8b2b2a11b2c0bb5e7010f229d552b5e.tar.gz
samba-8725626ec8b2b2a11b2c0bb5e7010f229d552b5e.tar.bz2
samba-8725626ec8b2b2a11b2c0bb5e7010f229d552b5e.zip
net_vampire: prepend libnet_ to the public samsync functions.
Guenther (This used to be commit f020c947cfb1482176af8827ed9c361d7c21e26f)
Diffstat (limited to 'source3/libnet')
-rw-r--r--source3/libnet/libnet_proto.h23
-rw-r--r--source3/libnet/libnet_samsync.c34
2 files changed, 26 insertions, 31 deletions
diff --git a/source3/libnet/libnet_proto.h b/source3/libnet/libnet_proto.h
index 6f150d1579..ba73a3e8bc 100644
--- a/source3/libnet/libnet_proto.h
+++ b/source3/libnet/libnet_proto.h
@@ -45,20 +45,15 @@ _PUBLIC_ void ndr_print_libnet_UnjoinCtx(struct ndr_print *ndr, const char *name
/* The following definitions come from libnet/libnet_samsync.c */
-NTSTATUS samsync_fix_delta_array(TALLOC_CTX *mem_ctx,
- DATA_BLOB *session_key,
- bool rid_crypt,
- enum netr_SamDatabaseID database_id,
- struct netr_DELTA_ENUM_ARRAY *r);
-NTSTATUS samsync_init_context(TALLOC_CTX *mem_ctx,
- const struct dom_sid *domain_sid,
- const char *domain_name,
- enum net_samsync_mode mode,
- struct samsync_context **ctx_p);
-NTSTATUS samsync_process_database(struct rpc_pipe_client *pipe_hnd,
- enum netr_SamDatabaseID database_id,
- samsync_fn_t callback_fn,
- struct samsync_context *ctx);
+NTSTATUS libnet_samsync_init_context(TALLOC_CTX *mem_ctx,
+ const struct dom_sid *domain_sid,
+ const char *domain_name,
+ enum net_samsync_mode mode,
+ struct samsync_context **ctx_p);
+NTSTATUS libnet_samsync(struct rpc_pipe_client *pipe_hnd,
+ enum netr_SamDatabaseID database_id,
+ samsync_fn_t callback_fn,
+ struct samsync_context *ctx);
NTSTATUS pull_netr_AcctLockStr(TALLOC_CTX *mem_ctx,
struct lsa_BinaryString *r,
struct netr_AcctLockStr **str_p);
diff --git a/source3/libnet/libnet_samsync.c b/source3/libnet/libnet_samsync.c
index fab77e8398..7dd47b6399 100644
--- a/source3/libnet/libnet_samsync.c
+++ b/source3/libnet/libnet_samsync.c
@@ -163,11 +163,11 @@ static NTSTATUS samsync_fix_delta(TALLOC_CTX *mem_ctx,
* callback need only do the printing or application logic
*/
-NTSTATUS samsync_fix_delta_array(TALLOC_CTX *mem_ctx,
- DATA_BLOB *session_key,
- bool rid_crypt,
- enum netr_SamDatabaseID database_id,
- struct netr_DELTA_ENUM_ARRAY *r)
+static NTSTATUS samsync_fix_delta_array(TALLOC_CTX *mem_ctx,
+ DATA_BLOB *session_key,
+ bool rid_crypt,
+ enum netr_SamDatabaseID database_id,
+ struct netr_DELTA_ENUM_ARRAY *r)
{
NTSTATUS status;
int i;
@@ -188,14 +188,14 @@ NTSTATUS samsync_fix_delta_array(TALLOC_CTX *mem_ctx,
}
/**
- * samsync_init_context
+ * libnet_samsync_init_context
*/
-NTSTATUS samsync_init_context(TALLOC_CTX *mem_ctx,
- const struct dom_sid *domain_sid,
- const char *domain_name,
- enum net_samsync_mode mode,
- struct samsync_context **ctx_p)
+NTSTATUS libnet_samsync_init_context(TALLOC_CTX *mem_ctx,
+ const struct dom_sid *domain_sid,
+ const char *domain_name,
+ enum net_samsync_mode mode,
+ struct samsync_context **ctx_p)
{
struct samsync_context *ctx;
@@ -271,13 +271,13 @@ static const char *samsync_debug_str(TALLOC_CTX *mem_ctx,
}
/**
- * samsync_process_database
+ * libnet_samsync
*/
-NTSTATUS samsync_process_database(struct rpc_pipe_client *pipe_hnd,
- enum netr_SamDatabaseID database_id,
- samsync_fn_t callback_fn,
- struct samsync_context *ctx)
+NTSTATUS libnet_samsync(struct rpc_pipe_client *pipe_hnd,
+ enum netr_SamDatabaseID database_id,
+ samsync_fn_t callback_fn,
+ struct samsync_context *ctx)
{
NTSTATUS result;
TALLOC_CTX *mem_ctx;
@@ -292,7 +292,7 @@ NTSTATUS samsync_process_database(struct rpc_pipe_client *pipe_hnd,
ZERO_STRUCT(return_authenticator);
- if (!(mem_ctx = talloc_init("samsync_process_database"))) {
+ if (!(mem_ctx = talloc_init("libnet_samsync"))) {
return NT_STATUS_NO_MEMORY;
}