diff options
Diffstat (limited to 'crypto/heimdal/lib/krb5/prompter_posix.c')
-rw-r--r-- | crypto/heimdal/lib/krb5/prompter_posix.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/crypto/heimdal/lib/krb5/prompter_posix.c b/crypto/heimdal/lib/krb5/prompter_posix.c index 4aea3a4..e0f407f 100644 --- a/crypto/heimdal/lib/krb5/prompter_posix.c +++ b/crypto/heimdal/lib/krb5/prompter_posix.c @@ -33,9 +33,9 @@ #include "krb5_locl.h" -RCSID("$Id: prompter_posix.c,v 1.7 2002/09/16 17:32:11 nectar Exp $"); +RCSID("$Id: prompter_posix.c 13863 2004-05-25 21:46:46Z lha $"); -int +int KRB5_LIB_FUNCTION krb5_prompter_posix (krb5_context context, void *data, const char *name, @@ -49,9 +49,11 @@ krb5_prompter_posix (krb5_context context, fprintf (stderr, "%s\n", name); if (banner) fprintf (stderr, "%s\n", banner); + if (name || banner) + fflush(stderr); for (i = 0; i < num_prompts; ++i) { if (prompts[i].hidden) { - if(des_read_pw_string(prompts[i].reply->data, + if(UI_UTIL_read_pw_string(prompts[i].reply->data, prompts[i].reply->length, prompts[i].prompt, 0)) |