From 6f225986f51acfa8eca37a7cc86176db5d240cde Mon Sep 17 00:00:00 2001 From: Theodore Tso Date: Fri, 28 Apr 1995 17:36:13 +0000 Subject: [PATCH] Add des_read_pw_string, since it's used by the V4 login.c code git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5612 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/des425/ChangeLog | 5 +++++ src/lib/des425/read_passwd.c | 21 +++++++++++++++++++++ 2 files changed, 26 insertions(+) diff --git a/src/lib/des425/ChangeLog b/src/lib/des425/ChangeLog index bb08ed325..f15d5e40b 100644 --- a/src/lib/des425/ChangeLog +++ b/src/lib/des425/ChangeLog @@ -1,3 +1,8 @@ +Fri Apr 28 13:35:25 1995 Theodore Y. Ts'o + + * read_passwd.c (des_read_pw_string): Add des_read_pw_string, + since it's used by the V4 login.c code. + Thu Apr 13 15:49:16 1995 Keith Vetter (keithv@fusion.com) * *.[ch]: removed unneeded INTERFACE from non-api functions. diff --git a/src/lib/des425/read_passwd.c b/src/lib/des425/read_passwd.c index 2043b4f62..a58a7a449 100644 --- a/src/lib/des425/read_passwd.c +++ b/src/lib/des425/read_passwd.c @@ -63,3 +63,24 @@ des_read_password/*_v4_compat_crock*/(k,prompt,verify) memset(key_string, 0, sizeof (key_string)); return ok; } + +krb5_error_code +des_read_pw_string/*_v4_compat_crock*/(buf, bufsize, prompt, prompt2) + char *buf; + int *bufsize; + char *prompt; + char *prompt2; +{ + krb5_error_code retval; + + if (!krb4_global_context) { + retval = krb5_init_context(&krb4_global_context); + if (retval) + return retval; + } + + retval = krb5_read_password(krb4_global_context, prompt, prompt2, + buf, bufsize); + return retval; +} + -- 2.26.2