%% OTP R14B03 and older provided release_handler_1:eval_script/3
%% But OTP R14B04 and newer provide release_handler_1:eval_script/5
+%% Dialyzer reports a call to missing function; don't worry.
eval_script(Script, Apps, LibDirs) ->
case lists:member({eval_script, 5}, release_handler_1:module_info(exports)) of
true ->
[{ejabberd, "", filename:join(Dir, "..")}]),
case Check of
ok ->
+ %% This clause is for OTP R14B03 and older.
+ %% Newer Dialyzer reports a never match pattern; don't worry.
?DEBUG("script: ~p~n", [Script]),
?DEBUG("low level script: ~p~n", [LowLevelScript]),
?DEBUG("check: ~p~n", [Check]);
end;
init({Hosts, Port, Rootdn, Passwd, Opts}) ->
catch ssl:start(),
+ %% ssl:seed was removed in OTP R14B04, newer Dialyzer will complain
catch ssl:seed(randoms:get_string()),
Encrypt = case proplists:get_value(encrypt, Opts) of
tls -> tls;