enum {OPT_OPTION=1,OPT_LEAK_REPORT,OPT_LEAK_REPORT_FULL,OPT_DEBUG_STDERR};
struct cli_credentials *cmdline_credentials = NULL;
+
+void popt_set_cmdline_credentials(struct cli_credentials *creds)
+{
+ cmdline_credentials = creds;
+}
+
+struct cli_credentials *popt_get_cmdline_credentials(void)
+{
+ return cmdline_credentials;
+}
+
+void popt_free_cmdline_credentials(void)
+{
+ TALLOC_FREE(cmdline_credentials);
+}
+
struct loadparm_context *cmdline_lp_ctx = NULL;
static void popt_version_callback(poptContext con,
#define POPT_COMMON_CREDENTIALS { NULL, 0, POPT_ARG_INCLUDE_TABLE, popt_common_credentials4, 0, "Authentication options:", NULL },
extern struct cli_credentials *cmdline_credentials;
+void popt_set_cmdline_credentials(struct cli_credentials *creds);
+struct cli_credentials *popt_get_cmdline_credentials(void);
+void popt_free_cmdline_credentials(void);
extern struct loadparm_context *cmdline_lp_ctx;
#endif /* _POPT_COMMON_H */