aboutsummaryrefslogtreecommitdiff
path: root/src/ejabberd_option.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/ejabberd_option.erl')
-rw-r--r--src/ejabberd_option.erl8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ejabberd_option.erl b/src/ejabberd_option.erl
index a2855b1bf..030001ed8 100644
--- a/src/ejabberd_option.erl
+++ b/src/ejabberd_option.erl
@@ -15,6 +15,7 @@
-export([auth_cache_missed/0]).
-export([auth_cache_size/0]).
-export([auth_method/0, auth_method/1]).
+-export([auth_opts/0, auth_opts/1]).
-export([auth_password_format/0, auth_password_format/1]).
-export([auth_use_cache/0, auth_use_cache/1]).
-export([c2s_cafile/0, c2s_cafile/1]).
@@ -220,6 +221,13 @@ auth_method() ->
auth_method(Host) ->
ejabberd_config:get_option({auth_method, Host}).
+-spec auth_opts() -> [{any(),any()}].
+auth_opts() ->
+ auth_opts(global).
+-spec auth_opts(global | binary()) -> [{any(),any()}].
+auth_opts(Host) ->
+ ejabberd_config:get_option({auth_opts, Host}).
+
-spec auth_password_format() -> 'plain' | 'scram'.
auth_password_format() ->
auth_password_format(global).