Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
◆
DecodeX509BasicConstraintsExtension()
unsafe void Internal.Cryptography.Pal.X509Pal.DecodeX509BasicConstraintsExtension
(
byte[]
encoded
,
out
bool
certificateAuthority
,
out
bool
hasPathLengthConstraint
,
out int
pathLengthConstraint
)
inline
Implements
Internal.Cryptography.Pal.IX509Pal
.
Definition at line
63
of file
X509Pal.cs
.
64
{
65
(certificateAuthority, hasPathLengthConstraint, pathLengthConstraint) = encoded.DecodeObject(
CryptDecodeObjectStructType
.X509_BASIC_CONSTRAINTS, (
void
* pvDecoded,
int
cbDecoded) => ((*((
CERT_BASIC_CONSTRAINTS_INFO
*)pvDecoded)->SubjectType.pbData & 0x80) != 0, ((
CERT_BASIC_CONSTRAINTS_INFO
*)pvDecoded)->fPathLenConstraint != 0, ((
CERT_BASIC_CONSTRAINTS_INFO
*)pvDecoded)->dwPathLenConstraint));
66
}
Internal.Cryptography.Pal.Native.CryptDecodeObjectStructType
CryptDecodeObjectStructType
Definition
CryptDecodeObjectStructType.cs:4
Internal.Cryptography.Pal.Native.CERT_BASIC_CONSTRAINTS_INFO
Definition
CERT_BASIC_CONSTRAINTS_INFO.cs:4
Internal
Cryptography
Pal
X509Pal
Generated by
1.10.0