+Wed Jan 18 15:12:18 1995 Theodore Y. Ts'o (tytso@dcl)
+
+ * read_passwd.c (des_read_password): Declare global_context and
+ initialize it if necessary.
+
Fri Jan 13 15:23:47 1995 Chris Provenzano (proven@mit.edu)
* Added krb5_context to all krb5_routines
#include "des.h"
+static krb5_context global_context = 0;
+
/*** Routines ****************************************************** */
int
des_read_password/*_v4_compat_crock*/(k,prompt,verify)
int verify;
{
int ok;
+ krb5_error_code retval;
char key_string[BUFSIZ];
char prompt2[BUFSIZ];
int string_size = sizeof(key_string);
+ if (!global_context) {
+ retval = krb5_init_context(&global_context);
+ if (retval)
+ return retval;
+ }
+
if (verify) {
strcpy(prompt2, "Verifying, please re-enter ");
strncat(prompt2, prompt, sizeof(prompt2)-(strlen(prompt2)+1));