diff options
author | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2015-06-01 15:38:27 +0300 |
---|---|---|
committer | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2015-06-01 15:38:27 +0300 |
commit | fb6267f38ee47f3f725f88324d132741c85dfb6a (patch) | |
tree | d63c5efd207a736f9215d645ccb881bba942ed6a /src/cyrsasl_digest.erl | |
parent | Do not try to fetch module options via eldap_utils (diff) |
Add config validation at startup
Diffstat (limited to 'src/cyrsasl_digest.erl')
-rw-r--r-- | src/cyrsasl_digest.erl | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/cyrsasl_digest.erl b/src/cyrsasl_digest.erl index 10f96413..4b14bafd 100644 --- a/src/cyrsasl_digest.erl +++ b/src/cyrsasl_digest.erl @@ -25,9 +25,12 @@ -module(cyrsasl_digest). +-behaviour(ejabberd_config). + -author('alexey@sevcom.net'). --export([start/1, stop/0, mech_new/4, mech_step/2, parse/1]). +-export([start/1, stop/0, mech_new/4, mech_step/2, + parse/1, opt_type/1]). -include("ejabberd.hrl"). -include("logger.hrl"). @@ -256,3 +259,6 @@ response(KeyVals, User, Passwd, Nonce, AuthzId, ":", NC/binary, ":", CNonce/binary, ":", QOP/binary, ":", (hex((erlang:md5(A2))))/binary>>, hex((erlang:md5(T))). + +opt_type(fqdn) -> fun iolist_to_binary/1; +opt_type(_) -> [fqdn]. |