implement krb5_read_password, des_read_password via krb5_prompter_posix
authorTom Yu <tlyu@mit.edu>
Fri, 11 Oct 2002 06:05:09 +0000 (06:05 +0000)
committerTom Yu <tlyu@mit.edu>
Fri, 11 Oct 2002 06:05:09 +0000 (06:05 +0000)
commite5bb9ff79118abbd1e2a30fb170c3fbeaa032ccd
tree5a1ae7eed759238bb6b2962434260878ea7bfd62
parent08436c6c6017708eaa0a2b986f8cc8193e31da46
implement krb5_read_password, des_read_password via krb5_prompter_posix

This commit fixes one incompatibility introduced when
krb5_read_password was reimplemented in terms of krb5_prompter_posix.
There is a remaining incompatibility, which is krb5_prompter_posix's
appending of the string ": " following a prompt.  Callers of
krb5_read_password and of des_read_password don't expect this
behavior, which results in a double colon prompt, which breaks the
libkadm5 test suite.

* read_pwd.c (krb5_read_password): Restore name of size_return.
Set *size_return after successful call to krb5_prompter_posix,
since some callers were actually checking, e.g. kadm5.

ticket: new

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14922 dc483132-0cff-0310-8789-dd5450dbe970
src/lib/krb5/os/ChangeLog
src/lib/krb5/os/read_pwd.c