diff options
author | Konstantinos Kallas <konstantinos.kallas@hotmail.com> | 2017-06-17 19:06:39 +0300 |
---|---|---|
committer | Konstantinos Kallas <konstantinos.kallas@hotmail.com> | 2017-06-17 19:06:39 +0300 |
commit | 1d1250b0560cdc242ddca30446f298ae1a8bbe62 (patch) | |
tree | 8341d7322ee1dbb37513751743c8ba7fd8d4274f /include | |
parent | 133d2ae6d50e6b8e2fe9b1ccb6e2d15e39305c8d (diff) |
Cleanup acme_challenge.erl, move types and records in ejabberd_acme.hrl
Diffstat (limited to 'include')
-rw-r--r-- | include/ejabberd_acme.hrl | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/ejabberd_acme.hrl b/include/ejabberd_acme.hrl new file mode 100644 index 000000000..ae44e101e --- /dev/null +++ b/include/ejabberd_acme.hrl @@ -0,0 +1,15 @@ + +-record(challenge, { + type = <<"http-01">> :: bitstring(), + status = pending :: pending | valid | invalid, + uri = <<"">> :: bitstring(), + token = <<"">> :: bitstring() + }). + +-type nonce() :: string(). +-type url() :: string(). +-type proplist() :: [{_, _}]. +-type jws() :: map(). +-type handle_resp_fun() :: fun(({ok, proplist(), proplist()}) -> {ok, _, nonce()}). + +-type acme_challenge() :: #challenge{}. |