prompter.c (krb5_prompter_posix): Update to use new prompter prototype
authorTheodore Tso <tytso@mit.edu>
Sat, 10 Apr 1999 02:45:37 +0000 (02:45 +0000)
committerTheodore Tso <tytso@mit.edu>
Sat, 10 Apr 1999 02:45:37 +0000 (02:45 +0000)
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
src/lib/krb5/os/prompter.c

index abd06fade1e37ff7aaf05a483374094c0853a042..a40a80245a1e18d60ddf427874e3afe83cf08545 100644 (file)
@@ -1,3 +1,9 @@
+1999-04-01  Theodore Ts'o  <tytso@rsts-11.mit.edu>
+
+       * 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  <tlyu@mit.edu>
 
        * promptusr.c (krb5_os_get_tty_uio): getchar() returns int, not
index eea503740808d6c066b36d77f4ef8ee1d929c00f..684c5b5099848b8870ef768c5ea598963df8f318 100644 (file)
@@ -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);
 }