aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mod_s2s_dialback.erl2
-rw-r--r--src/xmpp_stream_in.erl4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/mod_s2s_dialback.erl b/src/mod_s2s_dialback.erl
index 7e952f576..4be58d42c 100644
--- a/src/mod_s2s_dialback.erl
+++ b/src/mod_s2s_dialback.erl
@@ -240,7 +240,7 @@ s2s_out_packet(#{server := LServer, remote_server := RServer} = State,
ejabberd_s2s_out:establish(State2);
_ ->
Reason = format_error(Result),
- ejabberd_s2s_out:handle_auth_failure(<<"dialback">>, Reason, State1)
+ ejabberd_s2s_out:handle_auth_failure(<<"dialback">>, {auth, Reason}, State1)
end;
s2s_out_packet(State, Pkt) when is_record(Pkt, db_result);
is_record(Pkt, db_verify) ->
diff --git a/src/xmpp_stream_in.erl b/src/xmpp_stream_in.erl
index b84a971f7..dd135df1e 100644
--- a/src/xmpp_stream_in.erl
+++ b/src/xmpp_stream_in.erl
@@ -63,7 +63,7 @@
-callback handle_authenticated_packet(xmpp_element(), state()) -> state().
-callback handle_unbinded_packet(xmpp_element(), state()) -> state().
-callback handle_auth_success(binary(), binary(), module(), state()) -> state().
--callback handle_auth_failure(binary(), binary(), atom(), state()) -> state().
+-callback handle_auth_failure(binary(), binary(), binary(), state()) -> state().
-callback handle_send(xmpp_element(), ok | {error, inet:posix()}, state()) -> state().
-callback handle_recv(fxml:xmlel(), xmpp_element() | {error, term()}, state()) -> state().
-callback handle_timeout(state()) -> state().
@@ -664,7 +664,7 @@ process_handshake(#handshake{data = Digest},
end;
false ->
State1 = try Mod:handle_auth_failure(
- RemoteServer, <<"handshake">>, 'not-authorized', State)
+ RemoteServer, <<"handshake">>, <<"not authorized">>, State)
catch _:undef -> State
end,
case is_disconnected(State1) of