Use hdb_db_dir().
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22244 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -37,7 +37,7 @@ RCSID("$Id$");
|
|||||||
|
|
||||||
krb5_context context;
|
krb5_context context;
|
||||||
|
|
||||||
static const char *keyfile = HDB_DB_DIR "/m-key";
|
static char *keyfile;
|
||||||
static int convert_flag;
|
static int convert_flag;
|
||||||
static int help_flag;
|
static int help_flag;
|
||||||
static int version_flag;
|
static int version_flag;
|
||||||
@@ -84,6 +84,9 @@ main(int argc, char **argv)
|
|||||||
krb5_errx(context, 1, "random-key and master-key-fd "
|
krb5_errx(context, 1, "random-key and master-key-fd "
|
||||||
"is mutual exclusive");
|
"is mutual exclusive");
|
||||||
|
|
||||||
|
if (keyfile == NULL)
|
||||||
|
asprintf(&keyfile, "%s/m-key", hdb_db_dir(context));
|
||||||
|
|
||||||
ret = krb5_string_to_enctype(context, enctype_str, &enctype);
|
ret = krb5_string_to_enctype(context, enctype_str, &enctype);
|
||||||
if(ret)
|
if(ret)
|
||||||
krb5_err(context, 1, ret, "krb5_string_to_enctype");
|
krb5_err(context, 1, ret, "krb5_string_to_enctype");
|
||||||
|
Reference in New Issue
Block a user