{fast_tls, ".*", {git, "https://github.com/processone/fast_tls", {tag, "1.0.23"}}},
{stringprep, ".*", {git, "https://github.com/processone/stringprep", {tag, "1.0.12"}}},
{fast_xml, ".*", {git, "https://github.com/processone/fast_xml", {tag, "1.1.32"}}},
- {xmpp, ".*", {git, "https://github.com/processone/xmpp", "64fbddd"}},
+ {xmpp, ".*", {git, "https://github.com/processone/xmpp", "c98ee04"}},
{fast_yaml, ".*", {git, "https://github.com/processone/fast_yaml", {tag, "1.0.15"}}},
{jiffy, ".*", {git, "https://github.com/davisp/jiffy", {tag, "0.14.8"}}},
{p1_oauth2, ".*", {git, "https://github.com/processone/p1_oauth2", {tag, "0.6.3"}}},
%% xmpp_stream_in callbacks
-export([init/1, handle_call/3, handle_cast/2,
handle_info/2, terminate/2, code_change/3]).
--export([tls_options/1, tls_required/1, tls_enabled/1,
- compress_methods/1, sasl_mechanisms/2,
+-export([tls_options/1, tls_required/1, tls_enabled/1, compress_methods/1,
unauthenticated_stream_features/1, authenticated_stream_features/1,
handle_stream_start/2, handle_stream_end/2,
handle_stream_established/1, handle_auth_success/4,
tls_enabled(#{server_host := LServer}) ->
ejabberd_s2s:tls_enabled(LServer).
-sasl_mechanisms(Mechs, #{server_host := LServer}) ->
- lists:filter(
- fun(<<"EXTERNAL">>) -> ejabberd_s2s:tls_verify(LServer);
- (_) -> false
- end, Mechs).
-
compress_methods(#{server_host := LServer}) ->
case ejabberd_s2s:zlib_enabled(LServer) of
true -> [<<"zlib">>];