Apache2
md_ocsp.h
Go to the documentation of this file.
1 /* Licensed to the Apache Software Foundation (ASF) under one or more
2  * contributor license agreements. See the NOTICE file distributed with
3  * this work for additional information regarding copyright ownership.
4  * The ASF licenses this file to You under the Apache License, Version 2.0
5  * (the "License"); you may not use this file except in compliance with
6  * the License. You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #ifndef md_ocsp_h
18 #define md_ocsp_h
19 
20 struct md_data_t;
21 struct md_job_t;
22 struct md_json_t;
23 struct md_result_t;
24 struct md_store_t;
25 struct md_timeslice_t;
26 
27 typedef enum {
32 
35 
36 typedef struct md_ocsp_reg_t md_ocsp_reg_t;
37 
39  struct md_store_t *store,
40  const md_timeslice_t *renew_window,
41  const char *user_agent, const char *proxy_url,
42  apr_time_t min_delay);
43 
45 
46 apr_status_t md_ocsp_prime(md_ocsp_reg_t *reg, const char *ext_id, apr_size_t ext_id_len,
47  md_cert_t *x, md_cert_t *issuer, const md_t *md);
48 
49 typedef void md_ocsp_copy_der(const unsigned char *der, apr_size_t der_len, void *userdata);
50 
52  const char *ext_id, apr_size_t ext_id_len,
53  apr_pool_t *p, const md_t *md);
54 
56  md_ocsp_reg_t *reg, const md_cert_t *cert,
57  apr_pool_t *p, const md_t *md);
58 
60 
61 void md_ocsp_renew(md_ocsp_reg_t *reg, apr_pool_t *p, apr_pool_t *ptemp, apr_time_t *pnext_run);
62 
64  apr_time_t timestamp);
65 
68 
70 
71 #endif /* md_ocsp_h */
const char * name
Definition: mod_dav.h:805
int apr_status_t
Definition: apr_errno.h:44
size_t apr_size_t
Definition: apr.h:394
struct apr_pool_t apr_pool_t
Definition: apr_pools.h:60
apr_int64_t apr_time_t
Definition: apr_time.h:45
struct md_cert_t md_cert_t
Definition: md_crypt.h:129
struct md_json_t md_json_t
Definition: md_json.h:29
void md_ocsp_get_summary(struct md_json_t **pjson, md_ocsp_reg_t *reg, apr_pool_t *p)
struct md_job_t * md_ocsp_job_make(md_ocsp_reg_t *ocsp, const char *mdomain, apr_pool_t *p)
apr_size_t md_ocsp_count(md_ocsp_reg_t *reg)
const char * md_ocsp_cert_stat_name(md_ocsp_cert_stat_t stat)
apr_status_t md_ocsp_reg_make(md_ocsp_reg_t **preg, apr_pool_t *p, struct md_store_t *store, const md_timeslice_t *renew_window, const char *user_agent, const char *proxy_url, apr_time_t min_delay)
void md_ocsp_renew(md_ocsp_reg_t *reg, apr_pool_t *p, apr_pool_t *ptemp, apr_time_t *pnext_run)
md_ocsp_cert_stat_t
Definition: md_ocsp.h:27
@ MD_OCSP_CERT_ST_GOOD
Definition: md_ocsp.h:29
@ MD_OCSP_CERT_ST_REVOKED
Definition: md_ocsp.h:30
@ MD_OCSP_CERT_ST_UNKNOWN
Definition: md_ocsp.h:28
apr_status_t md_ocsp_remove_responses_older_than(md_ocsp_reg_t *reg, apr_pool_t *p, apr_time_t timestamp)
void md_ocsp_copy_der(const unsigned char *der, apr_size_t der_len, void *userdata)
Definition: md_ocsp.h:49
struct md_ocsp_reg_t md_ocsp_reg_t
Definition: md_ocsp.h:36
apr_status_t md_ocsp_get_status(md_ocsp_copy_der *cb, void *userdata, md_ocsp_reg_t *reg, const char *ext_id, apr_size_t ext_id_len, apr_pool_t *p, const md_t *md)
md_ocsp_cert_stat_t md_ocsp_cert_stat_value(const char *name)
apr_status_t md_ocsp_prime(md_ocsp_reg_t *reg, const char *ext_id, apr_size_t ext_id_len, md_cert_t *x, md_cert_t *issuer, const md_t *md)
apr_status_t md_ocsp_init_id(struct md_data_t *id, apr_pool_t *p, const md_cert_t *cert)
apr_status_t md_ocsp_get_meta(md_ocsp_cert_stat_t *pstat, md_timeperiod_t *pvalid, md_ocsp_reg_t *reg, const md_cert_t *cert, apr_pool_t *p, const md_t *md)
void md_ocsp_get_status_all(struct md_json_t **pjson, md_ocsp_reg_t *reg, apr_pool_t *p)
Definition: md_util.h:41
Definition: md_status.h:52
const char * mdomain
Definition: md_status.h:54
Definition: md_result.h:29
Definition: md_store.h:325
Definition: md.h:76
Definition: md_time.h:27
Definition: md_time.h:60
apr_pool_t * p