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

Function md_ocsp_provide_status

modules/md/mod_md_ocsp.c:108–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106} ocsp_copy_ctx_t;
107
108int md_ocsp_provide_status(server_rec *s, conn_rec *c,
109 const char *id, apr_size_t id_len,
110 ap_ssl_ocsp_copy_resp *cb, void *userdata)
111{
112 md_srv_conf_t *sc;
113 const md_t *md;
114 apr_status_t rv;
115
116 sc = md_config_get(s);
117 if (!staple_here(sc)) goto declined;
118
119 md = ((sc->assigned && sc->assigned->nelts == 1)?
120 APR_ARRAY_IDX(sc->assigned, 0, const md_t*) : NULL);
121 ap_log_cerror(APLOG_MARK, APLOG_TRACE2, 0, c, "get stapling for: %s",
122 md? md->name : s->server_hostname);
123
124 rv = md_ocsp_get_status(cb, userdata, sc->mc->ocsp, id, id_len, c->pool, md);
125 if (APR_STATUS_IS_ENOENT(rv)) goto declined;
126 return OK;
127
128declined:
129 return DECLINED;
130}
131
132
133/**************************************************************************************************/

Callers

nothing calls this directly

Calls 3

md_config_getFunction · 0.85
staple_hereFunction · 0.85
md_ocsp_get_statusFunction · 0.85

Tested by

no test coverage detected