diff options
author | Werner Koch <[email protected]> | 2007-12-06 15:55:03 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2007-12-06 15:55:03 +0000 |
commit | 89671cdd6425e0c2247bd02c7ce6bb2f6339f94d (patch) | |
tree | df62d4ec104e82ffce7f163e357d3e9ab45d81c0 /sm/server.c | |
parent | Created help files form the current po entries. (diff) | |
download | gnupg-89671cdd6425e0c2247bd02c7ce6bb2f6339f94d.tar.gz gnupg-89671cdd6425e0c2247bd02c7ce6bb2f6339f94d.zip |
More code for the audit log.
Diffstat (limited to 'sm/server.c')
-rw-r--r-- | sm/server.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/sm/server.c b/sm/server.c index d54865ac9..e61f9d600 100644 --- a/sm/server.c +++ b/sm/server.c @@ -934,12 +934,15 @@ cmd_genkey (assuan_context_t ctx, char *line) -/* GETAUDITLOG [--data] +/* GETAUDITLOG [--data] [--html] !!!WORK in PROGRESS!!! If --data is used, the output is send using D-lines and not to the source given by an OUTPUT command. + + If --html is used the output is formated as an XHTML block. This is + designed to be incorporated into a HTML document. */ static int cmd_getauditlog (assuan_context_t ctx, char *line) @@ -947,10 +950,11 @@ cmd_getauditlog (assuan_context_t ctx, char *line) ctrl_t ctrl = assuan_get_pointer (ctx); int out_fd; estream_t out_stream; - int opt_data; + int opt_data, opt_html; int rc; opt_data = has_option (line, "--data"); + opt_html = has_option (line, "--html"); line = skip_options (line); if (!ctrl->audit) @@ -976,7 +980,7 @@ cmd_getauditlog (assuan_context_t ctx, char *line) } } - audit_print_result (ctrl->audit, out_stream); + audit_print_result (ctrl->audit, out_stream, opt_html); rc = 0; es_fclose (out_stream); |