Commit b224c3886924d181e2699d799826d3e631d5f90f

Logan Collins 2015-05-07T14:21:25

Fix in stransport_stream.c for usage of SecCopyErrorMessageString(), which is unavailable to iOS targets.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff --git a/src/stransport_stream.c b/src/stransport_stream.c
index d316c37..34c38b2 100644
--- a/src/stransport_stream.c
+++ b/src/stransport_stream.c
@@ -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;
 }