| 106 | } ocsp_copy_ctx_t; |
| 107 | |
| 108 | int 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 | |
| 128 | declined: |
| 129 | return DECLINED; |
| 130 | } |
| 131 | |
| 132 | |
| 133 | /**************************************************************************************************/ |
nothing calls this directly
no test coverage detected