Blame modules/md/md_acme_acct.h

Packit 90a5c9
/* Licensed to the Apache Software Foundation (ASF) under one or more
Packit 90a5c9
 * contributor license agreements.  See the NOTICE file distributed with
Packit 90a5c9
 * this work for additional information regarding copyright ownership.
Packit 90a5c9
 * The ASF licenses this file to You under the Apache License, Version 2.0
Packit 90a5c9
 * (the "License"); you may not use this file except in compliance with
Packit 90a5c9
 * the License.  You may obtain a copy of the License at
Packit 90a5c9
 *
Packit 90a5c9
 *     http://www.apache.org/licenses/LICENSE-2.0
Packit 90a5c9
 *
Packit 90a5c9
 * Unless required by applicable law or agreed to in writing, software
Packit 90a5c9
 * distributed under the License is distributed on an "AS IS" BASIS,
Packit 90a5c9
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Packit 90a5c9
 * See the License for the specific language governing permissions and
Packit 90a5c9
 * limitations under the License.
Packit 90a5c9
 */
Packit 90a5c9
Packit 90a5c9
#ifndef mod_md_md_acme_acct_h
Packit 90a5c9
#define mod_md_md_acme_acct_h
Packit 90a5c9
Packit 90a5c9
struct md_acme_req;
Packit 90a5c9
struct md_json_t;
Packit 90a5c9
struct md_pkey_t;
Packit 90a5c9
Packit 90a5c9
Packit 90a5c9
/** 
Packit 90a5c9
 * An ACME account at an ACME server.
Packit 90a5c9
 */
Packit 90a5c9
typedef struct md_acme_acct_t md_acme_acct_t;
Packit 90a5c9
Packit 90a5c9
struct md_acme_acct_t {
Packit 90a5c9
    const char *id;                 /* short, unique id for the account */
Packit 90a5c9
    const char *url;                /* url of the account, once registered */
Packit 90a5c9
    const char *ca_url;             /* url of the ACME protocol endpoint */
Packit 90a5c9
    apr_array_header_t *contacts;   /* list of contact uris, e.g. mailto:xxx */
Packit 90a5c9
    const char *tos_required;       /* terms of service asked for by CA */
Packit 90a5c9
    const char *agreement;          /* terms of service agreed to by user */
Packit 90a5c9
    
Packit 90a5c9
    struct md_json_t *registration; /* data from server registration */
Packit 90a5c9
    int disabled;
Packit 90a5c9
};
Packit 90a5c9
Packit 90a5c9
#define MD_FN_ACCOUNT           "account.json"
Packit 90a5c9
#define MD_FN_ACCT_KEY          "account.pem"
Packit 90a5c9
Packit 90a5c9
/* ACME account private keys are always RSA and have that many bits. Since accounts
Packit 90a5c9
 * are expected to live long, better err on the safe side. */
Packit 90a5c9
#define MD_ACME_ACCT_PKEY_BITS  3072
Packit 90a5c9
Packit 90a5c9
#endif /* md_acme_acct_h */