mirror of
https://git.proxmox.com/git/libgit2
synced 2025-08-04 01:41:43 +00:00
Fix in stransport_stream.c for usage of SecCopyErrorMessageString(), which is unavailable to iOS targets.
This commit is contained in:
parent
d4723c89d4
commit
b224c38869
@ -24,11 +24,16 @@ int stransport_error(OSStatus ret)
|
||||
return 0;
|
||||
}
|
||||
|
||||
#if !TARGET_OS_IPHONE
|
||||
message = SecCopyErrorMessageString(ret, NULL);
|
||||
GITERR_CHECK_ALLOC(message);
|
||||
|
||||
giterr_set(GITERR_NET, "SecureTransport error: %s", CFStringGetCStringPtr(message, kCFStringEncodingUTF8));
|
||||
CFRelease(message);
|
||||
#else
|
||||
giterr_set(GITERR_NET, "SecureTransport error: OSStatus %d", (unsigned int)ret);
|
||||
#endif
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user