summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorEvgeny Khramtsov <ekhramtsov@process-one.net>2019-09-20 12:36:31 +0300
committerEvgeny Khramtsov <ekhramtsov@process-one.net>2019-09-20 12:36:31 +0300
commite227940b855debd33b6c9523664e57e00c301988 (patch)
treecafb33b6d39042e72a7bb18b6ab06c43ac37457d /include
parentJWT-only authentication for some users (#3012) (diff)
Improve ACME implementation
Fixes #2487, fixes #2590, fixes #2638
Diffstat (limited to 'include')
-rw-r--r--include/ejabberd_acme.hrl53
1 files changed, 0 insertions, 53 deletions
diff --git a/include/ejabberd_acme.hrl b/include/ejabberd_acme.hrl
deleted file mode 100644
index f48a6d8b..00000000
--- a/include/ejabberd_acme.hrl
+++ /dev/null
@@ -1,53 +0,0 @@
-
--record(challenge, {
- type = <<"http-01">> :: bitstring(),
- status = pending :: pending | valid | invalid,
- uri = "" :: url(),
- token = <<"">> :: bitstring()
- }).
-
--record(data_acc, {
- id :: list(),
- ca_url :: url(),
- key :: jose_jwk:key()
- }).
--type data_acc() :: #data_acc{}.
-
--record(data_cert, {
- domain :: bitstring(),
- pem :: pem(),
- path :: string()
- }).
--type data_cert() :: #data_cert{}.
-
-%%
-%% Types
-%%
-
-%% Acme configuration
--type acme_config() :: [{ca_url, url()} | {contact, bitstring()}].
-
-%% The main data type that ejabberd_acme keeps
--type acme_data() :: proplist().
-
-%% The list of certificates kept in data
--type data_certs() :: proplist(bitstring(), data_cert()).
-
-%% The certificate saved in pem format
--type pem() :: bitstring().
-
--type nonce() :: string().
--type url() :: string().
--type proplist() :: [{_, _}].
--type proplist(X,Y) :: [{X,Y}].
--type dirs() :: #{string() => url()}.
--type jws() :: map().
--type handle_resp_fun() :: fun(({ok, proplist(), proplist()}) -> {ok, _, nonce()}).
-
--type acme_challenge() :: #challenge{}.
-
-%% Options
--type account_opt() :: string().
--type verbose_opt() :: string().
--type domains_opt() :: string().
-