+1999-04-01 Theodore Ts'o <tytso@rsts-11.mit.edu>
+
+ * gic.c (gic_prompter), vardlg.c (vardlg_build), gic.h, vardlg.h:
+ Update to use new prompter prototype which takes an extra
+ argument for the window titlebar name. (From Frank
+ Cusack) [krb5-kdc/662]
+
Fri Mar 12 15:54:17 1999 Theodore Y. Ts'o <tytso@mit.edu>
* Makefile.in (clean-windows): Don't blow away Krbcc32.lib by
* broken environment
*/
krb5_error_code KRB5_CALLCONV
-gic_prompter(krb5_context ctx, void *data, const char *banner,
- int num_prompts, krb5_prompt prompts[])
+gic_prompter(krb5_context ctx, void *data, const char *name,
+ const char *banner, int num_prompts, krb5_prompt prompts[])
{
int rc;
void *dlg;
if (gd->width == 0)
gd->width = 450;
- dlg = vardlg_build((WORD)(gd->width), gd->banner, (WORD)num_prompts, prompts, (WORD)(gd->id));
+ dlg = vardlg_build((WORD)(gd->width), name, gd->banner,
+ (WORD)num_prompts, prompts, (WORD)(gd->id));
rc = DialogBoxIndirect(gd->hinstance, (LPDLGTEMPLATE)dlg, gd->hwnd, gic_dialog);
} gic_data;
krb5_error_code KRB5_CALLCONV gic_prompter(krb5_context, void *, const char *,
- int, krb5_prompt []);
+ const char *, int, krb5_prompt []);
#endif /* _WINDOWS_LIB_GIC_H */
* fields for each item.
*/
void *
-vardlg_build(WORD cx, const char *banner, WORD n, krb5_prompt prompts[],
- WORD id)
+vardlg_build(WORD cx, const char *name, const char *banner,
+ WORD n, krb5_prompt prompts[], WORD id)
{
unsigned char *p;
WORD i;
/*
* Store the dialog template
*/
- p += ADD_DLGTEMPLATE(p, 0, 0, cx, 0, "KerbNet", "MS Sans Serif", 8,
+ p += ADD_DLGTEMPLATE(p, 0, 0, cx, 0, name ?
+ strlen(name) < 30 ? name : "Kerberos V5" :
+ "Kerberos V5",
+ "MS Sans Serif", 8,
(WORD)(n * 2 + 3));
/*
* If there are items, we also create a Cancel button and one (label, entry)
* fields for each item.
*/
-void *vardlg_build(WORD, const char *, WORD, krb5_prompt *, WORD);
+void *vardlg_build(WORD, const char *, const char *, WORD, krb5_prompt *, WORD);
void vardlg_config(HWND, WORD, const char *, WORD, krb5_prompt *, WORD);