25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-22 16:20:52 +01:00

Merge branch 'master' of github.com:processone/ejabberd

This commit is contained in:
Mickael Remond 2015-09-02 17:02:20 +02:00
commit a85a8dff45
3 changed files with 5 additions and 5 deletions

View File

@ -1,5 +1,5 @@
%%%----------------------------------------------------------------------
%%% File : idna.erl
%%% File : ejabberd_idna.erl
%%% Author : Alexey Shchepin <alexey@process-one.net>
%%% Purpose : Support for IDNA (RFC3490)
%%% Created : 10 Apr 2004 by Alexey Shchepin <alexey@process-one.net>
@ -23,7 +23,7 @@
%%%
%%%----------------------------------------------------------------------
-module(idna).
-module(ejabberd_idna).
-author('alexey@process-one.net').

View File

@ -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 ->
@ -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 ->
[];

View File

@ -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)