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  */
17 #ifndef mod_md_md_acme_authz_h
18 #define mod_md_md_acme_authz_h
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;
31 /**************************************************************************************************/
32 /* authorization request for a specific domain name */
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"
38 typedef enum {
48  const char *domain;
49  const char *url;
52  const char *error_type;
53  const char *error_detail;
56 };
58 #define MD_FN_HTTP01 "acme-http-01.txt"
60 void tls_alpn01_fnames(apr_pool_t *p, struct md_pkey_spec_t *kspec, char **keyfn, char **certfn );
65  md_acme_authz_t **pauthz);
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 char *mdomain,
72  struct apr_table_t *env,
73  apr_pool_t *p, const char **setup_token,
74  struct md_result_t *result);
76 apr_status_t md_acme_authz_teardown(struct md_store_t *store, const char *setup_token,
77  const char *mdomain, struct apr_table_t *env, apr_pool_t *p);
79 #endif /* md_acme_authz_h */
Definition: md_acme_acct.h:38
Definition: md_store.h:307
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
const char * url
Definition: md_acme_authz.h:49
Definition: md_acme_authz.h:42
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 char *mdomain, struct apr_table_t *env, apr_pool_t *p, const char **setup_token, struct md_result_t *result)
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
void tls_alpn01_fnames(apr_pool_t *p, struct md_pkey_spec_t *kspec, char **keyfn, char **certfn)
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
struct md_json_t * resource
Definition: md_acme_authz.h:55
apr_status_t md_acme_authz_teardown(struct md_store_t *store, const char *setup_token, const char *mdomain, struct apr_table_t *env, apr_pool_t *p)
Definition: md_acme_authz.h:38
apr_time_t expires
Definition: md_acme_authz.h:51
Definition: md_result.h:29
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
Definition: md_crypt.h:73
int apr_status_t
Definition: apr_errno.h:44
const char * error_detail
Definition: md_acme_authz.h:53
Definition: md_crypt.h:65