+Mon Aug 12 11:41:57 1996 Barry Jaspan <bjaspan@mit.edu>
+
+ * kdb5_util.c: make mkey_password non-static
+
+ * kdb5_create.c: use global mkey_password
+
Mon Aug 5 21:24:47 1996 Ezra Peisach <epeisach@kangaroo.mit.edu>
* kdb5_stash.c (kdb5_stash): Ignore (expected) failure in stashing
KRB5_NT_SRV_INST /* int type */
};
-static char *mkey_password = 0;
+extern char *mkey_password;
extern char *progname;
extern int exit_status;
int argc;
char *argv[];
{
- extern char *optarg;
- extern int optind;
int optchar;
krb5_error_code retval;
if (strrchr(argv[0], '/'))
argv[0] = strrchr(argv[0], '/')+1;
- mkey_password = NULL;
- optind = 1;
- while ((optchar = getopt(argc, argv, "P:s")) != EOF) {
+ while ((optchar = getopt(argc, argv, "s")) != EOF) {
switch(optchar) {
case 's':
do_stash++;
break;
- case 'P': /* Only used for testing!!! */
- mkey_password = optarg;
- break;
case '?':
default:
usage();
/*
* XXX Ick, ick, ick. These global variables shouldn't be global....
*/
-static char *mkey_password = 0;
+char *mkey_password = 0;
/*
* I can't figure out any way for this not to be global, given how ss