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

◆ DecodeX509BasicConstraints2Extension()

unsafe void Internal.Cryptography.Pal.X509Pal.DecodeX509BasicConstraints2Extension ( byte[] encoded,
out bool certificateAuthority,
out bool hasPathLengthConstraint,
out int pathLengthConstraint )
inline

Implements Internal.Cryptography.Pal.IX509Pal.

Definition at line 68 of file X509Pal.cs.

69 {
70 (certificateAuthority, hasPathLengthConstraint, pathLengthConstraint) = encoded.DecodeObject(CryptDecodeObjectStructType.X509_BASIC_CONSTRAINTS2, (void* pvDecoded, int cbDecoded) => (((CERT_BASIC_CONSTRAINTS2_INFO*)pvDecoded)->fCA != 0, ((CERT_BASIC_CONSTRAINTS2_INFO*)pvDecoded)->fPathLenConstraint != 0, ((CERT_BASIC_CONSTRAINTS2_INFO*)pvDecoded)->dwPathLenConstraint));
71 }