1 instantiation of SafeX509Handle
System.Net.Quic (1)
src\libraries\Common\src\Microsoft\Win32\SafeHandles\SafeX509Handles.Unix.cs (1)
28
internal static readonly SafeX509Handle InvalidHandle = new
SafeX509Handle
();
45 references to SafeX509Handle
System.Net.Quic (45)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.Crypto.cs (11)
34
private static partial int GetX509Thumbprint(
SafeX509Handle
x509, byte[]? buf, int cBuf);
40
internal static partial
SafeX509Handle
ReadX509AsDerFromBio(SafeBioHandle bio);
46
internal static partial int GetX509Version(
SafeX509Handle
x509);
49
private static partial int GetX509PublicKeyParameterBytes(
SafeX509Handle
x509, byte[]? buf, int cBuf);
52
internal static partial SafeBioHandle GetX509NameInfo(
SafeX509Handle
x509, int nameType, [MarshalAs(UnmanagedType.Bool)] bool forIssuer);
59
internal static partial bool PushX509StackField(SafeX509StackHandle stack,
SafeX509Handle
x509);
63
internal static partial bool PushX509StackField(SafeSharedX509StackHandle stack,
SafeX509Handle
x509);
97
internal static partial int CheckX509IpAddress(
SafeX509Handle
x509, byte[] addressBytes, int addressLen, string hostname, int cchHostname);
100
internal static partial int CheckX509Hostname(
SafeX509Handle
x509, string hostname, int cchHostname);
107
internal static byte[] GetX509Thumbprint(
SafeX509Handle
x509)
120
internal static byte[] GetX509PublicKeyParameterBytes(
SafeX509Handle
x509)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.X509.cs (31)
16
internal static partial IntPtr GetX509NotBefore(
SafeX509Handle
x509);
19
internal static partial IntPtr GetX509NotAfter(
SafeX509Handle
x509);
22
internal static partial IntPtr GetX509SignatureAlgorithm(
SafeX509Handle
x509);
25
internal static partial IntPtr GetX509PublicKeyAlgorithm(
SafeX509Handle
x509);
28
internal static partial IntPtr GetX509PublicKeyBytes(
SafeX509Handle
x509);
31
internal static partial SafeEvpPKeyHandle GetX509EvpPublicKey(
SafeX509Handle
x509);
37
internal static partial
SafeX509Handle
DecodeX509(ref byte buf, int len);
40
internal static partial
SafeX509Handle
DecodeX509(IntPtr buf, int len);
43
internal static partial int GetX509DerSize(
SafeX509Handle
x);
46
internal static partial int EncodeX509(
SafeX509Handle
x, byte[] buf);
55
internal static partial
SafeX509Handle
X509Duplicate(IntPtr handle);
61
internal static partial
SafeX509Handle
X509Duplicate(
SafeX509Handle
handle);
68
internal static partial
SafeX509Handle
X509UpRef(IntPtr handle);
75
internal static partial
SafeX509Handle
X509UpRef(
SafeX509Handle
handle);
78
internal static partial
SafeX509Handle
PemReadX509FromBio(SafeBioHandle bio);
81
internal static partial
SafeX509Handle
PemReadX509FromBioAux(SafeBioHandle bio);
84
private static partial SafeSharedAsn1IntegerHandle CryptoNative_X509GetSerialNumber(
SafeX509Handle
x);
86
internal static SafeSharedAsn1IntegerHandle X509GetSerialNumber(
SafeX509Handle
x)
96
internal static partial IntPtr X509GetIssuerName(
SafeX509Handle
x);
99
internal static partial IntPtr X509GetSubjectName(
SafeX509Handle
x);
103
internal static partial bool X509CheckPurpose(
SafeX509Handle
x, int id, int ca);
106
internal static partial ulong X509IssuerNameHash(
SafeX509Handle
x);
110
SafeX509Handle
x,
113
internal static SafeSharedAsn1OctetStringHandle X509FindExtensionData(
SafeX509Handle
x, int extensionNid)
124
internal static partial int X509GetExtCount(
SafeX509Handle
x);
129
internal static partial IntPtr X509GetExt(
SafeX509Handle
x, int loc);
184
SafeX509Handle
x509,
271
internal static partial int GetX509SubjectPublicKeyInfoDerSize(
SafeX509Handle
x509);
274
internal static partial int EncodeX509SubjectPublicKeyInfo(
SafeX509Handle
x509, byte[] buf);
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.X509StoreCtx.cs (1)
22
internal static partial
SafeX509Handle
X509StoreCtxGetCurrentCert(SafeX509StoreCtxHandle ctx);
src\libraries\Common\src\Microsoft\Win32\SafeHandles\SafeX509Handles.Unix.cs (1)
28
internal static readonly
SafeX509Handle
InvalidHandle = new SafeX509Handle();
src\libraries\Common\src\System\Net\Security\CertificateValidation.Unix.cs (1)
37
using (
SafeX509Handle
certHandle = Interop.Crypto.X509UpRef(remoteCertificate.Handle))