summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2013-09-16 18:24:44 +0200
committerStefan Metzmacher <metze@samba.org>2014-01-07 12:47:10 +0100
commita1c468e1d75d490f0e531feb08188ddc3f0d77b5 (patch)
treec7032abc7a827f6c2b1843b3eceb016a62cc9eea /source3
parent94caf7e190563423914b653d0c2fc4a4abf1f899 (diff)
downloadsamba-a1c468e1d75d490f0e531feb08188ddc3f0d77b5.tar.gz
s3:rpcclient: add rpcclient_msg_ctx
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source3')
-rw-r--r--source3/rpcclient/rpcclient.c5
-rw-r--r--source3/rpcclient/rpcclient.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/source3/rpcclient/rpcclient.c b/source3/rpcclient/rpcclient.c
index eae6bbdb527..7435446873a 100644
--- a/source3/rpcclient/rpcclient.c
+++ b/source3/rpcclient/rpcclient.c
@@ -33,6 +33,7 @@
#include "libsmb/libsmb.h"
#include "auth/gensec/gensec.h"
#include "../libcli/smb/smbXcli_base.h"
+#include "messages.h"
enum pipe_auth_type_spnego {
PIPE_AUTH_TYPE_SPNEGO_NONE = 0,
@@ -48,6 +49,7 @@ static enum dcerpc_AuthLevel pipe_default_auth_level = DCERPC_AUTH_LEVEL_NONE;
static unsigned int timeout = 0;
static enum dcerpc_transport_t default_transport = NCACN_NP;
+struct messaging_context *rpcclient_msg_ctx;
struct user_auth_info *rpcclient_auth_info;
struct cli_state *rpcclient_cli_state;
@@ -987,6 +989,9 @@ out_free:
/* We must load interfaces after we load the smb.conf */
load_interfaces();
+ rpcclient_msg_ctx = messaging_init(talloc_autofree_context(),
+ samba_tevent_context_init(talloc_autofree_context()));
+
/*
* Get password
* from stdin if necessary
diff --git a/source3/rpcclient/rpcclient.h b/source3/rpcclient/rpcclient.h
index ae12cac4d0a..48f38c2770c 100644
--- a/source3/rpcclient/rpcclient.h
+++ b/source3/rpcclient/rpcclient.h
@@ -41,6 +41,7 @@ struct cmd_set {
const char *usage;
};
+extern struct messaging_context *rpcclient_msg_ctx;
extern struct cli_state *rpcclient_cli_state;
#endif /* RPCCLIENT_H */