Add des_read_pw_string, since it's used by the V4 login.c code
authorTheodore Tso <tytso@mit.edu>
Fri, 28 Apr 1995 17:36:13 +0000 (17:36 +0000)
committerTheodore Tso <tytso@mit.edu>
Fri, 28 Apr 1995 17:36:13 +0000 (17:36 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5612 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/des425/ChangeLog
src/lib/des425/read_passwd.c

index bb08ed3259ed2faf04f513ec071db6318f009fa9..f15d5e40bc55f486273f39c74f88e0b4ca747e67 100644 (file)
@@ -1,3 +1,8 @@
+Fri Apr 28 13:35:25 1995  Theodore Y. Ts'o  <tytso@dcl>
+
+       * 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.
index 2043b4f62ce07f51ff57fc42b9f1cd7ec5ac4464..a58a7a4499a9cb35ae80fe4bf6b6dbdbdcfc01d2 100644 (file)
@@ -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;
+}
+