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:
parent
b570070834
commit
6177ae3ffb
@ -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.
|
||||
|
||||
%%====================================================================
|
||||
|
Loading…
Reference in New Issue
Block a user