Apache HTTPD
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
21struct apr_table_t;
22struct md_acme_t;
23struct md_acme_acct_t;
24struct md_json_t;
25struct md_store_t;
26struct md_pkey_spec_t;
27struct 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
44
46
57
58#define MD_FN_HTTP01 "acme-http-01.txt"
59
60void tls_alpn01_fnames(apr_pool_t *p, struct md_pkey_spec_t *kspec, char **keyfn, char **certfn );
61
63
67
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
77 const md_t *md, struct apr_table_t *env, apr_pool_t *p);
78
79#endif /* md_acme_authz_h */
const char * url
Definition apr_escape.h:120
apr_size_t size
int apr_status_t
Definition apr_errno.h:44
apr_array_header_t ** result
char const *const char const *const ** env
apr_int64_t apr_time_t
Definition apr_time.h:45
md_acme_authz_state_t
@ MD_ACME_AUTHZ_S_PENDING
@ MD_ACME_AUTHZ_S_VALID
@ MD_ACME_AUTHZ_S_UNKNOWN
@ MD_ACME_AUTHZ_S_INVALID
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
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)
apr_pool_t * p
Definition md_event.c:32
const char * error_type
const char * domain
const struct md_json_t * error_subproblems
struct md_json_t * resource
apr_time_t expires
md_acme_authz_state_t state
const char * url
const char * error_detail
Definition md.h:76