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:
commit
a85a8dff45
@ -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').
|
||||
|
@ -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 ->
|
||||
[];
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user