MCPcopy Create free account
hub / github.com/apache/httpd / select_updates

Function select_updates

modules/md/md_ocsp.c:863–880  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

861}
862
863static int select_updates(void *baton, const void *key, apr_ssize_t klen, const void *val)
864{
865 md_ocsp_todo_ctx_t *ctx = baton;
866 md_ocsp_status_t *ostat = (md_ocsp_status_t *)val;
867 md_ocsp_update_t *update;
868
869 (void)key;
870 (void)klen;
871 if (ostat->next_run <= ctx->time) {
872 update = apr_pcalloc(ctx->ptemp, sizeof(*update));
873 update->p = ctx->ptemp;
874 update->ostat = ostat;
875 update->result = md_result_md_make(update->p, ostat->md_name);
876 update->job = NULL;
877 APR_ARRAY_PUSH(ctx->todos, md_ocsp_update_t*) = update;
878 }
879 return 1;
880}
881
882static int select_next_run(void *baton, const void *key, apr_ssize_t klen, const void *val)
883{

Callers

nothing calls this directly

Calls 1

md_result_md_makeFunction · 0.85

Tested by

no test coverage detected