25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-22 17:28:25 +01:00

Improve S2S certificate checks

This commit is contained in:
Evgeniy Khramtsov 2015-08-20 01:04:56 +03:00
parent b570070834
commit 6177ae3ffb

View File

@ -242,7 +242,9 @@ check_peer_certificate(SockMod, Sock, Peer) ->
{error, p1_tls:get_cert_verify_string(VerifyRes, Cert)}
end;
{error, _Reason} ->
{error, <<"Cannot get peer certificate">>}
{error, <<"Cannot get peer certificate">>};
error ->
{error, <<"Cannot get peer certificate">>}
end.
%%====================================================================