From 8293cd3b60d9acc46a3213bbc1c6cc856abbff0c Mon Sep 17 00:00:00 2001 From: Theodore Tso Date: Sat, 10 Apr 1999 02:45:37 +0000 Subject: [PATCH] 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 --- src/lib/krb5/os/ChangeLog | 6 ++++++ src/lib/krb5/os/prompter.c | 15 +++++++++++---- 2 files changed, 17 insertions(+), 4 deletions(-) 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); } -- 2.26.2