Apache2
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
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_job_t;
21 struct md_json_t;
22 struct md_result_t;
23 struct md_store_t;
24 struct md_timeslice_t;
25 
26 typedef enum {
31 
34 
36 
38  struct md_store_t *store,
39  const md_timeslice_t *renew_window,
40  const char *user_agent, const char *proxy_url);
41 
43  md_cert_t *issuer, const md_t *md);
44 
45 apr_status_t md_ocsp_get_status(unsigned char **pder, int *pderlen,
46  md_ocsp_reg_t *reg, const md_cert_t *cert,
47  apr_pool_t *p, const md_t *md);
48 
50  md_ocsp_reg_t *reg, const md_cert_t *cert,
51  apr_pool_t *p, const md_t *md);
52 
54 
55 void md_ocsp_renew(md_ocsp_reg_t *reg, apr_pool_t *p, apr_pool_t *ptemp, apr_time_t *pnext_run);
56 
58  apr_time_t timestamp);
59 
60 void md_ocsp_get_summary(struct md_json_t **pjson, md_ocsp_reg_t *reg, apr_pool_t *p);
61 void md_ocsp_get_status_all(struct md_json_t **pjson, md_ocsp_reg_t *reg, apr_pool_t *p);
62 
63 void md_ocsp_set_notify_cb(md_ocsp_reg_t *reg, md_job_notify_cb *cb, void *baton);
64 struct md_job_t *md_ocsp_job_make(md_ocsp_reg_t *ocsp, const char *mdomain, apr_pool_t *p);
65 
66 #endif /* md_ocsp_h */
size_t apr_size_t
Definition: apr.h:393
struct md_cert_t md_cert_t
Definition: md_crypt.h:94
Definition: md.h:74
Definition: md_store.h:278
struct md_json_t md_json_t
Definition: md_json.h:29
md_ocsp_cert_stat_t md_ocsp_cert_stat_value(const char *name)
void md_ocsp_renew(md_ocsp_reg_t *reg, apr_pool_t *p, apr_pool_t *ptemp, apr_time_t *pnext_run)
void md_ocsp_set_notify_cb(md_ocsp_reg_t *reg, md_job_notify_cb *cb, void *baton)
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)
apr_status_t md_job_notify_cb(struct md_job_t *job, const char *reason, struct md_result_t *result, apr_pool_t *p, void *baton)
Definition: md.h:294
Definition: md_status.h:52
md_ocsp_cert_stat_t
Definition: md_ocsp.h:26
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:27
apr_int64_t apr_time_t
Definition: apr_time.h:45
Definition: md_ocsp.h:29
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)
Definition: md_time.h:55
Definition: md_result.h:27
apr_pool_t * p
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:35
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:28
struct apr_pool_t apr_pool_t
Definition: apr_pools.h:60
apr_status_t md_ocsp_prime(md_ocsp_reg_t *reg, md_cert_t *x, md_cert_t *issuer, const md_t *md)
Definition: md_time.h:27
int apr_status_t
Definition: apr_errno.h:44
apr_status_t md_ocsp_get_status(unsigned char **pder, int *pderlen, md_ocsp_reg_t *reg, const md_cert_t *cert, apr_pool_t *p, const md_t *md)