Skip to content

Commit

Permalink
Rename idna.erl to ejabberd_idna.erl (processone#702)
Browse files Browse the repository at this point in the history
  • Loading branch information
zinid committed Sep 2, 2015
1 parent 608661d commit 6740b1f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/idna.erl → src/ejabberd_idna.erl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
%%%----------------------------------------------------------------------
%%% File : idna.erl
%%% File : ejabberd_idna.erl
%%% Author : Alexey Shchepin <[email protected]>
%%% Purpose : Support for IDNA (RFC3490)
%%% Created : 10 Apr 2004 by Alexey Shchepin <[email protected]>
Expand All @@ -23,7 +23,7 @@
%%%
%%%----------------------------------------------------------------------

-module(idna).
-module(ejabberd_idna).

-author('[email protected]').

Expand Down
4 changes: 2 additions & 2 deletions src/ejabberd_s2s.erl
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ check_peer_certificate(SockMod, Sock, Peer) ->
{ok, Cert} ->
case SockMod:get_verify_result(Sock) of
0 ->
case idna:domain_utf8_to_ascii(Peer) of
case ejabberd_idna:domain_utf8_to_ascii(Peer) of
false ->
{error, <<"Cannot decode remote server name">>};
AsciiPeer ->
Expand Down Expand Up @@ -720,7 +720,7 @@ get_cert_domains(Cert) ->
lresource =
<<"">>} ->
case
idna:domain_utf8_to_ascii(LD)
ejabberd_idna:domain_utf8_to_ascii(LD)
of
false ->
[];
Expand Down
2 changes: 1 addition & 1 deletion src/ejabberd_s2s_out.erl
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ open_socket(init, StateData) ->
[{StateData#state.myname, StateData#state.server,
StateData#state.new, StateData#state.verify}]),
AddrList = case
idna:domain_utf8_to_ascii(StateData#state.server)
ejabberd_idna:domain_utf8_to_ascii(StateData#state.server)
of
false -> [];
ASCIIAddr -> get_addr_port(ASCIIAddr)
Expand Down

0 comments on commit 6740b1f

Please sign in to comment.