+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.
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;
+}
+