Changeset View
Changeset View
Standalone View
Standalone View
src/getauditlog.c
Show First 20 Lines • Show All 41 Lines • ▼ Show 20 Lines | |||||
getauditlog_start (gpgme_ctx_t ctx, int synchronous, | getauditlog_start (gpgme_ctx_t ctx, int synchronous, | ||||
gpgme_data_t output, unsigned int flags) | gpgme_data_t output, unsigned int flags) | ||||
{ | { | ||||
gpgme_error_t err; | gpgme_error_t err; | ||||
if (!output) | if (!output) | ||||
return gpg_error (GPG_ERR_INV_VALUE); | return gpg_error (GPG_ERR_INV_VALUE); | ||||
if (!(flags & GPGME_AUDITLOG_DIAG)) | |||||
{ | |||||
err = _gpgme_op_reset (ctx, ((synchronous&255) | 256) ); | err = _gpgme_op_reset (ctx, ((synchronous&255) | 256) ); | ||||
if (err) | if (err) | ||||
return err; | return err; | ||||
} | |||||
_gpgme_engine_set_status_handler (ctx->engine, | _gpgme_engine_set_status_handler (ctx->engine, | ||||
getauditlog_status_handler, ctx); | getauditlog_status_handler, ctx); | ||||
return _gpgme_engine_op_getauditlog (ctx->engine, output, flags); | return _gpgme_engine_op_getauditlog (ctx->engine, output, flags); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 42 Lines • Show Last 20 Lines |