Skip to content

Commit f686c26

Browse files
AndreasReichUnityAlex
authored andcommitted
Fix missing MonoPInvokeCallback on x509verify_callback
1 parent 99f46aa commit f686c26

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mcs/class/System/Mono.UnityTls/UnityTlsProvider.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
#else
1717
using Mono.Security.Interface;
1818
#endif
19+
using Mono.Util;
1920

2021
using size_t = System.IntPtr;
2122

@@ -41,6 +42,7 @@ internal override MNS.MobileAuthenticatedStream CreateSslStream (
4142
return new UnityTlsStream (innerStream, leaveInnerStreamOpen, sslStream, settings, this);
4243
}
4344

45+
[MonoPInvokeCallback (typeof (UnityTls.unitytls_x509verify_callback))]
4446
static UnityTls.unitytls_x509verify_result x509verify_callback(void* userData, UnityTls.unitytls_x509_ref cert, UnityTls.unitytls_x509verify_result result, UnityTls.unitytls_errorstate* errorState)
4547
{
4648
if (userData != null)

0 commit comments

Comments
 (0)