Apache2
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
md_acme_authz.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 mod_md_md_acme_authz_h
18 #define mod_md_md_acme_authz_h
19 
20 struct apr_array_header_t;
21 struct apr_table_t;
22 struct md_acme_t;
23 struct md_acme_acct_t;
24 struct md_json_t;
25 struct md_store_t;
26 struct md_pkey_spec_t;
27 struct md_result_t;
28 
30 
31 /**************************************************************************************************/
32 /* authorization request for a specific domain name */
33 
34 #define MD_AUTHZ_TYPE_DNS01 "dns-01"
35 #define MD_AUTHZ_TYPE_HTTP01 "http-01"
36 #define MD_AUTHZ_TYPE_TLSALPN01 "tls-alpn-01"
37 
38 typedef enum {
44 
46 
48  const char *domain;
49  const char *url;
52  const char *error_type;
53  const char *error_detail;
56 };
57 
58 #define MD_FN_HTTP01 "acme-http-01.txt"
59 #define MD_FN_TLSSNI01_CERT "acme-tls-sni-01.cert.pem"
60 #define MD_FN_TLSSNI01_PKEY "acme-tls-sni-01.key.pem"
61 #define MD_FN_TLSALPN01_CERT "acme-tls-alpn-01.cert.pem"
62 #define MD_FN_TLSALPN01_PKEY "acme-tls-alpn-01.key.pem"
63 
64 
66 
67 /* authz interaction with ACME server */
68 apr_status_t md_acme_authz_register(struct md_acme_authz_t **pauthz, struct md_acme_t *acme,
69  const char *domain, apr_pool_t *p);
70 
72  md_acme_authz_t **pauthz);
74 
76  struct md_store_t *store, apr_array_header_t *challenges,
77  struct md_pkey_spec_t *key_spec,
78  apr_array_header_t *acme_tls_1_domains,
79  struct apr_table_t *env,
80  apr_pool_t *p, const char **setup_token,
81  struct md_result_t *result);
82 
83 apr_status_t md_acme_authz_teardown(struct md_store_t *store, const char *setup_token,
84  struct apr_table_t *env, apr_pool_t *p);
85 
86 #endif /* md_acme_authz_h */
Definition: md_acme_acct.h:38
Definition: md_store.h:278
struct md_json_t md_json_t
Definition: md_json.h:29
const char * error_type
Definition: md_acme_authz.h:52
Definition: apr_tables.h:62
apr_status_t md_acme_authz_respond(md_acme_authz_t *authz, struct md_acme_t *acme, struct md_store_t *store, apr_array_header_t *challenges, struct md_pkey_spec_t *key_spec, apr_array_header_t *acme_tls_1_domains, struct apr_table_t *env, apr_pool_t *p, const char **setup_token, struct md_result_t *result)
const char * url
Definition: md_acme_authz.h:49
Definition: md_acme_authz.h:42
Definition: md_acme_authz.h:40
md_acme_authz_t * md_acme_authz_create(apr_pool_t *p)
const char * domain
Definition: md_acme_authz.h:48
apr_status_t md_acme_authz_teardown(struct md_store_t *store, const char *setup_token, struct apr_table_t *env, apr_pool_t *p)
const struct md_json_t * error_subproblems
Definition: md_acme_authz.h:54
Definition: md_acme_authz.h:41
apr_int64_t apr_time_t
Definition: apr_time.h:45
apr_status_t md_acme_authz_update(md_acme_authz_t *authz, struct md_acme_t *acme, apr_pool_t *p)
md_acme_authz_state_t state
Definition: md_acme_authz.h:50
Definition: md_acme.h:94
struct md_acme_challenge_t md_acme_challenge_t
Definition: md_acme_authz.h:29
proxy_worker proxy_server_conf char * url
Definition: mod_proxy.h:636
struct md_json_t * resource
Definition: md_acme_authz.h:55
md_acme_authz_state_t
Definition: md_acme_authz.h:38
apr_time_t expires
Definition: md_acme_authz.h:51
Definition: md_result.h:27
apr_pool_t * p
Definition: md_acme_authz.h:39
struct apr_table_t apr_table_t
Definition: apr_tables.h:56
Definition: md_acme_authz.h:47
apr_status_t md_acme_authz_retrieve(md_acme_t *acme, apr_pool_t *p, const char *url, md_acme_authz_t **pauthz)
struct apr_pool_t apr_pool_t
Definition: apr_pools.h:60
int apr_status_t
Definition: apr_errno.h:44
const char * error_detail
Definition: md_acme_authz.h:53
apr_status_t md_acme_authz_register(struct md_acme_authz_t **pauthz, struct md_acme_t *acme, const char *domain, apr_pool_t *p)
Definition: md_crypt.h:60