Terraria v1.4.4.9
Terraria source code documentation
All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events Macros

◆ ReleaseHandle()

override bool Internal.Cryptography.Pal.Native.SafeCertContextHandle.ReleaseHandle ( )
inlineprotected

Definition at line 48 of file SafeCertContextHandle.cs.

49 {
50 if (_parent != null)
51 {
52 _parent.DangerousRelease();
53 _parent = null;
54 }
55 else
56 {
57 global::Interop.Crypt32.CertFreeCertificateContext(handle);
58 }
60 return true;
61 }
static readonly IntPtr Zero
Definition IntPtr.cs:18

References Internal.Cryptography.Pal.Native.SafeCertContextHandle._parent, System.handle, Internal.Cryptography.Pal.Native.SafeCertContextHandle.SetHandle(), and System.IntPtr.Zero.