Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Add()

void Internal.Cryptography.Pal.StorePal.Add ( ICertificatePal certificate)
inline

Implements Internal.Cryptography.Pal.IStorePal.

Definition at line 58 of file StorePal.cs.

59 {
60 if (!global::Interop.crypt32.CertAddCertificateContextToStore(_certStore, ((CertificatePal)certificate).CertContext, CertStoreAddDisposition.CERT_STORE_ADD_REPLACE_EXISTING_INHERIT_PROPERTIES, IntPtr.Zero))
61 {
62 throw Marshal.GetLastWin32Error().ToCryptographicException();
63 }
64 }
SafeCertStoreHandle _certStore
Definition StorePal.cs:13
static readonly IntPtr Zero
Definition IntPtr.cs:18

References Internal.Cryptography.Pal.StorePal._certStore, System.Runtime.InteropServices.Marshal.GetLastWin32Error(), and System.IntPtr.Zero.