From: Martin Baulig Date: Tue, 4 Apr 2017 18:28:17 +0000 (-0400) Subject: [appletls]: Make CFObject.dlsym() private and fix CFBoolean. (#4640) X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=commitdiff_plain;h=989aefce37f17ea093c7d1c62b8185771a9b1f9c;p=mono.git [appletls]: Make CFObject.dlsym() private and fix CFBoolean. (#4640) This fixes a native crash when attempting to use appletls. --- diff --git a/mcs/class/System/System.Net/MacProxy.cs b/mcs/class/System/System.Net/MacProxy.cs index 69b4133226b..bd2cdc10b98 100644 --- a/mcs/class/System/System.Net/MacProxy.cs +++ b/mcs/class/System/System.Net/MacProxy.cs @@ -47,7 +47,7 @@ namespace Mono.Net public static extern IntPtr dlopen (string path, int mode); [DllImport (SystemLibrary)] - public static extern IntPtr dlsym (IntPtr handle, string symbol); + static extern IntPtr dlsym (IntPtr handle, string symbol); [DllImport (SystemLibrary)] public static extern void dlclose (IntPtr handle); @@ -1249,8 +1249,8 @@ namespace Mono.Net if (handle == IntPtr.Zero) return; try { - True = new CFBoolean (CFObject.dlsym (handle, "kCFBooleanTrue"), false); - False = new CFBoolean (CFObject.dlsym (handle, "kCFBooleanFalse"), false); + True = new CFBoolean (CFObject.GetCFObjectHandle (handle, "kCFBooleanTrue"), false); + False = new CFBoolean (CFObject.GetCFObjectHandle (handle, "kCFBooleanFalse"), false); } finally { CFObject.dlclose (handle);