Don't call to xmpp_idna
This commit is contained in:
parent
75fe6f44d2
commit
b7e296857c
|
@ -25,7 +25,7 @@
|
||||||
{stringprep, ".*", {git, "https://github.com/processone/stringprep", {tag, "1.0.17"}}},
|
{stringprep, ".*", {git, "https://github.com/processone/stringprep", {tag, "1.0.17"}}},
|
||||||
{fast_xml, ".*", {git, "https://github.com/processone/fast_xml", {tag, "1.1.37"}}},
|
{fast_xml, ".*", {git, "https://github.com/processone/fast_xml", {tag, "1.1.37"}}},
|
||||||
{idna, ".*", {git, "https://github.com/benoitc/erlang-idna", {tag, "6.0.0"}}},
|
{idna, ".*", {git, "https://github.com/benoitc/erlang-idna", {tag, "6.0.0"}}},
|
||||||
{xmpp, ".*", {git, "https://github.com/processone/xmpp", "3e892bc"}},
|
{xmpp, ".*", {git, "https://github.com/processone/xmpp", "f3517a9"}},
|
||||||
{fast_yaml, ".*", {git, "https://github.com/processone/fast_yaml", {tag, "1.0.20"}}},
|
{fast_yaml, ".*", {git, "https://github.com/processone/fast_yaml", {tag, "1.0.20"}}},
|
||||||
{yconf, ".*", {git, "https://github.com/processone/yconf", {tag, "1.0.0"}}},
|
{yconf, ".*", {git, "https://github.com/processone/yconf", {tag, "1.0.0"}}},
|
||||||
{jiffy, ".*", {git, "https://github.com/davisp/jiffy", {tag, "0.14.8"}}},
|
{jiffy, ".*", {git, "https://github.com/davisp/jiffy", {tag, "0.14.8"}}},
|
||||||
|
|
|
@ -92,14 +92,14 @@ get_certfile(Domain) ->
|
||||||
|
|
||||||
-spec get_certfile_no_default(binary()) -> {ok, filename()} | error.
|
-spec get_certfile_no_default(binary()) -> {ok, filename()} | error.
|
||||||
get_certfile_no_default(Domain) ->
|
get_certfile_no_default(Domain) ->
|
||||||
case xmpp_idna:domain_utf8_to_ascii(Domain) of
|
try list_to_binary(idna:utf8_to_ascii(Domain)) of
|
||||||
false ->
|
|
||||||
error;
|
|
||||||
ASCIIDomain ->
|
ASCIIDomain ->
|
||||||
case pkix:get_certfile(ASCIIDomain) of
|
case pkix:get_certfile(ASCIIDomain) of
|
||||||
error -> error;
|
error -> error;
|
||||||
Ret -> {ok, select_certfile(Ret)}
|
Ret -> {ok, select_certfile(Ret)}
|
||||||
end
|
end
|
||||||
|
catch _:_ ->
|
||||||
|
error
|
||||||
end.
|
end.
|
||||||
|
|
||||||
-spec get_certfile() -> {ok, filename()} | error.
|
-spec get_certfile() -> {ok, filename()} | error.
|
||||||
|
|
Loading…
Reference in New Issue