initialize kcontext before use.
This allows for more graceful handling of scenario where krb5.ini is
missing - we now get an error box.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9997
dc483132-0cff-0310-8789-
dd5450dbe970
+Mon Mar 3 15:14:34 1997 Ezra Peisach <epeisach@mit.edu>
+
+ * kconfig.c (main): Move krb5_init_context earlier in order to
+ initialize kcontext before use.
+
Fri Dec 20 12:01:10 1996 Marshall Vale <mjv@mit.edu>
* kconfig.c: Adjusted time-bomb date to June 1, 1997
DateTimeRec goalTimeBomb;
long currentTime, goalTimeBombInSecs;
#endif
+#ifdef KRB5
+ krb5_error_code code;
+#endif
+
/*
* Setup
#ifdef KRB4
init_cornell_des();
#endif
+#ifdef KRB5
+ code = krb5_init_context(&kcontext);
+ if (code)
+ {
+ doalert("Kerberos configuration file not present");
+ getout(0);
+ }
+#endif
+
#ifdef KRB5
k5_init_ccache (&k5_ccache);
/*strcpy(gUserName, kUNKNOWNUSERNAME);*/
}
#endif
-#ifdef KRB5
- krb5_init_context(&kcontext);
- if (kcontext->profile == 0)
- {
- doalert("Kerberos configuration file not present");
- getout(0);
- }
-#endif
/*
* build the main window