-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAsn.pas
213 lines (140 loc) · 8.44 KB
/
Asn.pas
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
unit Asn;
interface
type
HCkBinData = Pointer;
HCkByteData = Pointer;
HCkAsn = Pointer;
HCkString = Pointer;
function CkAsn_Create: HCkAsn; stdcall;
procedure CkAsn_Dispose(handle: HCkAsn); stdcall;
function CkAsn_getBoolValue(objHandle: HCkAsn): wordbool; stdcall;
procedure CkAsn_putBoolValue(objHandle: HCkAsn; newPropVal: wordbool); stdcall;
function CkAsn_getConstructed(objHandle: HCkAsn): wordbool; stdcall;
procedure CkAsn_getContentStr(objHandle: HCkAsn; outPropVal: HCkString); stdcall;
procedure CkAsn_putContentStr(objHandle: HCkAsn; newPropVal: PWideChar); stdcall;
function CkAsn__contentStr(objHandle: HCkAsn): PWideChar; stdcall;
procedure CkAsn_getDebugLogFilePath(objHandle: HCkAsn; outPropVal: HCkString); stdcall;
procedure CkAsn_putDebugLogFilePath(objHandle: HCkAsn; newPropVal: PWideChar); stdcall;
function CkAsn__debugLogFilePath(objHandle: HCkAsn): PWideChar; stdcall;
function CkAsn_getIntValue(objHandle: HCkAsn): Integer; stdcall;
procedure CkAsn_putIntValue(objHandle: HCkAsn; newPropVal: Integer); stdcall;
procedure CkAsn_getLastErrorHtml(objHandle: HCkAsn; outPropVal: HCkString); stdcall;
function CkAsn__lastErrorHtml(objHandle: HCkAsn): PWideChar; stdcall;
procedure CkAsn_getLastErrorText(objHandle: HCkAsn; outPropVal: HCkString); stdcall;
function CkAsn__lastErrorText(objHandle: HCkAsn): PWideChar; stdcall;
procedure CkAsn_getLastErrorXml(objHandle: HCkAsn; outPropVal: HCkString); stdcall;
function CkAsn__lastErrorXml(objHandle: HCkAsn): PWideChar; stdcall;
function CkAsn_getLastMethodSuccess(objHandle: HCkAsn): wordbool; stdcall;
procedure CkAsn_putLastMethodSuccess(objHandle: HCkAsn; newPropVal: wordbool); stdcall;
function CkAsn_getNumSubItems(objHandle: HCkAsn): Integer; stdcall;
procedure CkAsn_getTag(objHandle: HCkAsn; outPropVal: HCkString); stdcall;
function CkAsn__tag(objHandle: HCkAsn): PWideChar; stdcall;
function CkAsn_getTagValue(objHandle: HCkAsn): Integer; stdcall;
function CkAsn_getVerboseLogging(objHandle: HCkAsn): wordbool; stdcall;
procedure CkAsn_putVerboseLogging(objHandle: HCkAsn; newPropVal: wordbool); stdcall;
procedure CkAsn_getVersion(objHandle: HCkAsn; outPropVal: HCkString); stdcall;
function CkAsn__version(objHandle: HCkAsn): PWideChar; stdcall;
function CkAsn_AppendBigInt(objHandle: HCkAsn; encodedBytes: PWideChar; encoding: PWideChar): wordbool; stdcall;
function CkAsn_AppendBits(objHandle: HCkAsn; encodedBytes: PWideChar; encoding: PWideChar): wordbool; stdcall;
function CkAsn_AppendBool(objHandle: HCkAsn; value: wordbool): wordbool; stdcall;
function CkAsn_AppendContextConstructed(objHandle: HCkAsn; tag: Integer): wordbool; stdcall;
function CkAsn_AppendContextPrimitive(objHandle: HCkAsn; tag: Integer; encodedBytes: PWideChar; encoding: PWideChar): wordbool; stdcall;
function CkAsn_AppendInt(objHandle: HCkAsn; value: Integer): wordbool; stdcall;
function CkAsn_AppendNull(objHandle: HCkAsn): wordbool; stdcall;
function CkAsn_AppendOctets(objHandle: HCkAsn; encodedBytes: PWideChar; encoding: PWideChar): wordbool; stdcall;
function CkAsn_AppendOid(objHandle: HCkAsn; oid: PWideChar): wordbool; stdcall;
function CkAsn_AppendSequence(objHandle: HCkAsn): wordbool; stdcall;
function CkAsn_AppendSequence2(objHandle: HCkAsn): wordbool; stdcall;
function CkAsn_AppendSequenceR(objHandle: HCkAsn): HCkAsn; stdcall;
function CkAsn_AppendSet(objHandle: HCkAsn): wordbool; stdcall;
function CkAsn_AppendSet2(objHandle: HCkAsn): wordbool; stdcall;
function CkAsn_AppendSetR(objHandle: HCkAsn): HCkAsn; stdcall;
function CkAsn_AppendString(objHandle: HCkAsn; strType: PWideChar; value: PWideChar): wordbool; stdcall;
function CkAsn_AppendTime(objHandle: HCkAsn; timeFormat: PWideChar; dateTimeStr: PWideChar): wordbool; stdcall;
function CkAsn_AsnToXml(objHandle: HCkAsn; outStr: HCkString): wordbool; stdcall;
function CkAsn__asnToXml(objHandle: HCkAsn): PWideChar; stdcall;
function CkAsn_DeleteSubItem(objHandle: HCkAsn; index: Integer): wordbool; stdcall;
function CkAsn_GetBinaryDer(objHandle: HCkAsn; outData: HCkByteData): wordbool; stdcall;
function CkAsn_GetEncodedContent(objHandle: HCkAsn; encoding: PWideChar; outStr: HCkString): wordbool; stdcall;
function CkAsn__getEncodedContent(objHandle: HCkAsn; encoding: PWideChar): PWideChar; stdcall;
function CkAsn_GetEncodedDer(objHandle: HCkAsn; encoding: PWideChar; outStr: HCkString): wordbool; stdcall;
function CkAsn__getEncodedDer(objHandle: HCkAsn; encoding: PWideChar): PWideChar; stdcall;
function CkAsn_GetLastSubItem(objHandle: HCkAsn): HCkAsn; stdcall;
function CkAsn_GetSubItem(objHandle: HCkAsn; index: Integer): HCkAsn; stdcall;
function CkAsn_LoadAsnXml(objHandle: HCkAsn; xmlStr: PWideChar): wordbool; stdcall;
function CkAsn_LoadBd(objHandle: HCkAsn; bd: HCkBinData): wordbool; stdcall;
function CkAsn_LoadBinary(objHandle: HCkAsn; derBytes: HCkByteData): wordbool; stdcall;
function CkAsn_LoadBinaryFile(objHandle: HCkAsn; path: PWideChar): wordbool; stdcall;
function CkAsn_LoadEncoded(objHandle: HCkAsn; asnContent: PWideChar; encoding: PWideChar): wordbool; stdcall;
function CkAsn_SaveLastError(objHandle: HCkAsn; path: PWideChar): wordbool; stdcall;
function CkAsn_SetEncodedContent(objHandle: HCkAsn; encodedBytes: PWideChar; encoding: PWideChar): wordbool; stdcall;
function CkAsn_WriteBd(objHandle: HCkAsn; bd: HCkBinData): wordbool; stdcall;
function CkAsn_WriteBinaryDer(objHandle: HCkAsn; path: PWideChar): wordbool; stdcall;
implementation
{$Include chilkatDllPath.inc}
function CkAsn_Create; external DLLName;
procedure CkAsn_Dispose; external DLLName;
function CkAsn_getBoolValue; external DLLName;
procedure CkAsn_putBoolValue; external DLLName;
function CkAsn_getConstructed; external DLLName;
procedure CkAsn_getContentStr; external DLLName;
procedure CkAsn_putContentStr; external DLLName;
function CkAsn__contentStr; external DLLName;
procedure CkAsn_getDebugLogFilePath; external DLLName;
procedure CkAsn_putDebugLogFilePath; external DLLName;
function CkAsn__debugLogFilePath; external DLLName;
function CkAsn_getIntValue; external DLLName;
procedure CkAsn_putIntValue; external DLLName;
procedure CkAsn_getLastErrorHtml; external DLLName;
function CkAsn__lastErrorHtml; external DLLName;
procedure CkAsn_getLastErrorText; external DLLName;
function CkAsn__lastErrorText; external DLLName;
procedure CkAsn_getLastErrorXml; external DLLName;
function CkAsn__lastErrorXml; external DLLName;
function CkAsn_getLastMethodSuccess; external DLLName;
procedure CkAsn_putLastMethodSuccess; external DLLName;
function CkAsn_getNumSubItems; external DLLName;
procedure CkAsn_getTag; external DLLName;
function CkAsn__tag; external DLLName;
function CkAsn_getTagValue; external DLLName;
function CkAsn_getVerboseLogging; external DLLName;
procedure CkAsn_putVerboseLogging; external DLLName;
procedure CkAsn_getVersion; external DLLName;
function CkAsn__version; external DLLName;
function CkAsn_AppendBigInt; external DLLName;
function CkAsn_AppendBits; external DLLName;
function CkAsn_AppendBool; external DLLName;
function CkAsn_AppendContextConstructed; external DLLName;
function CkAsn_AppendContextPrimitive; external DLLName;
function CkAsn_AppendInt; external DLLName;
function CkAsn_AppendNull; external DLLName;
function CkAsn_AppendOctets; external DLLName;
function CkAsn_AppendOid; external DLLName;
function CkAsn_AppendSequence; external DLLName;
function CkAsn_AppendSequence2; external DLLName;
function CkAsn_AppendSequenceR; external DLLName;
function CkAsn_AppendSet; external DLLName;
function CkAsn_AppendSet2; external DLLName;
function CkAsn_AppendSetR; external DLLName;
function CkAsn_AppendString; external DLLName;
function CkAsn_AppendTime; external DLLName;
function CkAsn_AsnToXml; external DLLName;
function CkAsn__asnToXml; external DLLName;
function CkAsn_DeleteSubItem; external DLLName;
function CkAsn_GetBinaryDer; external DLLName;
function CkAsn_GetEncodedContent; external DLLName;
function CkAsn__getEncodedContent; external DLLName;
function CkAsn_GetEncodedDer; external DLLName;
function CkAsn__getEncodedDer; external DLLName;
function CkAsn_GetLastSubItem; external DLLName;
function CkAsn_GetSubItem; external DLLName;
function CkAsn_LoadAsnXml; external DLLName;
function CkAsn_LoadBd; external DLLName;
function CkAsn_LoadBinary; external DLLName;
function CkAsn_LoadBinaryFile; external DLLName;
function CkAsn_LoadEncoded; external DLLName;
function CkAsn_SaveLastError; external DLLName;
function CkAsn_SetEncodedContent; external DLLName;
function CkAsn_WriteBd; external DLLName;
function CkAsn_WriteBinaryDer; external DLLName;
end.