\n", out);
if (!ctx)
goto leave;
if (!ctx->log || !ctx->logused)
{
es_fprintf (out, "
AUDIT-LOG: No entries
\n");
goto leave;
}
for (idx=0,maxlen=0; idx < DIM (eventstr_msgidx); idx++)
{
n = strlen (eventstr_msgstr + eventstr_msgidx[idx]);
if (n > maxlen)
maxlen = n;
}
es_fputs ("
\n", out);
for (idx=0; idx < ctx->logused; idx++)
{
es_fprintf (out, " - %-*s",
maxlen, event2str (ctx->log[idx].event));
if (ctx->log[idx].have_intvalue)
es_fprintf (out, " i=%d", ctx->log[idx].intvalue);
if (ctx->log[idx].string)
es_fprintf (out, " s=`%s'", ctx->log[idx].string);
if (ctx->log[idx].cert)
es_fprintf (out, " has_cert");
if (ctx->log[idx].have_err)
es_fprintf (out, " err=\"%s\"", gpg_strerror (ctx->log[idx].err));
es_fputs ("
\n", out);
}
es_fputs ("
\n", out);
leave:
es_fputs ("
\n", out);
}