Skip to content

Commit e4bfd95

Browse files
authored
Merge pull request #1406 from Unity-Technologies/unity-master-tls-fix-missing-pinvokecallback-attribute
Fix missing MonoPInvokeCallback on x509verify_callback
2 parents 3f183f3 + a1141c5 commit e4bfd95

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

@@ -48,6 +49,7 @@ internal override IMonoSslStream CreateSslStreamInternal (
4849
return new UnityTlsStream (innerStream, leaveInnerStreamOpen, sslStream, settings, this);
4950
}
5051

52+
[MonoPInvokeCallback (typeof (UnityTls.unitytls_x509verify_callback))]
5153
static UnityTls.unitytls_x509verify_result x509verify_callback(void* userData, UnityTls.unitytls_x509_ref cert, UnityTls.unitytls_x509verify_result result, UnityTls.unitytls_errorstate* errorState)
5254
{
5355
if (userData != null)

0 commit comments

Comments
 (0)