From: Theodore Tso Date: Sat, 10 Apr 1999 02:45:37 +0000 (+0000) Subject: prompter.c (krb5_prompter_posix): Update to use new prompter prototype X-Git-Tag: krb5-1.1-beta1~237 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8293cd3b60d9acc46a3213bbc1c6cc856abbff0c;p=krb5.git prompter.c (krb5_prompter_posix): Update to use new prompter prototype which takes an extra argument for the window titlebar name. (From Frank Cusack) [krb5-kdc/662] git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11348 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/os/ChangeLog b/src/lib/krb5/os/ChangeLog index abd06fade..a40a80245 100644 --- a/src/lib/krb5/os/ChangeLog +++ b/src/lib/krb5/os/ChangeLog @@ -1,3 +1,9 @@ +1999-04-01 Theodore Ts'o + + * prompter.c (krb5_prompter_posix): Update to use new prompter + prototype which takes an extra argument for the window + titlebar name. (From Frank Cusack) [krb5-kdc/662] + Thu Mar 25 18:45:48 1999 Tom Yu * promptusr.c (krb5_os_get_tty_uio): getchar() returns int, not diff --git a/src/lib/krb5/os/prompter.c b/src/lib/krb5/os/prompter.c index eea503740..684c5b509 100644 --- a/src/lib/krb5/os/prompter.c +++ b/src/lib/krb5/os/prompter.c @@ -25,6 +25,7 @@ intr_routine(signo) KRB5_DLLIMP krb5_error_code KRB5_CALLCONV krb5_prompter_posix(krb5_context context, void *data, + const char *name, const char *banner, int num_prompts, krb5_prompt prompts[]) @@ -41,6 +42,11 @@ krb5_prompter_posix(krb5_context context, int fd; #endif + if (name) { + fputs(name, stdout); + fputs("\n", stdout); + } + if (banner) { fputs(banner, stdout); fputs("\n", stdout); @@ -117,10 +123,11 @@ cleanup: KRB5_DLLIMP krb5_error_code KRB5_CALLCONV krb5_prompter_posix(krb5_context context, - void *data, - const char *banner, - int num_prompts, - krb5_prompt prompts[]) + void *data, + const char *name, + const char *banner, + int num_prompts, + krb5_prompt prompts[]) { return(EINVAL); }