* $Source$
* $Author$
*
- * Copyright 1990 by the Massachusetts Institute of Technology.
+ * Copyright 1990,1991 by the Massachusetts Institute of Technology.
+ * All Rights Reserved.
*
* For copying and distribution information, please see the file
* <krb5/copyright.h>.
"$Id$";
#endif /* !lint & !SABER */
-#include <krb5/copyright.h>
#include <krb5/krb5.h>
#include <krb5/kdb.h>
#include <krb5/kdb_dbm.h>
char *realm = 0;
char *mkey_name = 0;
char *mkey_fullname;
- char defrealm[BUFSIZ];
+ char *defrealm;
int keytypedone = 0;
krb5_enctype etype = 0xffff;
exit(1);
}
if (!realm) {
- if (retval = krb5_get_default_realm(sizeof(defrealm), defrealm)) {
+ if (retval = krb5_get_default_realm(&defrealm)) {
com_err(argv[0], retval, "while retrieving default realm name");
exit(1);
}
if (retval = krb5_db_put_principal(&entry, &nentries))
return retval;
- free((char *)ekey.contents);
+ xfree(ekey.contents);
return 0;
}
char *realm = 0;
char *mkey_name = 0;
char *mkey_fullname;
- char defrealm[BUFSIZ];
char *keyfile = 0;
int keytypedone = 0;
exit(1);
}
if (!realm) {
- if (retval = krb5_get_default_realm(sizeof(defrealm), defrealm)) {
+ if (retval = krb5_get_default_realm(&realm)) {
com_err(argv[0], retval, "while retrieving default realm name");
exit(1);
}
- realm = defrealm;
}
/* assemble & parse the master key name */