Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
◆
Archived
unsafe
bool
Internal.Cryptography.Pal.CertificatePal.Archived
get
set
Implements
Internal.Cryptography.ICertificatePal
.
Definition at line
148
of file
CertificatePal.cs
.
149
{
150
get
151
{
152
int
pcbData
= 0;
153
return
global::Interop.crypt32.CertGetCertificateContextProperty(
_certContext
,
CertContextPropId
.CERT_ARCHIVED_PROP_ID,
null
,
ref
pcbData
);
154
}
155
set
156
{
157
CRYPTOAPI_BLOB
cRYPTOAPI_BLOB
=
new
CRYPTOAPI_BLOB
(0,
null
);
158
CRYPTOAPI_BLOB
*
pvData
= (
value
? (&
cRYPTOAPI_BLOB
) :
null
);
159
if
(!global::Interop.crypt32.CertSetCertificateContextProperty(
_certContext
,
CertContextPropId
.CERT_ARCHIVED_PROP_ID,
CertSetPropertyFlags
.None,
pvData
))
160
{
161
throw
Marshal
.
GetLastWin32Error
().ToCryptographicException();
162
}
163
}
164
}
Internal.Cryptography.Pal.CertificatePal._certContext
SafeCertContextHandle _certContext
Definition
CertificatePal.cs:15
System.Collections.Generic.Dictionary
Definition
Dictionary.cs:14
System.Runtime.InteropServices.Marshal.GetLastWin32Error
static int GetLastWin32Error()
Definition
Marshal.cs:1567
System.Runtime.InteropServices.Marshal
Definition
Marshal.cs:14
Internal.Cryptography.Pal.Native.CertContextPropId
CertContextPropId
Definition
CertContextPropId.cs:4
Internal.Cryptography.Pal.Native.CertSetPropertyFlags
CertSetPropertyFlags
Definition
CertSetPropertyFlags.cs:7
System.ExceptionArgument.value
@ value
Internal.Cryptography.Pal.Native.CRYPTOAPI_BLOB
Definition
CRYPTOAPI_BLOB.cs:7
Internal
Cryptography
Pal
CertificatePal
Generated by
1.10.0