Add UnmanagedCallersOnly attribute to SafeDeleteSslContext.ReadFromConnection/WriteTo...
authorMaxim Lipnin <v-maxlip@microsoft.com>
Tue, 17 Aug 2021 16:33:06 +0000 (19:33 +0300)
committerGitHub <noreply@github.com>
Tue, 17 Aug 2021 16:33:06 +0000 (18:33 +0200)
commitfb9dac861e540b2b23cc632242d663a1434c22d0
treea7719b16d90f1d764f122f3cf9c3270b5d8262f5
parentbbf4e797a13984acee37b19d0a79217188824301
Add UnmanagedCallersOnly attribute to SafeDeleteSslContext.ReadFromConnection/WriteToConnection methods (#55947)

* Add UnmanagedCallersOnly attribute to  SafeDeleteSslContext.ReadFromConnection/WriteToConnection methods

* Fix the build

Co-authored-by: Jan Kotas <jkotas@microsoft.com>
* Fix the build

* Add SslSetConnection interop method to make sure the right SafeDeleteSslContext instance is associated to an ssl session

* Update entrypoints.c with new DllImport

Co-authored-by: Jan Kotas <jkotas@microsoft.com>
Co-authored-by: Steve Pfister <steve.pfister@microsoft.com>
Co-authored-by: Alexander Köplinger <alex.koeplinger@outlook.com>
src/libraries/Common/src/Interop/OSX/System.Security.Cryptography.Native.Apple/Interop.Ssl.cs
src/libraries/Native/Unix/System.Security.Cryptography.Native.Apple/entrypoints.c
src/libraries/Native/Unix/System.Security.Cryptography.Native.Apple/pal_ssl.c
src/libraries/Native/Unix/System.Security.Cryptography.Native.Apple/pal_ssl.h
src/libraries/System.Net.Security/src/System/Net/Security/Pal.OSX/SafeDeleteSslContext.cs