Add hdb_dbinfo_get_log_file.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21415 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -41,6 +41,7 @@ struct hdb_dbinfo {
|
|||||||
char *dbname;
|
char *dbname;
|
||||||
char *mkey_file;
|
char *mkey_file;
|
||||||
char *acl_file;
|
char *acl_file;
|
||||||
|
char *log_file;
|
||||||
const krb5_config_binding *binding;
|
const krb5_config_binding *binding;
|
||||||
struct hdb_dbinfo *next;
|
struct hdb_dbinfo *next;
|
||||||
};
|
};
|
||||||
@@ -77,6 +78,9 @@ get_dbinfo(krb5_context context,
|
|||||||
p = krb5_config_get_string(context, db_binding, "acl_file", NULL);
|
p = krb5_config_get_string(context, db_binding, "acl_file", NULL);
|
||||||
if(p)
|
if(p)
|
||||||
di->acl_file = strdup(p);
|
di->acl_file = strdup(p);
|
||||||
|
p = krb5_config_get_string(context, db_binding, "log_file", NULL);
|
||||||
|
if(p)
|
||||||
|
di->log_file = strdup(p);
|
||||||
|
|
||||||
di->binding = db_binding;
|
di->binding = db_binding;
|
||||||
|
|
||||||
@@ -204,6 +208,12 @@ hdb_dbinfo_get_acl_file(krb5_context context, struct hdb_dbinfo *dbp)
|
|||||||
return dbp->acl_file;
|
return dbp->acl_file;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const char *
|
||||||
|
hdb_dbinfo_get_log_file(krb5_context context, struct hdb_dbinfo *dbp)
|
||||||
|
{
|
||||||
|
return dbp->log_file;
|
||||||
|
}
|
||||||
|
|
||||||
const krb5_config_binding *
|
const krb5_config_binding *
|
||||||
hdb_dbinfo_get_binding(krb5_context context, struct hdb_dbinfo *dbp)
|
hdb_dbinfo_get_binding(krb5_context context, struct hdb_dbinfo *dbp)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user