Apache2
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 
45 typedef struct md_acme_authz_t md_acme_authz_t;
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 
60 void tls_alpn01_fnames(apr_pool_t *p, struct md_pkey_spec_t *kspec, char **keyfn, char **certfn );
61 
63 
65  md_acme_authz_t **pauthz);
67 
69  struct md_store_t *store, apr_array_header_t *challenges,
70  struct md_pkeys_spec_t *key_spec,
71  apr_array_header_t *acme_tls_1_domains, const md_t *md,
72  struct apr_table_t *env,
73  apr_pool_t *p, const char **setup_token,
74  struct md_result_t *result);
75 
76 apr_status_t md_acme_authz_teardown(struct md_store_t *store, const char *setup_token,
77  const md_t *md, struct apr_table_t *env, apr_pool_t *p);
78 
79 #endif /* md_acme_authz_h */
proxy_worker proxy_server_conf char * url
Definition: mod_proxy.h:657
int apr_status_t
Definition: apr_errno.h:44
struct apr_pool_t apr_pool_t
Definition: apr_pools.h:60
struct apr_table_t apr_table_t
Definition: apr_tables.h:56
apr_int64_t apr_time_t
Definition: apr_time.h:45
md_acme_authz_state_t
Definition: md_acme_authz.h:38
@ MD_ACME_AUTHZ_S_PENDING
Definition: md_acme_authz.h:40
@ MD_ACME_AUTHZ_S_VALID
Definition: md_acme_authz.h:41
@ MD_ACME_AUTHZ_S_UNKNOWN
Definition: md_acme_authz.h:39
@ MD_ACME_AUTHZ_S_INVALID
Definition: md_acme_authz.h:42
apr_status_t md_acme_authz_retrieve(md_acme_t *acme, apr_pool_t *p, const char *url, md_acme_authz_t **pauthz)
md_acme_authz_t * md_acme_authz_create(apr_pool_t *p)
struct md_acme_challenge_t md_acme_challenge_t
Definition: md_acme_authz.h:29
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_pkeys_spec_t *key_spec, apr_array_header_t *acme_tls_1_domains, const md_t *md, struct apr_table_t *env, apr_pool_t *p, const char **setup_token, struct md_result_t *result)
apr_status_t md_acme_authz_teardown(struct md_store_t *store, const char *setup_token, const md_t *md, struct apr_table_t *env, apr_pool_t *p)
void tls_alpn01_fnames(apr_pool_t *p, struct md_pkey_spec_t *kspec, char **keyfn, char **certfn)
apr_status_t md_acme_authz_update(md_acme_authz_t *authz, struct md_acme_t *acme, apr_pool_t *p)
struct md_json_t md_json_t
Definition: md_json.h:29
Definition: apr_tables.h:62
Definition: md_acme_acct.h:38
Definition: md_acme_authz.h:47
const char * error_type
Definition: md_acme_authz.h:52
const char * domain
Definition: md_acme_authz.h:48
const struct md_json_t * error_subproblems
Definition: md_acme_authz.h:54
struct md_json_t * resource
Definition: md_acme_authz.h:55
apr_time_t expires
Definition: md_acme_authz.h:51
md_acme_authz_state_t state
Definition: md_acme_authz.h:50
const char * url
Definition: md_acme_authz.h:49
const char * error_detail
Definition: md_acme_authz.h:53
Definition: md_acme.h:94
Definition: md_crypt.h:63
Definition: md_crypt.h:71
Definition: md_result.h:29
Definition: md_store.h:325
Definition: md.h:76
apr_pool_t * p