diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2005-03-23 01:02:29 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:11:12 -0500 |
commit | 9b48673ad9ed5cf2019df7111fe6ef89ad57573d (patch) | |
tree | 843cdf81bb15a79c9da532aea54f602bc7a59d54 /source4/gtk/common/gtk-smb.h | |
parent | df8c102ec9c64a44ae4b7aa3a47bdf33178f2dcf (diff) | |
download | samba-9b48673ad9ed5cf2019df7111fe6ef89ad57573d.tar.gz samba-9b48673ad9ed5cf2019df7111fe6ef89ad57573d.tar.bz2 samba-9b48673ad9ed5cf2019df7111fe6ef89ad57573d.zip |
r5987: Add credentials callback for gtk+. The gtk+ apps now no longer
ask for a password when kerberos is being used.
(This used to be commit 642ec7cbef6d392b49ed0fe86d1816d4953e30ad)
Diffstat (limited to 'source4/gtk/common/gtk-smb.h')
-rw-r--r-- | source4/gtk/common/gtk-smb.h | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/source4/gtk/common/gtk-smb.h b/source4/gtk/common/gtk-smb.h index 0a7bbcba00..2ff0a3be0c 100644 --- a/source4/gtk/common/gtk-smb.h +++ b/source4/gtk/common/gtk-smb.h @@ -22,8 +22,10 @@ #ifndef __GTK_SMB_H__ #define __GTK_SMB_H__ + #ifdef HAVE_GTK +#define GTK_DISABLE_DEPRECATED #include <gtk/gtk.h> typedef struct _GtkRpcBindingDialog GtkRpcBindingDialog; @@ -44,7 +46,7 @@ struct _GtkRpcBindingDialog GtkWidget *krb5_chk_button; GtkWidget *frame_credentials; TALLOC_CTX *mem_ctx; - struct sam_pipe *sam_pipe; + struct dcerpc_pipe *sam_pipe; struct cli_credentials *credentials; }; @@ -64,22 +66,18 @@ struct _GtkRpcBindingDialogClass /* subsystem prototypes */ GtkWidget *create_gtk_samba_about_dialog (const char *appname); void gtk_show_ntstatus(GtkWidget *win, const char *, NTSTATUS status); -GtkWidget *gtk_rpc_binding_dialog_new (BOOL nocredentials, struct sam_pipe *sam_pipe); +GtkWidget *gtk_rpc_binding_dialog_new (BOOL nocredentials, struct dcerpc_pipe *sam_pipe); GType gtk_rpc_binding_dialog_get_type (void); struct dcerpc_binding *gtk_rpc_binding_dialog_get_binding(GtkRpcBindingDialog *d, TALLOC_CTX *mem_ctx); -GtkWidget *gtk_select_host_dialog_new (struct sam_pipe *sam_pipe, BOOL nocredentials); -const char *gtk_select_host_dialog_get_host (GtkSelectHostDialog *d); -GType gtk_select_host_dialog_get_type (void); void gtk_show_werror(GtkWidget *win, const char *, WERROR err); const char *gtk_rpc_binding_dialog_get_binding_string(GtkRpcBindingDialog *d, TALLOC_CTX *mem_ctx); struct cli_credentials *gtk_rpc_binding_dialog_get_credentials(GtkRpcBindingDialog *d); const char *gtk_rpc_binding_dialog_get_host(GtkRpcBindingDialog *d); -GtkWidget *gtk_select_domain_dialog_new (struct dcerpc_pipe *sam_pipe); -GType gtk_select_domain_dialog_get_type (void); -struct policy_handle gtk_select_domain_dialog_get_handle(GtkSelectDomainDialog *d); int gtk_event_loop(void); struct event_context; struct event_context *gtk_event_context(void); +void cli_credentials_set_gtk_callbacks(struct cli_credentials *creds); + #endif |