Commit bcd6e023 authored by npzacs's avatar npzacs Committed by hpi1

log config summary

parent c9c8ad90
......@@ -646,6 +646,25 @@ static int _parse_embedded(config_file *cf)
return result;
}
static void _config_summary(config_file *cf)
{
int n;
dk_list *dkl = cf->dkl;
pk_list *pkl = cf->pkl;
cert_list *hcl = cf->host_cert_list;
title_entry_list *tel = cf->list;
BD_DEBUG(DBG_AACS, "Config summary:\n");
for (n = 0; dkl; dkl = dkl->next, n++) ;
BD_DEBUG(DBG_AACS, " %d Device keys\n", n);
for (n = 0; pkl; pkl = pkl->next, n++) ;
BD_DEBUG(DBG_AACS, " %d Processing keys\n", n);
for (n = 0; hcl; hcl = hcl->next, n++) ;
BD_DEBUG(DBG_AACS, " %d Host certificates\n", n);
for (n = 0; tel; tel = tel->next, n++) ;
BD_DEBUG(DBG_AACS, " %d Disc entries\n", n);
}
config_file *keydbcfg_config_load(const char *configfile_path)
{
int config_ok = 0;
......@@ -682,6 +701,8 @@ config_file *keydbcfg_config_load(const char *configfile_path)
return NULL;
}
_config_summary(cf);
return cf;
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment