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:
parent
b570070834
commit
6177ae3ffb
@ -242,6 +242,8 @@ 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 ->
|
||||||
{error, <<"Cannot get peer certificate">>}
|
{error, <<"Cannot get peer certificate">>}
|
||||||
end.
|
end.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user