diff options
author | Stefan Metzmacher <metze@samba.org> | 2013-09-16 18:24:44 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2014-01-07 12:47:10 +0100 |
commit | a1c468e1d75d490f0e531feb08188ddc3f0d77b5 (patch) | |
tree | c7032abc7a827f6c2b1843b3eceb016a62cc9eea /source3 | |
parent | 94caf7e190563423914b653d0c2fc4a4abf1f899 (diff) | |
download | samba-a1c468e1d75d490f0e531feb08188ddc3f0d77b5.tar.gz samba-a1c468e1d75d490f0e531feb08188ddc3f0d77b5.tar.xz samba-a1c468e1d75d490f0e531feb08188ddc3f0d77b5.zip |
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.c | 5 | ||||
-rw-r--r-- | source3/rpcclient/rpcclient.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/source3/rpcclient/rpcclient.c b/source3/rpcclient/rpcclient.c index eae6bbdb52..7435446873 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 ae12cac4d0..48f38c2770 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 */ |