mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-26 16:26:24 +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>
|
%%% Author : Alexey Shchepin <alexey@process-one.net>
|
||||||
%%% Purpose : Support for IDNA (RFC3490)
|
%%% Purpose : Support for IDNA (RFC3490)
|
||||||
%%% Created : 10 Apr 2004 by Alexey Shchepin <alexey@process-one.net>
|
%%% 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').
|
-author('alexey@process-one.net').
|
||||||
|
|
@ -225,7 +225,7 @@ check_peer_certificate(SockMod, Sock, Peer) ->
|
|||||||
{ok, Cert} ->
|
{ok, Cert} ->
|
||||||
case SockMod:get_verify_result(Sock) of
|
case SockMod:get_verify_result(Sock) of
|
||||||
0 ->
|
0 ->
|
||||||
case idna:domain_utf8_to_ascii(Peer) of
|
case ejabberd_idna:domain_utf8_to_ascii(Peer) of
|
||||||
false ->
|
false ->
|
||||||
{error, <<"Cannot decode remote server name">>};
|
{error, <<"Cannot decode remote server name">>};
|
||||||
AsciiPeer ->
|
AsciiPeer ->
|
||||||
@ -720,7 +720,7 @@ get_cert_domains(Cert) ->
|
|||||||
lresource =
|
lresource =
|
||||||
<<"">>} ->
|
<<"">>} ->
|
||||||
case
|
case
|
||||||
idna:domain_utf8_to_ascii(LD)
|
ejabberd_idna:domain_utf8_to_ascii(LD)
|
||||||
of
|
of
|
||||||
false ->
|
false ->
|
||||||
[];
|
[];
|
||||||
|
@ -235,7 +235,7 @@ open_socket(init, StateData) ->
|
|||||||
[{StateData#state.myname, StateData#state.server,
|
[{StateData#state.myname, StateData#state.server,
|
||||||
StateData#state.new, StateData#state.verify}]),
|
StateData#state.new, StateData#state.verify}]),
|
||||||
AddrList = case
|
AddrList = case
|
||||||
idna:domain_utf8_to_ascii(StateData#state.server)
|
ejabberd_idna:domain_utf8_to_ascii(StateData#state.server)
|
||||||
of
|
of
|
||||||
false -> [];
|
false -> [];
|
||||||
ASCIIAddr -> get_addr_port(ASCIIAddr)
|
ASCIIAddr -> get_addr_port(ASCIIAddr)
|
||||||
|
Loading…
Reference in New Issue
Block a user