aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/ejabberd_acme.hrl34
1 files changed, 34 insertions, 0 deletions
diff --git a/include/ejabberd_acme.hrl b/include/ejabberd_acme.hrl
new file mode 100644
index 000000000..8e8e558a0
--- /dev/null
+++ b/include/ejabberd_acme.hrl
@@ -0,0 +1,34 @@
+
+-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().