terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches
X509BasicConstraintsExtension.cs
Go to the documentation of this file.
1using System;
2using Mono.Security;
3
5{
6 // Token: 0x02000104 RID: 260
8 {
9 // Token: 0x060005AC RID: 1452 RVA: 0x00016178 File Offset: 0x00014378
13
14 // Token: 0x060005AD RID: 1453 RVA: 0x0001618C File Offset: 0x0001438C
23
24 // Token: 0x060005AE RID: 1454 RVA: 0x000161C4 File Offset: 0x000143C4
33
34 // Token: 0x17000117 RID: 279
35 // (get) Token: 0x060005AF RID: 1455 RVA: 0x000161FC File Offset: 0x000143FC
37 {
38 get
39 {
40 AsnDecodeStatus status = this._status;
41 return this._certificateAuthority;
42 }
43 }
44
45 // Token: 0x17000118 RID: 280
46 // (get) Token: 0x060005B0 RID: 1456 RVA: 0x00016218 File Offset: 0x00014418
48 {
49 get
50 {
51 AsnDecodeStatus status = this._status;
52 return this._hasPathLengthConstraint;
53 }
54 }
55
56 // Token: 0x17000119 RID: 281
57 // (get) Token: 0x060005B1 RID: 1457 RVA: 0x00016234 File Offset: 0x00014434
59 {
60 get
61 {
62 AsnDecodeStatus status = this._status;
63 return this._pathLengthConstraint;
64 }
65 }
66
67 // Token: 0x060005B2 RID: 1458 RVA: 0x00016250 File Offset: 0x00014450
69 {
70 while (asnEncodedData == null)
71 {
72 }
73 if (asnEncodedData._oid != null)
74 {
75 return;
76 }
77 byte[] raw = asnEncodedData._raw;
78 base.RawData = raw;
79 byte[] raw2 = this._raw;
80 this._critical = "2.5.29.19" != null;
83 }
84
85 // Token: 0x060005B3 RID: 1459 RVA: 0x000162A4 File Offset: 0x000144A4
87 {
88 int num = 1;
89 if (extension != null && num != 0)
90 {
91 ASN1 asn;
92 if (asn != null)
93 {
94 byte nTag = asn.m_nTag;
95 byte[] value = asn.Value;
97 ASN1 asn2;
98 if (asn2 != null)
99 {
100 byte nTag2 = asn2.m_nTag;
101 int num2 = 1;
105 while (num3 == 0)
106 {
107 }
108 }
109 }
110 return;
111 }
112 }
113
114 // Token: 0x060005B4 RID: 1460 RVA: 0x00016318 File Offset: 0x00014518
115 internal byte[] Encode()
116 {
117 /*
118An exception occurred when decompiling this method (060005B4)
119
120ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Byte[] System.Security.Cryptography.X509Certificates.X509BasicConstraintsExtension::Encode()
121
122 ---> System.Exception: Basic block has to end with unconditional control flow.
123{
124 Block_1:
125 stloc:ASN1(var_2_20, call:ASN1(ASN1Convert::FromInt32, ldloc:int32(var_1_16)))
126}
127
128 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
129 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
130 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
131 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
132 --- End of inner exception stack trace ---
133 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
134 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
135*/;
136 }
137
138 // Token: 0x060005B5 RID: 1461 RVA: 0x00016348 File Offset: 0x00014548
139 internal override string ToString(bool multiLine)
140 {
141 AsnDecodeStatus status = this._status;
142 return "2.5.29.19";
143 }
144
145 // Token: 0x040004EF RID: 1263
146 internal const string oid = "2.5.29.19";
147
148 // Token: 0x040004F0 RID: 1264
149 internal const string friendlyName = "Basic Constraints";
150
151 // Token: 0x040004F1 RID: 1265
153
154 // Token: 0x040004F2 RID: 1266
156
157 // Token: 0x040004F3 RID: 1267
159
160 // Token: 0x040004F4 RID: 1268
162 }
163}
class f__AnonymousType0<< Count > j__TPar
static int ToInt32(ASN1 asn1)
X509BasicConstraintsExtension(AsnEncodedData encodedBasicConstraints, bool critical)
X509BasicConstraintsExtension(bool certificateAuthority, bool hasPathLengthConstraint, int pathLengthConstraint, bool critical)