1 instantiation of SafeX509Handle
System.Net.Security (1)
src\runtime\src\libraries\Common\src\Microsoft\Win32\SafeHandles\SafeX509Handles.Unix.cs (1)
30
internal static readonly SafeX509Handle InvalidHandle = new
SafeX509Handle
();
134 references to SafeX509Handle
System.Net.Security (134)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\LibraryImports.g.cs (85)
1579
private static partial int GetX509Thumbprint(global::Microsoft.Win32.SafeHandles.
SafeX509Handle
x509, byte[] buf, int cBuf)
1586
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.
SafeX509Handle
>.ManagedToUnmanagedIn __x509_native__marshaller = new();
1642
internal static partial global::Microsoft.Win32.SafeHandles.
SafeX509Handle
ReadX509AsDerFromBio(global::Microsoft.Win32.SafeHandles.SafeBioHandle bio)
1648
global::Microsoft.Win32.SafeHandles.
SafeX509Handle
__retVal = default;
1651
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.
SafeX509Handle
>.ManagedToUnmanagedOut __retVal_native__marshaller = new();
1731
internal static partial int GetX509Version(global::Microsoft.Win32.SafeHandles.
SafeX509Handle
x509)
1738
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.
SafeX509Handle
>.ManagedToUnmanagedIn __x509_native__marshaller = new();
1768
private static partial int GetX509PublicKeyParameterBytes(global::Microsoft.Win32.SafeHandles.
SafeX509Handle
x509, byte[] buf, int cBuf)
1775
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.
SafeX509Handle
>.ManagedToUnmanagedIn __x509_native__marshaller = new();
1807
internal static partial global::Microsoft.Win32.SafeHandles.SafeBioHandle GetX509NameInfo(global::Microsoft.Win32.SafeHandles.
SafeX509Handle
x509, int nameType, bool forIssuer)
1818
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.
SafeX509Handle
>.ManagedToUnmanagedIn __x509_native__marshaller = new();
1885
internal static partial bool PushX509StackField(global::Microsoft.Win32.SafeHandles.SafeX509StackHandle stack, global::Microsoft.Win32.SafeHandles.
SafeX509Handle
x509)
1894
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.
SafeX509Handle
>.ManagedToUnmanagedIn __x509_native__marshaller = new();
1931
internal static partial bool PushX509StackField(global::Microsoft.Win32.SafeHandles.SafeSharedX509StackHandle stack, global::Microsoft.Win32.SafeHandles.
SafeX509Handle
x509)
1940
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.
SafeX509Handle
>.ManagedToUnmanagedIn __x509_native__marshaller = new();
2030
internal static partial int CheckX509IpAddress(global::Microsoft.Win32.SafeHandles.
SafeX509Handle
x509, byte[] addressBytes, int addressLen, string hostname, int cchHostname)
2039
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.
SafeX509Handle
>.ManagedToUnmanagedIn __x509_native__marshaller = new();
2074
internal static partial int CheckX509Hostname(global::Microsoft.Win32.SafeHandles.
SafeX509Handle
x509, string hostname, int cchHostname)
2083
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.
SafeX509Handle
>.ManagedToUnmanagedIn __x509_native__marshaller = new();
4333
internal static partial int SslUseCertificate(global::Microsoft.Win32.SafeHandles.SafeSslHandle ssl, global::Microsoft.Win32.SafeHandles.
SafeX509Handle
certPtr)
4341
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.
SafeX509Handle
>.ManagedToUnmanagedIn __certPtr_native__marshaller = new();
4617
internal static partial bool SslAddExtraChainCert(global::Microsoft.Win32.SafeHandles.SafeSslHandle ssl, global::Microsoft.Win32.SafeHandles.
SafeX509Handle
x509)
4626
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.
SafeX509Handle
>.ManagedToUnmanagedIn __x509_native__marshaller = new();
5073
internal static partial bool SslCtxAddExtraChainCert(global::Microsoft.Win32.SafeHandles.SafeSslContextHandle ctx, global::Microsoft.Win32.SafeHandles.
SafeX509Handle
x509)
5082
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.
SafeX509Handle
>.ManagedToUnmanagedIn __x509_native__marshaller = new();
5119
internal static partial int SslCtxUseCertificate(global::Microsoft.Win32.SafeHandles.SafeSslContextHandle ctx, global::Microsoft.Win32.SafeHandles.
SafeX509Handle
certPtr)
5127
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.
SafeX509Handle
>.ManagedToUnmanagedIn __certPtr_native__marshaller = new();
5392
internal static partial nint GetX509NotBefore(global::Microsoft.Win32.SafeHandles.
SafeX509Handle
x509)
5399
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.
SafeX509Handle
>.ManagedToUnmanagedIn __x509_native__marshaller = new();
5429
internal static partial nint GetX509NotAfter(global::Microsoft.Win32.SafeHandles.
SafeX509Handle
x509)
5436
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.
SafeX509Handle
>.ManagedToUnmanagedIn __x509_native__marshaller = new();
5466
internal static partial nint GetX509SignatureAlgorithm(global::Microsoft.Win32.SafeHandles.
SafeX509Handle
x509)
5473
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.
SafeX509Handle
>.ManagedToUnmanagedIn __x509_native__marshaller = new();
5503
internal static partial nint GetX509PublicKeyAlgorithm(global::Microsoft.Win32.SafeHandles.
SafeX509Handle
x509)
5510
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.
SafeX509Handle
>.ManagedToUnmanagedIn __x509_native__marshaller = new();
5540
internal static partial nint GetX509PublicKeyBytes(global::Microsoft.Win32.SafeHandles.
SafeX509Handle
x509)
5547
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.
SafeX509Handle
>.ManagedToUnmanagedIn __x509_native__marshaller = new();
5577
internal static partial global::System.Security.Cryptography.SafeEvpPKeyHandle GetX509EvpPublicKey(global::Microsoft.Win32.SafeHandles.
SafeX509Handle
x509)
5587
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.
SafeX509Handle
>.ManagedToUnmanagedIn __x509_native__marshaller = new();
5674
internal static partial global::Microsoft.Win32.SafeHandles.
SafeX509Handle
DecodeX509(ref byte buf, int len)
5679
global::Microsoft.Win32.SafeHandles.
SafeX509Handle
__retVal = default;
5682
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.
SafeX509Handle
>.ManagedToUnmanagedOut __retVal_native__marshaller = new();
5719
internal static partial int GetX509DerSize(global::Microsoft.Win32.SafeHandles.
SafeX509Handle
x)
5726
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.
SafeX509Handle
>.ManagedToUnmanagedIn __x_native__marshaller = new();
5756
internal static partial int EncodeX509(global::Microsoft.Win32.SafeHandles.
SafeX509Handle
x, byte[] buf)
5763
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.
SafeX509Handle
>.ManagedToUnmanagedIn __x_native__marshaller = new();
5803
internal static partial global::Microsoft.Win32.SafeHandles.
SafeX509Handle
X509UpRef(nint handle)
5808
global::Microsoft.Win32.SafeHandles.
SafeX509Handle
__retVal = default;
5811
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.
SafeX509Handle
>.ManagedToUnmanagedOut __retVal_native__marshaller = new();
5846
internal static partial global::Microsoft.Win32.SafeHandles.
SafeX509Handle
X509UpRef(global::Microsoft.Win32.SafeHandles.
SafeX509Handle
handle)
5852
global::Microsoft.Win32.SafeHandles.
SafeX509Handle
__retVal = default;
5855
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.
SafeX509Handle
>.ManagedToUnmanagedOut __retVal_native__marshaller = new();
5856
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.
SafeX509Handle
>.ManagedToUnmanagedIn __handle_native__marshaller = new();
5898
internal static partial global::Microsoft.Win32.SafeHandles.
SafeX509Handle
PemReadX509FromBio(global::Microsoft.Win32.SafeHandles.SafeBioHandle bio)
5904
global::Microsoft.Win32.SafeHandles.
SafeX509Handle
__retVal = default;
5907
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.
SafeX509Handle
>.ManagedToUnmanagedOut __retVal_native__marshaller = new();
5950
internal static partial global::Microsoft.Win32.SafeHandles.
SafeX509Handle
PemReadX509FromBioAux(global::Microsoft.Win32.SafeHandles.SafeBioHandle bio)
5956
global::Microsoft.Win32.SafeHandles.
SafeX509Handle
__retVal = default;
5959
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.
SafeX509Handle
>.ManagedToUnmanagedOut __retVal_native__marshaller = new();
6002
private static partial global::Microsoft.Win32.SafeHandles.SafeSharedAsn1IntegerHandle CryptoNative_X509GetSerialNumber(global::Microsoft.Win32.SafeHandles.
SafeX509Handle
x)
6012
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.
SafeX509Handle
>.ManagedToUnmanagedIn __x_native__marshaller = new();
6054
internal static partial nint X509GetIssuerName(global::Microsoft.Win32.SafeHandles.
SafeX509Handle
x)
6061
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.
SafeX509Handle
>.ManagedToUnmanagedIn __x_native__marshaller = new();
6091
internal static partial nint X509GetSubjectName(global::Microsoft.Win32.SafeHandles.
SafeX509Handle
x)
6098
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.
SafeX509Handle
>.ManagedToUnmanagedIn __x_native__marshaller = new();
6128
internal static partial bool X509CheckPurpose(global::Microsoft.Win32.SafeHandles.
SafeX509Handle
x, int id, int ca)
6136
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.
SafeX509Handle
>.ManagedToUnmanagedIn __x_native__marshaller = new();
6169
internal static partial ulong X509IssuerNameHash(global::Microsoft.Win32.SafeHandles.
SafeX509Handle
x)
6176
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.
SafeX509Handle
>.ManagedToUnmanagedIn __x_native__marshaller = new();
6206
private static partial global::Microsoft.Win32.SafeHandles.SafeSharedAsn1OctetStringHandle CryptoNative_X509FindExtensionData(global::Microsoft.Win32.SafeHandles.
SafeX509Handle
x, int extensionNid)
6216
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.
SafeX509Handle
>.ManagedToUnmanagedIn __x_native__marshaller = new();
6258
internal static partial int X509GetExtCount(global::Microsoft.Win32.SafeHandles.
SafeX509Handle
x)
6265
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.
SafeX509Handle
>.ManagedToUnmanagedIn __x_native__marshaller = new();
6295
internal static partial nint X509GetExt(global::Microsoft.Win32.SafeHandles.
SafeX509Handle
x, int loc)
6302
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.
SafeX509Handle
>.ManagedToUnmanagedIn __x_native__marshaller = new();
6525
internal static partial bool X509StoreCtxInit(global::Microsoft.Win32.SafeHandles.SafeX509StoreCtxHandle ctx, global::Microsoft.Win32.SafeHandles.SafeX509StoreHandle store, global::Microsoft.Win32.SafeHandles.
SafeX509Handle
x509, global::Microsoft.Win32.SafeHandles.SafeX509StackHandle extraCerts)
6537
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.
SafeX509Handle
>.ManagedToUnmanagedIn __x509_native__marshaller = new();
6950
internal static partial int GetX509SubjectPublicKeyInfoDerSize(global::Microsoft.Win32.SafeHandles.
SafeX509Handle
x509)
6957
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.
SafeX509Handle
>.ManagedToUnmanagedIn __x509_native__marshaller = new();
6987
internal static partial int EncodeX509SubjectPublicKeyInfo(global::Microsoft.Win32.SafeHandles.
SafeX509Handle
x509, byte[] buf)
6994
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.
SafeX509Handle
>.ManagedToUnmanagedIn __x509_native__marshaller = new();
7653
internal static partial global::Microsoft.Win32.SafeHandles.
SafeX509Handle
X509StoreCtxGetCurrentCert(global::Microsoft.Win32.SafeHandles.SafeX509StoreCtxHandle ctx)
7659
global::Microsoft.Win32.SafeHandles.
SafeX509Handle
__retVal = default;
7662
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.
SafeX509Handle
>.ManagedToUnmanagedOut __retVal_native__marshaller = new();
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.Crypto.cs (11)
39
private static partial int GetX509Thumbprint(
SafeX509Handle
x509, byte[]? buf, int cBuf);
45
internal static partial
SafeX509Handle
ReadX509AsDerFromBio(SafeBioHandle bio);
51
internal static partial int GetX509Version(
SafeX509Handle
x509);
54
private static partial int GetX509PublicKeyParameterBytes(
SafeX509Handle
x509, byte[]? buf, int cBuf);
57
internal static partial SafeBioHandle GetX509NameInfo(
SafeX509Handle
x509, int nameType, [MarshalAs(UnmanagedType.Bool)] bool forIssuer);
64
internal static partial bool PushX509StackField(SafeX509StackHandle stack,
SafeX509Handle
x509);
68
internal static partial bool PushX509StackField(SafeSharedX509StackHandle stack,
SafeX509Handle
x509);
96
internal static partial int CheckX509IpAddress(
SafeX509Handle
x509, byte[] addressBytes, int addressLen, string hostname, int cchHostname);
99
internal static partial int CheckX509Hostname(
SafeX509Handle
x509, string hostname, int cchHostname);
129
internal static byte[] GetX509Thumbprint(
SafeX509Handle
x509)
142
internal static byte[]? GetX509PublicKeyParameterBytes(
SafeX509Handle
x509)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.OpenSsl.cs (1)
1399
private static void SetSslCertificate(SafeSslContextHandle contextPtr,
SafeX509Handle
certPtr, SafeEvpPKeyHandle keyPtr)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.Ssl.cs (3)
281
internal static partial int SslUseCertificate(SafeSslHandle ssl,
SafeX509Handle
certPtr);
378
internal static partial bool SslAddExtraChainCert(SafeSslHandle ssl,
SafeX509Handle
x509);
410
SafeX509Handle
dupCertHandle = Crypto.X509UpRef(chain[i].Handle);
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.SslCtx.cs (1)
53
SafeX509Handle
dupCertHandle = Crypto.X509UpRef(chain[i].Handle);
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.SslCtxOptions.cs (2)
16
internal static partial bool SslCtxAddExtraChainCert(SafeSslContextHandle ctx,
SafeX509Handle
x509);
19
internal static partial int SslCtxUseCertificate(SafeSslContextHandle ctx,
SafeX509Handle
certPtr);
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.X509.cs (27)
17
internal static partial IntPtr GetX509NotBefore(
SafeX509Handle
x509);
20
internal static partial IntPtr GetX509NotAfter(
SafeX509Handle
x509);
23
internal static partial IntPtr GetX509SignatureAlgorithm(
SafeX509Handle
x509);
26
internal static partial IntPtr GetX509PublicKeyAlgorithm(
SafeX509Handle
x509);
29
internal static partial IntPtr GetX509PublicKeyBytes(
SafeX509Handle
x509);
32
internal static partial SafeEvpPKeyHandle GetX509EvpPublicKey(
SafeX509Handle
x509);
38
internal static partial
SafeX509Handle
DecodeX509(ref byte buf, int len);
41
internal static partial int GetX509DerSize(
SafeX509Handle
x);
44
internal static partial int EncodeX509(
SafeX509Handle
x, byte[] buf);
54
internal static partial
SafeX509Handle
X509UpRef(IntPtr handle);
61
internal static partial
SafeX509Handle
X509UpRef(
SafeX509Handle
handle);
64
internal static partial
SafeX509Handle
PemReadX509FromBio(SafeBioHandle bio);
67
internal static partial
SafeX509Handle
PemReadX509FromBioAux(SafeBioHandle bio);
70
private static partial SafeSharedAsn1IntegerHandle CryptoNative_X509GetSerialNumber(
SafeX509Handle
x);
72
internal static SafeSharedAsn1IntegerHandle X509GetSerialNumber(
SafeX509Handle
x)
82
internal static partial IntPtr X509GetIssuerName(
SafeX509Handle
x);
85
internal static partial IntPtr X509GetSubjectName(
SafeX509Handle
x);
89
internal static partial bool X509CheckPurpose(
SafeX509Handle
x, int id, int ca);
92
internal static partial ulong X509IssuerNameHash(
SafeX509Handle
x);
96
SafeX509Handle
x,
99
internal static SafeSharedAsn1OctetStringHandle X509FindExtensionData(
SafeX509Handle
x, int extensionNid)
110
internal static partial int X509GetExtCount(
SafeX509Handle
x);
115
internal static partial IntPtr X509GetExt(
SafeX509Handle
x, int loc);
170
SafeX509Handle
x509,
257
internal static partial int GetX509SubjectPublicKeyInfoDerSize(
SafeX509Handle
x509);
260
internal static partial int EncodeX509SubjectPublicKeyInfo(
SafeX509Handle
x509, byte[] buf);
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.X509StoreCtx.cs (1)
22
internal static partial
SafeX509Handle
X509StoreCtxGetCurrentCert(SafeX509StoreCtxHandle ctx);
src\runtime\src\libraries\Common\src\Microsoft\Win32\SafeHandles\SafeX509Handles.Unix.cs (1)
30
internal static readonly
SafeX509Handle
InvalidHandle = new SafeX509Handle();
src\runtime\src\libraries\Common\src\System\Net\Security\CertificateValidation.Unix.cs (1)
37
using (
SafeX509Handle
certHandle = Interop.Crypto.X509UpRef(remoteCertificate.Handle))
System\Net\Security\SslStreamCertificateContext.Linux.cs (1)
28
internal readonly
SafeX509Handle
CertificateHandle;