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 
37 
39  struct md_store_t *store,
40  const md_timeslice_t *renew_window,
41  const char *user_agent, const char *proxy_url);
42 
43 apr_status_t md_ocsp_init_id(struct md_data_t *id, apr_pool_t *p, const md_cert_t *cert);
44 
45 apr_status_t md_ocsp_prime(md_ocsp_reg_t *reg, const char *ext_id, apr_size_t ext_id_len,
46  md_cert_t *x, md_cert_t *issuer, const md_t *md);
47 
48 typedef void md_ocsp_copy_der(const unsigned char *der, apr_size_t der_len, void *userdata);
49 
51  const char *ext_id, apr_size_t ext_id_len,
52  apr_pool_t *p, const md_t *md);
53 
55  md_ocsp_reg_t *reg, const md_cert_t *cert,
56  apr_pool_t *p, const md_t *md);
57 
59 
60 void md_ocsp_renew(md_ocsp_reg_t *reg, apr_pool_t *p, apr_pool_t *ptemp, apr_time_t *pnext_run);
61 
63  apr_time_t timestamp);
64 
65 void md_ocsp_get_summary(struct md_json_t **pjson, md_ocsp_reg_t *reg, apr_pool_t *p);
66 void md_ocsp_get_status_all(struct md_json_t **pjson, md_ocsp_reg_t *reg, apr_pool_t *p);
67 
68 struct md_job_t *md_ocsp_job_make(md_ocsp_reg_t *ocsp, const char *mdomain, apr_pool_t *p);
69 
70 #endif /* md_ocsp_h */
size_t apr_size_t
Definition: apr.h:393
struct md_cert_t md_cert_t
Definition: md_crypt.h:122
Definition: md.h:76
Definition: md_store.h:307
struct md_json_t md_json_t
Definition: md_json.h:29
Definition: md_util.h:39
md_ocsp_cert_stat_t md_ocsp_cert_stat_value(const char *name)
apr_status_t md_ocsp_init_id(struct md_data_t *id, apr_pool_t *p, const md_cert_t *cert)
void md_ocsp_renew(md_ocsp_reg_t *reg, apr_pool_t *p, apr_pool_t *ptemp, apr_time_t *pnext_run)
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)
apr_size_t md_ocsp_count(md_ocsp_reg_t *reg)
Definition: md_status.h:52
md_ocsp_cert_stat_t
Definition: md_ocsp.h:27
const char * mdomain
Definition: md_status.h:54
struct md_job_t * md_ocsp_job_make(md_ocsp_reg_t *ocsp, const char *mdomain, apr_pool_t *p)
Definition: md_ocsp.h:28
apr_int64_t apr_time_t
Definition: apr_time.h:45
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)
Definition: md_ocsp.h:30
void md_ocsp_get_summary(struct md_json_t **pjson, md_ocsp_reg_t *reg, apr_pool_t *p)
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)
void md_ocsp_copy_der(const unsigned char *der, apr_size_t der_len, void *userdata)
Definition: md_ocsp.h:48
Definition: md_time.h:60
Definition: md_result.h:29
apr_pool_t * p
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)
const char * md_ocsp_cert_stat_name(md_ocsp_cert_stat_t stat)
void md_ocsp_get_status_all(struct md_json_t **pjson, md_ocsp_reg_t *reg, apr_pool_t *p)
struct md_ocsp_reg_t md_ocsp_reg_t
Definition: md_ocsp.h:36
apr_status_t md_ocsp_remove_responses_older_than(md_ocsp_reg_t *reg, apr_pool_t *p, apr_time_t timestamp)
const char * name
Definition: mod_dav.h:805
Definition: md_ocsp.h:29
struct apr_pool_t apr_pool_t
Definition: apr_pools.h:60
Definition: md_time.h:27
int apr_status_t
Definition: apr_errno.h:44