| 518 | } |
| 519 | |
| 520 | static void si_val_activity(status_ctx *ctx, md_json_t *mdj, const status_info *info) |
| 521 | { |
| 522 | apr_time_t t; |
| 523 | const char *prefix = ctx->prefix; |
| 524 | |
| 525 | (void)info; |
| 526 | if (!HTML_STATUS(ctx)) { |
| 527 | ctx->prefix = apr_pstrcat(ctx->p, prefix, info->label, NULL); |
| 528 | } |
| 529 | |
| 530 | if (md_json_has_key(mdj, MD_KEY_RENEWAL, NULL)) { |
| 531 | print_job_summary(ctx, mdj, MD_KEY_RENEWAL, NULL); |
| 532 | return; |
| 533 | } |
| 534 | |
| 535 | t = md_json_get_time(mdj, MD_KEY_RENEW_AT, NULL); |
| 536 | if (t > apr_time_now()) { |
| 537 | print_time(ctx, "Renew", t); |
| 538 | } |
| 539 | else if (t) { |
| 540 | if (HTML_STATUS(ctx)) { |
| 541 | apr_brigade_puts(ctx->bb, NULL, NULL, "Pending"); |
| 542 | } |
| 543 | else { |
| 544 | apr_brigade_printf(ctx->bb, NULL, NULL, "%s: %s", ctx->prefix, "Pending\n"); |
| 545 | } |
| 546 | } |
| 547 | else if (MD_RENEW_MANUAL == md_json_getl(mdj, MD_KEY_RENEW_MODE, NULL)) { |
| 548 | if (HTML_STATUS(ctx)) { |
| 549 | apr_brigade_puts(ctx->bb, NULL, NULL, "Manual renew"); |
| 550 | } |
| 551 | else { |
| 552 | apr_brigade_printf(ctx->bb, NULL, NULL, "%s: %s", ctx->prefix, "Manual renew\n"); |
| 553 | } |
| 554 | } |
| 555 | if (!HTML_STATUS(ctx)) { |
| 556 | ctx->prefix = prefix; |
| 557 | } |
| 558 | } |
| 559 | |
| 560 | static int cert_check_iter(void *baton, const char *key, md_json_t *json) |
| 561 | { |
nothing calls this directly
no test coverage detected