From a1c468e1d75d490f0e531feb08188ddc3f0d77b5 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Mon, 16 Sep 2013 18:24:44 +0200 Subject: [PATCH] s3:rpcclient: add rpcclient_msg_ctx Signed-off-by: Stefan Metzmacher Reviewed-by: Andrew Bartlett --- source3/rpcclient/rpcclient.c | 5 +++++ source3/rpcclient/rpcclient.h | 1 + 2 files changed, 6 insertions(+) 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 */ -- 2.11.4.GIT