mirror of
https://github.com/processone/ejabberd.git
synced 2024-06-10 21:47:01 +02:00
9cf596c67b
This is done so that possible future updates to the data structure don't break existing code. With this change it will be possible to update the data structure and keep the same old persistent data file, which will still have the expected list format but with more properties
34 lines
663 B
Erlang
34 lines
663 B
Erlang
|
|
-record(challenge, {
|
|
type = <<"http-01">> :: bitstring(),
|
|
status = pending :: pending | valid | invalid,
|
|
uri = "" :: url(),
|
|
token = <<"">> :: bitstring()
|
|
}).
|
|
|
|
-record(data_acc, {
|
|
id :: list(),
|
|
key :: jose_jwk:key()
|
|
}).
|
|
|
|
-record(data_cert, {
|
|
domain :: list(),
|
|
pem :: binary()
|
|
}).
|
|
|
|
|
|
|
|
|
|
-type nonce() :: string().
|
|
-type url() :: string().
|
|
-type proplist() :: [{_, _}].
|
|
-type dirs() :: #{string() => url()}.
|
|
-type jws() :: map().
|
|
-type handle_resp_fun() :: fun(({ok, proplist(), proplist()}) -> {ok, _, nonce()}).
|
|
|
|
-type acme_challenge() :: #challenge{}.
|
|
|
|
-type account_opt() :: string().
|
|
|
|
-type pem_certificate() :: bitstring().
|