mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-26 16:26:24 +01:00
Improve S2S certificate checks
This commit is contained in:
parent
b570070834
commit
6177ae3ffb
@ -242,7 +242,9 @@ check_peer_certificate(SockMod, Sock, Peer) ->
|
|||||||
{error, p1_tls:get_cert_verify_string(VerifyRes, Cert)}
|
{error, p1_tls:get_cert_verify_string(VerifyRes, Cert)}
|
||||||
end;
|
end;
|
||||||
{error, _Reason} ->
|
{error, _Reason} ->
|
||||||
{error, <<"Cannot get peer certificate">>}
|
{error, <<"Cannot get peer certificate">>};
|
||||||
|
error ->
|
||||||
|
{error, <<"Cannot get peer certificate">>}
|
||||||
end.
|
end.
|
||||||
|
|
||||||
%%====================================================================
|
%%====================================================================
|
||||||
|
Loading…
Reference in New Issue
Block a user