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