25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-22 16:20:52 +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,6 +242,8 @@ check_peer_certificate(SockMod, Sock, Peer) ->
{error, p1_tls:get_cert_verify_string(VerifyRes, Cert)}
end;
{error, _Reason} ->
{error, <<"Cannot get peer certificate">>};
error ->
{error, <<"Cannot get peer certificate">>}
end.