mirror of
https://git.proxmox.com/git/libgit2
synced 2025-10-19 02:25:13 +00:00
Merge pull request #3886 from libgit2/cmn/copypeertrust-null
SecureTransport: handle NULL trust on success
This commit is contained in:
commit
56bbdf9349
@ -67,6 +67,9 @@ int stransport_connect(git_stream *stream)
|
|||||||
if ((ret = SSLCopyPeerTrust(st->ctx, &trust)) != noErr)
|
if ((ret = SSLCopyPeerTrust(st->ctx, &trust)) != noErr)
|
||||||
goto on_error;
|
goto on_error;
|
||||||
|
|
||||||
|
if (!trust)
|
||||||
|
return GIT_ECERTIFICATE;
|
||||||
|
|
||||||
if ((ret = SecTrustEvaluate(trust, &sec_res)) != noErr)
|
if ((ret = SecTrustEvaluate(trust, &sec_res)) != noErr)
|
||||||
goto on_error;
|
goto on_error;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user