mirror of
https://github.com/processone/ejabberd.git
synced 2024-06-30 23:02:00 +02:00
35 lines
700 B
Erlang
35 lines
700 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 :: jose_jwk:key(),
|
|
path :: file:filename()
|
|
}).
|
|
|
|
|
|
|
|
|
|
-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().
|