1 /* c/zx-ac-dec.c - WARNING: This file was auto generated by xsd2sg.pl. DO NOT EDIT!
2 * $Id$ */
3 /* Code generation design Copyright (c) 2006 Sampo Kellomaki (sampo@iki.fi),
4 * All Rights Reserved. NO WARRANTY. See file COPYING for terms and conditions
5 * of use. Some aspects of code generation were driven by schema
6 * descriptions that were used as input and may be subject to their own copyright.
7 * Code generation uses a template, whose copyright statement follows. */
8
9 /** dec-templ.c - XML decoder template, used in code generation
10 ** Copyright (c) 2010 Sampo Kellomaki (sampo@iki.fi), All Rights Reserved.
11 ** Copyright (c) 2006-2007 Symlabs (symlabs@symlabs.com), All Rights Reserved.
12 ** Author: Sampo Kellomaki (sampo@iki.fi)
13 ** This is confidential unpublished proprietary source code of the author.
14 ** NO WARRANTY, not even implied warranties. Contains trade secrets.
15 ** Distribution prohibited unless authorized in writing.
16 ** Licensed under Apache License 2.0, see file COPYING.
17 ** Id: dec-templ.c,v 1.30 2008-10-04 23:42:14 sampo Exp $
18 **
19 ** 28.5.2006, created, Sampo Kellomaki (sampo@iki.fi)
20 ** 8.8.2006, reworked namespace handling --Sampo
21 ** 12.8.2006, added special scanning of xmlns to avoid backtracking elem recognition --Sampo
22 ** 23.9.2006, added collection of WO information --Sampo
23 ** 21.6.2007, improved handling of undeclared namespace prefixes --Sampo
24 ** 27.10.2010, CSE refactoring, re-engineered namespace handling --Sampo
25 ** 21.11.2010, re-engineered to extract most code to zx_DEC_elem, leaving just switches --Sampo
26 **
27 ** N.B: This template is meant to be processed by pd/xsd2sg.pl. Beware
28 ** of special markers that xsd2sg.pl expects to find and understand.
29 **/
30
31 #include "errmac.h"
32 #include "zx.h"
33 #include "c/zx-const.h"
34 #include "c/zx-data.h"
35 #include "c/zx-ac-data.h"
36 #define TPF zx_
37 #include "zx_ext_pt.h"
38
39
40
zx_DEC_ATTR_ac_ActivationLimit(struct zx_ctx * c,struct zx_ac_ActivationLimit_s * x)41 int zx_DEC_ATTR_ac_ActivationLimit(struct zx_ctx* c, struct zx_ac_ActivationLimit_s* x)
42 {
43 switch (x->gg.attr->g.tok) {
44
45 default: return 0;
46 }
47 }
48
zx_DEC_ELEM_ac_ActivationLimit(struct zx_ctx * c,struct zx_ac_ActivationLimit_s * x)49 int zx_DEC_ELEM_ac_ActivationLimit(struct zx_ctx* c, struct zx_ac_ActivationLimit_s* x)
50 {
51 struct zx_elem_s* el = x->gg.kids;
52 switch (el->g.tok) {
53 case zx_ac_ActivationLimitDuration_ELEM:
54 if (!x->ActivationLimitDuration)
55 x->ActivationLimitDuration = (struct zx_ac_ActivationLimitDuration_s*)el;
56 return 1;
57 case zx_ac_ActivationLimitUsages_ELEM:
58 if (!x->ActivationLimitUsages)
59 x->ActivationLimitUsages = (struct zx_ac_ActivationLimitUsages_s*)el;
60 return 1;
61 case zx_ac_ActivationLimitSession_ELEM:
62 if (!x->ActivationLimitSession)
63 x->ActivationLimitSession = el;
64 return 1;
65
66 default: return 0;
67 }
68 }
69
70
71
72
zx_DEC_ATTR_ac_ActivationLimitDuration(struct zx_ctx * c,struct zx_ac_ActivationLimitDuration_s * x)73 int zx_DEC_ATTR_ac_ActivationLimitDuration(struct zx_ctx* c, struct zx_ac_ActivationLimitDuration_s* x)
74 {
75 switch (x->gg.attr->g.tok) {
76 case zx_duration_ATTR: x->duration = x->gg.attr; return 1;
77
78 default: return 0;
79 }
80 }
81
zx_DEC_ELEM_ac_ActivationLimitDuration(struct zx_ctx * c,struct zx_ac_ActivationLimitDuration_s * x)82 int zx_DEC_ELEM_ac_ActivationLimitDuration(struct zx_ctx* c, struct zx_ac_ActivationLimitDuration_s* x)
83 {
84 struct zx_elem_s* el = x->gg.kids;
85 switch (el->g.tok) {
86
87 default: return 0;
88 }
89 }
90
91
92
93
zx_DEC_ATTR_ac_ActivationLimitUsages(struct zx_ctx * c,struct zx_ac_ActivationLimitUsages_s * x)94 int zx_DEC_ATTR_ac_ActivationLimitUsages(struct zx_ctx* c, struct zx_ac_ActivationLimitUsages_s* x)
95 {
96 switch (x->gg.attr->g.tok) {
97 case zx_number_ATTR: x->number = x->gg.attr; return 1;
98
99 default: return 0;
100 }
101 }
102
zx_DEC_ELEM_ac_ActivationLimitUsages(struct zx_ctx * c,struct zx_ac_ActivationLimitUsages_s * x)103 int zx_DEC_ELEM_ac_ActivationLimitUsages(struct zx_ctx* c, struct zx_ac_ActivationLimitUsages_s* x)
104 {
105 struct zx_elem_s* el = x->gg.kids;
106 switch (el->g.tok) {
107
108 default: return 0;
109 }
110 }
111
112
113
114
zx_DEC_ATTR_ac_ActivationPin(struct zx_ctx * c,struct zx_ac_ActivationPin_s * x)115 int zx_DEC_ATTR_ac_ActivationPin(struct zx_ctx* c, struct zx_ac_ActivationPin_s* x)
116 {
117 switch (x->gg.attr->g.tok) {
118
119 default: return 0;
120 }
121 }
122
zx_DEC_ELEM_ac_ActivationPin(struct zx_ctx * c,struct zx_ac_ActivationPin_s * x)123 int zx_DEC_ELEM_ac_ActivationPin(struct zx_ctx* c, struct zx_ac_ActivationPin_s* x)
124 {
125 struct zx_elem_s* el = x->gg.kids;
126 switch (el->g.tok) {
127 case zx_ac_Length_ELEM:
128 if (!x->Length)
129 x->Length = (struct zx_ac_Length_s*)el;
130 return 1;
131 case zx_ac_Alphabet_ELEM:
132 if (!x->Alphabet)
133 x->Alphabet = (struct zx_ac_Alphabet_s*)el;
134 return 1;
135 case zx_ac_Generation_ELEM:
136 if (!x->Generation)
137 x->Generation = (struct zx_ac_Generation_s*)el;
138 return 1;
139 case zx_ac_ActivationLimit_ELEM:
140 if (!x->ActivationLimit)
141 x->ActivationLimit = (struct zx_ac_ActivationLimit_s*)el;
142 return 1;
143 case zx_ac_Extension_ELEM:
144 if (!x->Extension)
145 x->Extension = (struct zx_ac_Extension_s*)el;
146 return 1;
147
148 default: return 0;
149 }
150 }
151
152
153
154
zx_DEC_ATTR_ac_Alphabet(struct zx_ctx * c,struct zx_ac_Alphabet_s * x)155 int zx_DEC_ATTR_ac_Alphabet(struct zx_ctx* c, struct zx_ac_Alphabet_s* x)
156 {
157 switch (x->gg.attr->g.tok) {
158 case zx_case_ATTR: x->case_is_c_keyword = x->gg.attr; return 1;
159 case zx_excludedChars_ATTR: x->excludedChars = x->gg.attr; return 1;
160 case zx_requiredChars_ATTR: x->requiredChars = x->gg.attr; return 1;
161
162 default: return 0;
163 }
164 }
165
zx_DEC_ELEM_ac_Alphabet(struct zx_ctx * c,struct zx_ac_Alphabet_s * x)166 int zx_DEC_ELEM_ac_Alphabet(struct zx_ctx* c, struct zx_ac_Alphabet_s* x)
167 {
168 struct zx_elem_s* el = x->gg.kids;
169 switch (el->g.tok) {
170
171 default: return 0;
172 }
173 }
174
175
176
177
zx_DEC_ATTR_ac_AsymmetricDecryption(struct zx_ctx * c,struct zx_ac_AsymmetricDecryption_s * x)178 int zx_DEC_ATTR_ac_AsymmetricDecryption(struct zx_ctx* c, struct zx_ac_AsymmetricDecryption_s* x)
179 {
180 switch (x->gg.attr->g.tok) {
181
182 default: return 0;
183 }
184 }
185
zx_DEC_ELEM_ac_AsymmetricDecryption(struct zx_ctx * c,struct zx_ac_AsymmetricDecryption_s * x)186 int zx_DEC_ELEM_ac_AsymmetricDecryption(struct zx_ctx* c, struct zx_ac_AsymmetricDecryption_s* x)
187 {
188 struct zx_elem_s* el = x->gg.kids;
189 switch (el->g.tok) {
190 case zx_ac_Extension_ELEM:
191 if (!x->Extension)
192 x->Extension = (struct zx_ac_Extension_s*)el;
193 return 1;
194
195 default: return 0;
196 }
197 }
198
199
200
201
zx_DEC_ATTR_ac_AsymmetricKeyAgreement(struct zx_ctx * c,struct zx_ac_AsymmetricKeyAgreement_s * x)202 int zx_DEC_ATTR_ac_AsymmetricKeyAgreement(struct zx_ctx* c, struct zx_ac_AsymmetricKeyAgreement_s* x)
203 {
204 switch (x->gg.attr->g.tok) {
205
206 default: return 0;
207 }
208 }
209
zx_DEC_ELEM_ac_AsymmetricKeyAgreement(struct zx_ctx * c,struct zx_ac_AsymmetricKeyAgreement_s * x)210 int zx_DEC_ELEM_ac_AsymmetricKeyAgreement(struct zx_ctx* c, struct zx_ac_AsymmetricKeyAgreement_s* x)
211 {
212 struct zx_elem_s* el = x->gg.kids;
213 switch (el->g.tok) {
214 case zx_ac_Extension_ELEM:
215 if (!x->Extension)
216 x->Extension = (struct zx_ac_Extension_s*)el;
217 return 1;
218
219 default: return 0;
220 }
221 }
222
223
224
225
zx_DEC_ATTR_ac_AuthenticatingAuthority(struct zx_ctx * c,struct zx_ac_AuthenticatingAuthority_s * x)226 int zx_DEC_ATTR_ac_AuthenticatingAuthority(struct zx_ctx* c, struct zx_ac_AuthenticatingAuthority_s* x)
227 {
228 switch (x->gg.attr->g.tok) {
229 case zx_ID_ATTR: x->ID = x->gg.attr; return 1;
230
231 default: return 0;
232 }
233 }
234
zx_DEC_ELEM_ac_AuthenticatingAuthority(struct zx_ctx * c,struct zx_ac_AuthenticatingAuthority_s * x)235 int zx_DEC_ELEM_ac_AuthenticatingAuthority(struct zx_ctx* c, struct zx_ac_AuthenticatingAuthority_s* x)
236 {
237 struct zx_elem_s* el = x->gg.kids;
238 switch (el->g.tok) {
239 case zx_ac_GoverningAgreements_ELEM:
240 if (!x->GoverningAgreements)
241 x->GoverningAgreements = (struct zx_ac_GoverningAgreements_s*)el;
242 return 1;
243
244 default: return 0;
245 }
246 }
247
248
249
250
zx_DEC_ATTR_ac_AuthenticationContextStatement(struct zx_ctx * c,struct zx_ac_AuthenticationContextStatement_s * x)251 int zx_DEC_ATTR_ac_AuthenticationContextStatement(struct zx_ctx* c, struct zx_ac_AuthenticationContextStatement_s* x)
252 {
253 switch (x->gg.attr->g.tok) {
254 case zx_ID_ATTR: x->ID = x->gg.attr; return 1;
255
256 default: return 0;
257 }
258 }
259
zx_DEC_ELEM_ac_AuthenticationContextStatement(struct zx_ctx * c,struct zx_ac_AuthenticationContextStatement_s * x)260 int zx_DEC_ELEM_ac_AuthenticationContextStatement(struct zx_ctx* c, struct zx_ac_AuthenticationContextStatement_s* x)
261 {
262 struct zx_elem_s* el = x->gg.kids;
263 switch (el->g.tok) {
264 case zx_ac_Identification_ELEM:
265 if (!x->Identification)
266 x->Identification = (struct zx_ac_Identification_s*)el;
267 return 1;
268 case zx_ac_TechnicalProtection_ELEM:
269 if (!x->TechnicalProtection)
270 x->TechnicalProtection = (struct zx_ac_TechnicalProtection_s*)el;
271 return 1;
272 case zx_ac_OperationalProtection_ELEM:
273 if (!x->OperationalProtection)
274 x->OperationalProtection = (struct zx_ac_OperationalProtection_s*)el;
275 return 1;
276 case zx_ac_AuthenticationMethod_ELEM:
277 if (!x->AuthenticationMethod)
278 x->AuthenticationMethod = (struct zx_ac_AuthenticationMethod_s*)el;
279 return 1;
280 case zx_ac_GoverningAgreements_ELEM:
281 if (!x->GoverningAgreements)
282 x->GoverningAgreements = (struct zx_ac_GoverningAgreements_s*)el;
283 return 1;
284 case zx_ac_AuthenticatingAuthority_ELEM:
285 if (!x->AuthenticatingAuthority)
286 x->AuthenticatingAuthority = (struct zx_ac_AuthenticatingAuthority_s*)el;
287 return 1;
288 case zx_ac_Extension_ELEM:
289 if (!x->Extension)
290 x->Extension = (struct zx_ac_Extension_s*)el;
291 return 1;
292
293 default: return 0;
294 }
295 }
296
297
298
299
zx_DEC_ATTR_ac_AuthenticationMethod(struct zx_ctx * c,struct zx_ac_AuthenticationMethod_s * x)300 int zx_DEC_ATTR_ac_AuthenticationMethod(struct zx_ctx* c, struct zx_ac_AuthenticationMethod_s* x)
301 {
302 switch (x->gg.attr->g.tok) {
303
304 default: return 0;
305 }
306 }
307
zx_DEC_ELEM_ac_AuthenticationMethod(struct zx_ctx * c,struct zx_ac_AuthenticationMethod_s * x)308 int zx_DEC_ELEM_ac_AuthenticationMethod(struct zx_ctx* c, struct zx_ac_AuthenticationMethod_s* x)
309 {
310 struct zx_elem_s* el = x->gg.kids;
311 switch (el->g.tok) {
312 case zx_ac_PrincipalAuthenticationMechanism_ELEM:
313 if (!x->PrincipalAuthenticationMechanism)
314 x->PrincipalAuthenticationMechanism = (struct zx_ac_PrincipalAuthenticationMechanism_s*)el;
315 return 1;
316 case zx_ac_Authenticator_ELEM:
317 if (!x->Authenticator)
318 x->Authenticator = (struct zx_ac_Authenticator_s*)el;
319 return 1;
320 case zx_ac_AuthenticatorTransportProtocol_ELEM:
321 if (!x->AuthenticatorTransportProtocol)
322 x->AuthenticatorTransportProtocol = (struct zx_ac_AuthenticatorTransportProtocol_s*)el;
323 return 1;
324 case zx_ac_Extension_ELEM:
325 if (!x->Extension)
326 x->Extension = (struct zx_ac_Extension_s*)el;
327 return 1;
328
329 default: return 0;
330 }
331 }
332
333
334
335
zx_DEC_ATTR_ac_Authenticator(struct zx_ctx * c,struct zx_ac_Authenticator_s * x)336 int zx_DEC_ATTR_ac_Authenticator(struct zx_ctx* c, struct zx_ac_Authenticator_s* x)
337 {
338 switch (x->gg.attr->g.tok) {
339
340 default: return 0;
341 }
342 }
343
zx_DEC_ELEM_ac_Authenticator(struct zx_ctx * c,struct zx_ac_Authenticator_s * x)344 int zx_DEC_ELEM_ac_Authenticator(struct zx_ctx* c, struct zx_ac_Authenticator_s* x)
345 {
346 struct zx_elem_s* el = x->gg.kids;
347 switch (el->g.tok) {
348 case zx_ac_PreviousSession_ELEM:
349 if (!x->PreviousSession)
350 x->PreviousSession = (struct zx_ac_PreviousSession_s*)el;
351 return 1;
352 case zx_ac_ResumeSession_ELEM:
353 if (!x->ResumeSession)
354 x->ResumeSession = (struct zx_ac_ResumeSession_s*)el;
355 return 1;
356 case zx_ac_DigSig_ELEM:
357 if (!x->DigSig)
358 x->DigSig = (struct zx_ac_DigSig_s*)el;
359 return 1;
360 case zx_ac_Password_ELEM:
361 if (!x->Password)
362 x->Password = (struct zx_ac_Password_s*)el;
363 return 1;
364 case zx_ac_ZeroKnowledge_ELEM:
365 if (!x->ZeroKnowledge)
366 x->ZeroKnowledge = (struct zx_ac_ZeroKnowledge_s*)el;
367 return 1;
368 case zx_ac_SharedSecretChallengeResponse_ELEM:
369 if (!x->SharedSecretChallengeResponse)
370 x->SharedSecretChallengeResponse = (struct zx_ac_SharedSecretChallengeResponse_s*)el;
371 return 1;
372 case zx_ac_SharedSecretDynamicPlaintext_ELEM:
373 if (!x->SharedSecretDynamicPlaintext)
374 x->SharedSecretDynamicPlaintext = (struct zx_ac_SharedSecretDynamicPlaintext_s*)el;
375 return 1;
376 case zx_ac_IPAddress_ELEM:
377 if (!x->IPAddress)
378 x->IPAddress = (struct zx_ac_IPAddress_s*)el;
379 return 1;
380 case zx_ac_AsymmetricDecryption_ELEM:
381 if (!x->AsymmetricDecryption)
382 x->AsymmetricDecryption = (struct zx_ac_AsymmetricDecryption_s*)el;
383 return 1;
384 case zx_ac_AsymmetricKeyAgreement_ELEM:
385 if (!x->AsymmetricKeyAgreement)
386 x->AsymmetricKeyAgreement = (struct zx_ac_AsymmetricKeyAgreement_s*)el;
387 return 1;
388 case zx_ac_Extension_ELEM:
389 if (!x->Extension)
390 x->Extension = (struct zx_ac_Extension_s*)el;
391 return 1;
392
393 default: return 0;
394 }
395 }
396
397
398
399
zx_DEC_ATTR_ac_AuthenticatorTransportProtocol(struct zx_ctx * c,struct zx_ac_AuthenticatorTransportProtocol_s * x)400 int zx_DEC_ATTR_ac_AuthenticatorTransportProtocol(struct zx_ctx* c, struct zx_ac_AuthenticatorTransportProtocol_s* x)
401 {
402 switch (x->gg.attr->g.tok) {
403
404 default: return 0;
405 }
406 }
407
zx_DEC_ELEM_ac_AuthenticatorTransportProtocol(struct zx_ctx * c,struct zx_ac_AuthenticatorTransportProtocol_s * x)408 int zx_DEC_ELEM_ac_AuthenticatorTransportProtocol(struct zx_ctx* c, struct zx_ac_AuthenticatorTransportProtocol_s* x)
409 {
410 struct zx_elem_s* el = x->gg.kids;
411 switch (el->g.tok) {
412 case zx_ac_HTTP_ELEM:
413 if (!x->HTTP)
414 x->HTTP = (struct zx_ac_HTTP_s*)el;
415 return 1;
416 case zx_ac_SSL_ELEM:
417 if (!x->SSL)
418 x->SSL = (struct zx_ac_SSL_s*)el;
419 return 1;
420 case zx_ac_MobileNetworkNoEncryption_ELEM:
421 if (!x->MobileNetworkNoEncryption)
422 x->MobileNetworkNoEncryption = (struct zx_ac_MobileNetworkNoEncryption_s*)el;
423 return 1;
424 case zx_ac_MobileNetworkRadioEncryption_ELEM:
425 if (!x->MobileNetworkRadioEncryption)
426 x->MobileNetworkRadioEncryption = (struct zx_ac_MobileNetworkRadioEncryption_s*)el;
427 return 1;
428 case zx_ac_MobileNetworkEndToEndEncryption_ELEM:
429 if (!x->MobileNetworkEndToEndEncryption)
430 x->MobileNetworkEndToEndEncryption = (struct zx_ac_MobileNetworkEndToEndEncryption_s*)el;
431 return 1;
432 case zx_ac_WTLS_ELEM:
433 if (!x->WTLS)
434 x->WTLS = (struct zx_ac_WTLS_s*)el;
435 return 1;
436 case zx_ac_IPSec_ELEM:
437 if (!x->IPSec)
438 x->IPSec = (struct zx_ac_IPSec_s*)el;
439 return 1;
440 case zx_ac_Extension_ELEM:
441 if (!x->Extension)
442 x->Extension = (struct zx_ac_Extension_s*)el;
443 return 1;
444
445 default: return 0;
446 }
447 }
448
449
450
451
zx_DEC_ATTR_ac_DeactivationCallCenter(struct zx_ctx * c,struct zx_ac_DeactivationCallCenter_s * x)452 int zx_DEC_ATTR_ac_DeactivationCallCenter(struct zx_ctx* c, struct zx_ac_DeactivationCallCenter_s* x)
453 {
454 switch (x->gg.attr->g.tok) {
455
456 default: return 0;
457 }
458 }
459
zx_DEC_ELEM_ac_DeactivationCallCenter(struct zx_ctx * c,struct zx_ac_DeactivationCallCenter_s * x)460 int zx_DEC_ELEM_ac_DeactivationCallCenter(struct zx_ctx* c, struct zx_ac_DeactivationCallCenter_s* x)
461 {
462 struct zx_elem_s* el = x->gg.kids;
463 switch (el->g.tok) {
464 case zx_ac_Extension_ELEM:
465 if (!x->Extension)
466 x->Extension = (struct zx_ac_Extension_s*)el;
467 return 1;
468
469 default: return 0;
470 }
471 }
472
473
474
475
zx_DEC_ATTR_ac_DigSig(struct zx_ctx * c,struct zx_ac_DigSig_s * x)476 int zx_DEC_ATTR_ac_DigSig(struct zx_ctx* c, struct zx_ac_DigSig_s* x)
477 {
478 switch (x->gg.attr->g.tok) {
479
480 default: return 0;
481 }
482 }
483
zx_DEC_ELEM_ac_DigSig(struct zx_ctx * c,struct zx_ac_DigSig_s * x)484 int zx_DEC_ELEM_ac_DigSig(struct zx_ctx* c, struct zx_ac_DigSig_s* x)
485 {
486 struct zx_elem_s* el = x->gg.kids;
487 switch (el->g.tok) {
488 case zx_ac_Extension_ELEM:
489 if (!x->Extension)
490 x->Extension = (struct zx_ac_Extension_s*)el;
491 return 1;
492
493 default: return 0;
494 }
495 }
496
497
498
499
zx_DEC_ATTR_ac_Extension(struct zx_ctx * c,struct zx_ac_Extension_s * x)500 int zx_DEC_ATTR_ac_Extension(struct zx_ctx* c, struct zx_ac_Extension_s* x)
501 {
502 switch (x->gg.attr->g.tok) {
503
504 default: return 0;
505 }
506 }
507
zx_DEC_ELEM_ac_Extension(struct zx_ctx * c,struct zx_ac_Extension_s * x)508 int zx_DEC_ELEM_ac_Extension(struct zx_ctx* c, struct zx_ac_Extension_s* x)
509 {
510 struct zx_elem_s* el = x->gg.kids;
511 switch (el->g.tok) {
512
513 default: return 0;
514 }
515 }
516
517
518
519
zx_DEC_ATTR_ac_Generation(struct zx_ctx * c,struct zx_ac_Generation_s * x)520 int zx_DEC_ATTR_ac_Generation(struct zx_ctx* c, struct zx_ac_Generation_s* x)
521 {
522 switch (x->gg.attr->g.tok) {
523 case zx_mechanism_ATTR: x->mechanism = x->gg.attr; return 1;
524
525 default: return 0;
526 }
527 }
528
zx_DEC_ELEM_ac_Generation(struct zx_ctx * c,struct zx_ac_Generation_s * x)529 int zx_DEC_ELEM_ac_Generation(struct zx_ctx* c, struct zx_ac_Generation_s* x)
530 {
531 struct zx_elem_s* el = x->gg.kids;
532 switch (el->g.tok) {
533
534 default: return 0;
535 }
536 }
537
538
539
540
zx_DEC_ATTR_ac_GoverningAgreementRef(struct zx_ctx * c,struct zx_ac_GoverningAgreementRef_s * x)541 int zx_DEC_ATTR_ac_GoverningAgreementRef(struct zx_ctx* c, struct zx_ac_GoverningAgreementRef_s* x)
542 {
543 switch (x->gg.attr->g.tok) {
544 case zx_governingAgreementRef_ATTR: x->governingAgreementRef = x->gg.attr; return 1;
545
546 default: return 0;
547 }
548 }
549
zx_DEC_ELEM_ac_GoverningAgreementRef(struct zx_ctx * c,struct zx_ac_GoverningAgreementRef_s * x)550 int zx_DEC_ELEM_ac_GoverningAgreementRef(struct zx_ctx* c, struct zx_ac_GoverningAgreementRef_s* x)
551 {
552 struct zx_elem_s* el = x->gg.kids;
553 switch (el->g.tok) {
554
555 default: return 0;
556 }
557 }
558
559
560
561
zx_DEC_ATTR_ac_GoverningAgreements(struct zx_ctx * c,struct zx_ac_GoverningAgreements_s * x)562 int zx_DEC_ATTR_ac_GoverningAgreements(struct zx_ctx* c, struct zx_ac_GoverningAgreements_s* x)
563 {
564 switch (x->gg.attr->g.tok) {
565
566 default: return 0;
567 }
568 }
569
zx_DEC_ELEM_ac_GoverningAgreements(struct zx_ctx * c,struct zx_ac_GoverningAgreements_s * x)570 int zx_DEC_ELEM_ac_GoverningAgreements(struct zx_ctx* c, struct zx_ac_GoverningAgreements_s* x)
571 {
572 struct zx_elem_s* el = x->gg.kids;
573 switch (el->g.tok) {
574 case zx_ac_GoverningAgreementRef_ELEM:
575 if (!x->GoverningAgreementRef)
576 x->GoverningAgreementRef = (struct zx_ac_GoverningAgreementRef_s*)el;
577 return 1;
578
579 default: return 0;
580 }
581 }
582
583
584
585
zx_DEC_ATTR_ac_HTTP(struct zx_ctx * c,struct zx_ac_HTTP_s * x)586 int zx_DEC_ATTR_ac_HTTP(struct zx_ctx* c, struct zx_ac_HTTP_s* x)
587 {
588 switch (x->gg.attr->g.tok) {
589
590 default: return 0;
591 }
592 }
593
zx_DEC_ELEM_ac_HTTP(struct zx_ctx * c,struct zx_ac_HTTP_s * x)594 int zx_DEC_ELEM_ac_HTTP(struct zx_ctx* c, struct zx_ac_HTTP_s* x)
595 {
596 struct zx_elem_s* el = x->gg.kids;
597 switch (el->g.tok) {
598 case zx_ac_Extension_ELEM:
599 if (!x->Extension)
600 x->Extension = (struct zx_ac_Extension_s*)el;
601 return 1;
602
603 default: return 0;
604 }
605 }
606
607
608
609
zx_DEC_ATTR_ac_IPAddress(struct zx_ctx * c,struct zx_ac_IPAddress_s * x)610 int zx_DEC_ATTR_ac_IPAddress(struct zx_ctx* c, struct zx_ac_IPAddress_s* x)
611 {
612 switch (x->gg.attr->g.tok) {
613
614 default: return 0;
615 }
616 }
617
zx_DEC_ELEM_ac_IPAddress(struct zx_ctx * c,struct zx_ac_IPAddress_s * x)618 int zx_DEC_ELEM_ac_IPAddress(struct zx_ctx* c, struct zx_ac_IPAddress_s* x)
619 {
620 struct zx_elem_s* el = x->gg.kids;
621 switch (el->g.tok) {
622 case zx_ac_Extension_ELEM:
623 if (!x->Extension)
624 x->Extension = (struct zx_ac_Extension_s*)el;
625 return 1;
626
627 default: return 0;
628 }
629 }
630
631
632
633
zx_DEC_ATTR_ac_IPSec(struct zx_ctx * c,struct zx_ac_IPSec_s * x)634 int zx_DEC_ATTR_ac_IPSec(struct zx_ctx* c, struct zx_ac_IPSec_s* x)
635 {
636 switch (x->gg.attr->g.tok) {
637
638 default: return 0;
639 }
640 }
641
zx_DEC_ELEM_ac_IPSec(struct zx_ctx * c,struct zx_ac_IPSec_s * x)642 int zx_DEC_ELEM_ac_IPSec(struct zx_ctx* c, struct zx_ac_IPSec_s* x)
643 {
644 struct zx_elem_s* el = x->gg.kids;
645 switch (el->g.tok) {
646 case zx_ac_Extension_ELEM:
647 if (!x->Extension)
648 x->Extension = (struct zx_ac_Extension_s*)el;
649 return 1;
650
651 default: return 0;
652 }
653 }
654
655
656
657
zx_DEC_ATTR_ac_Identification(struct zx_ctx * c,struct zx_ac_Identification_s * x)658 int zx_DEC_ATTR_ac_Identification(struct zx_ctx* c, struct zx_ac_Identification_s* x)
659 {
660 switch (x->gg.attr->g.tok) {
661 case zx_nym_ATTR: x->nym = x->gg.attr; return 1;
662
663 default: return 0;
664 }
665 }
666
zx_DEC_ELEM_ac_Identification(struct zx_ctx * c,struct zx_ac_Identification_s * x)667 int zx_DEC_ELEM_ac_Identification(struct zx_ctx* c, struct zx_ac_Identification_s* x)
668 {
669 struct zx_elem_s* el = x->gg.kids;
670 switch (el->g.tok) {
671 case zx_ac_PhysicalVerification_ELEM:
672 if (!x->PhysicalVerification)
673 x->PhysicalVerification = (struct zx_ac_PhysicalVerification_s*)el;
674 return 1;
675 case zx_ac_WrittenConsent_ELEM:
676 if (!x->WrittenConsent)
677 x->WrittenConsent = (struct zx_ac_WrittenConsent_s*)el;
678 return 1;
679 case zx_ac_Extension_ELEM:
680 if (!x->Extension)
681 x->Extension = (struct zx_ac_Extension_s*)el;
682 return 1;
683
684 default: return 0;
685 }
686 }
687
688
689
690
zx_DEC_ATTR_ac_KeyActivation(struct zx_ctx * c,struct zx_ac_KeyActivation_s * x)691 int zx_DEC_ATTR_ac_KeyActivation(struct zx_ctx* c, struct zx_ac_KeyActivation_s* x)
692 {
693 switch (x->gg.attr->g.tok) {
694
695 default: return 0;
696 }
697 }
698
zx_DEC_ELEM_ac_KeyActivation(struct zx_ctx * c,struct zx_ac_KeyActivation_s * x)699 int zx_DEC_ELEM_ac_KeyActivation(struct zx_ctx* c, struct zx_ac_KeyActivation_s* x)
700 {
701 struct zx_elem_s* el = x->gg.kids;
702 switch (el->g.tok) {
703 case zx_ac_ActivationPin_ELEM:
704 if (!x->ActivationPin)
705 x->ActivationPin = (struct zx_ac_ActivationPin_s*)el;
706 return 1;
707 case zx_ac_Extension_ELEM:
708 if (!x->Extension)
709 x->Extension = (struct zx_ac_Extension_s*)el;
710 return 1;
711
712 default: return 0;
713 }
714 }
715
716
717
718
zx_DEC_ATTR_ac_KeySharing(struct zx_ctx * c,struct zx_ac_KeySharing_s * x)719 int zx_DEC_ATTR_ac_KeySharing(struct zx_ctx* c, struct zx_ac_KeySharing_s* x)
720 {
721 switch (x->gg.attr->g.tok) {
722 case zx_sharing_ATTR: x->sharing = x->gg.attr; return 1;
723
724 default: return 0;
725 }
726 }
727
zx_DEC_ELEM_ac_KeySharing(struct zx_ctx * c,struct zx_ac_KeySharing_s * x)728 int zx_DEC_ELEM_ac_KeySharing(struct zx_ctx* c, struct zx_ac_KeySharing_s* x)
729 {
730 struct zx_elem_s* el = x->gg.kids;
731 switch (el->g.tok) {
732
733 default: return 0;
734 }
735 }
736
737
738
739
zx_DEC_ATTR_ac_KeyStorage(struct zx_ctx * c,struct zx_ac_KeyStorage_s * x)740 int zx_DEC_ATTR_ac_KeyStorage(struct zx_ctx* c, struct zx_ac_KeyStorage_s* x)
741 {
742 switch (x->gg.attr->g.tok) {
743 case zx_medium_ATTR: x->medium = x->gg.attr; return 1;
744
745 default: return 0;
746 }
747 }
748
zx_DEC_ELEM_ac_KeyStorage(struct zx_ctx * c,struct zx_ac_KeyStorage_s * x)749 int zx_DEC_ELEM_ac_KeyStorage(struct zx_ctx* c, struct zx_ac_KeyStorage_s* x)
750 {
751 struct zx_elem_s* el = x->gg.kids;
752 switch (el->g.tok) {
753
754 default: return 0;
755 }
756 }
757
758
759
760
zx_DEC_ATTR_ac_Length(struct zx_ctx * c,struct zx_ac_Length_s * x)761 int zx_DEC_ATTR_ac_Length(struct zx_ctx* c, struct zx_ac_Length_s* x)
762 {
763 switch (x->gg.attr->g.tok) {
764 case zx_max_ATTR: x->max = x->gg.attr; return 1;
765 case zx_min_ATTR: x->min = x->gg.attr; return 1;
766
767 default: return 0;
768 }
769 }
770
zx_DEC_ELEM_ac_Length(struct zx_ctx * c,struct zx_ac_Length_s * x)771 int zx_DEC_ELEM_ac_Length(struct zx_ctx* c, struct zx_ac_Length_s* x)
772 {
773 struct zx_elem_s* el = x->gg.kids;
774 switch (el->g.tok) {
775
776 default: return 0;
777 }
778 }
779
780
781
782
zx_DEC_ATTR_ac_MobileNetworkEndToEndEncryption(struct zx_ctx * c,struct zx_ac_MobileNetworkEndToEndEncryption_s * x)783 int zx_DEC_ATTR_ac_MobileNetworkEndToEndEncryption(struct zx_ctx* c, struct zx_ac_MobileNetworkEndToEndEncryption_s* x)
784 {
785 switch (x->gg.attr->g.tok) {
786
787 default: return 0;
788 }
789 }
790
zx_DEC_ELEM_ac_MobileNetworkEndToEndEncryption(struct zx_ctx * c,struct zx_ac_MobileNetworkEndToEndEncryption_s * x)791 int zx_DEC_ELEM_ac_MobileNetworkEndToEndEncryption(struct zx_ctx* c, struct zx_ac_MobileNetworkEndToEndEncryption_s* x)
792 {
793 struct zx_elem_s* el = x->gg.kids;
794 switch (el->g.tok) {
795 case zx_ac_Extension_ELEM:
796 if (!x->Extension)
797 x->Extension = (struct zx_ac_Extension_s*)el;
798 return 1;
799
800 default: return 0;
801 }
802 }
803
804
805
806
zx_DEC_ATTR_ac_MobileNetworkNoEncryption(struct zx_ctx * c,struct zx_ac_MobileNetworkNoEncryption_s * x)807 int zx_DEC_ATTR_ac_MobileNetworkNoEncryption(struct zx_ctx* c, struct zx_ac_MobileNetworkNoEncryption_s* x)
808 {
809 switch (x->gg.attr->g.tok) {
810
811 default: return 0;
812 }
813 }
814
zx_DEC_ELEM_ac_MobileNetworkNoEncryption(struct zx_ctx * c,struct zx_ac_MobileNetworkNoEncryption_s * x)815 int zx_DEC_ELEM_ac_MobileNetworkNoEncryption(struct zx_ctx* c, struct zx_ac_MobileNetworkNoEncryption_s* x)
816 {
817 struct zx_elem_s* el = x->gg.kids;
818 switch (el->g.tok) {
819 case zx_ac_Extension_ELEM:
820 if (!x->Extension)
821 x->Extension = (struct zx_ac_Extension_s*)el;
822 return 1;
823
824 default: return 0;
825 }
826 }
827
828
829
830
zx_DEC_ATTR_ac_MobileNetworkRadioEncryption(struct zx_ctx * c,struct zx_ac_MobileNetworkRadioEncryption_s * x)831 int zx_DEC_ATTR_ac_MobileNetworkRadioEncryption(struct zx_ctx* c, struct zx_ac_MobileNetworkRadioEncryption_s* x)
832 {
833 switch (x->gg.attr->g.tok) {
834
835 default: return 0;
836 }
837 }
838
zx_DEC_ELEM_ac_MobileNetworkRadioEncryption(struct zx_ctx * c,struct zx_ac_MobileNetworkRadioEncryption_s * x)839 int zx_DEC_ELEM_ac_MobileNetworkRadioEncryption(struct zx_ctx* c, struct zx_ac_MobileNetworkRadioEncryption_s* x)
840 {
841 struct zx_elem_s* el = x->gg.kids;
842 switch (el->g.tok) {
843 case zx_ac_Extension_ELEM:
844 if (!x->Extension)
845 x->Extension = (struct zx_ac_Extension_s*)el;
846 return 1;
847
848 default: return 0;
849 }
850 }
851
852
853
854
zx_DEC_ATTR_ac_OperationalProtection(struct zx_ctx * c,struct zx_ac_OperationalProtection_s * x)855 int zx_DEC_ATTR_ac_OperationalProtection(struct zx_ctx* c, struct zx_ac_OperationalProtection_s* x)
856 {
857 switch (x->gg.attr->g.tok) {
858
859 default: return 0;
860 }
861 }
862
zx_DEC_ELEM_ac_OperationalProtection(struct zx_ctx * c,struct zx_ac_OperationalProtection_s * x)863 int zx_DEC_ELEM_ac_OperationalProtection(struct zx_ctx* c, struct zx_ac_OperationalProtection_s* x)
864 {
865 struct zx_elem_s* el = x->gg.kids;
866 switch (el->g.tok) {
867 case zx_ac_SecurityAudit_ELEM:
868 if (!x->SecurityAudit)
869 x->SecurityAudit = (struct zx_ac_SecurityAudit_s*)el;
870 return 1;
871 case zx_ac_DeactivationCallCenter_ELEM:
872 if (!x->DeactivationCallCenter)
873 x->DeactivationCallCenter = (struct zx_ac_DeactivationCallCenter_s*)el;
874 return 1;
875 case zx_ac_Extension_ELEM:
876 if (!x->Extension)
877 x->Extension = (struct zx_ac_Extension_s*)el;
878 return 1;
879
880 default: return 0;
881 }
882 }
883
884
885
886
zx_DEC_ATTR_ac_Password(struct zx_ctx * c,struct zx_ac_Password_s * x)887 int zx_DEC_ATTR_ac_Password(struct zx_ctx* c, struct zx_ac_Password_s* x)
888 {
889 switch (x->gg.attr->g.tok) {
890
891 default: return 0;
892 }
893 }
894
zx_DEC_ELEM_ac_Password(struct zx_ctx * c,struct zx_ac_Password_s * x)895 int zx_DEC_ELEM_ac_Password(struct zx_ctx* c, struct zx_ac_Password_s* x)
896 {
897 struct zx_elem_s* el = x->gg.kids;
898 switch (el->g.tok) {
899 case zx_ac_Length_ELEM:
900 if (!x->Length)
901 x->Length = (struct zx_ac_Length_s*)el;
902 return 1;
903 case zx_ac_Alphabet_ELEM:
904 if (!x->Alphabet)
905 x->Alphabet = (struct zx_ac_Alphabet_s*)el;
906 return 1;
907 case zx_ac_Generation_ELEM:
908 if (!x->Generation)
909 x->Generation = (struct zx_ac_Generation_s*)el;
910 return 1;
911 case zx_ac_Extension_ELEM:
912 if (!x->Extension)
913 x->Extension = (struct zx_ac_Extension_s*)el;
914 return 1;
915
916 default: return 0;
917 }
918 }
919
920
921
922
zx_DEC_ATTR_ac_PhysicalVerification(struct zx_ctx * c,struct zx_ac_PhysicalVerification_s * x)923 int zx_DEC_ATTR_ac_PhysicalVerification(struct zx_ctx* c, struct zx_ac_PhysicalVerification_s* x)
924 {
925 switch (x->gg.attr->g.tok) {
926 case zx_credentialLevel_ATTR: x->credentialLevel = x->gg.attr; return 1;
927
928 default: return 0;
929 }
930 }
931
zx_DEC_ELEM_ac_PhysicalVerification(struct zx_ctx * c,struct zx_ac_PhysicalVerification_s * x)932 int zx_DEC_ELEM_ac_PhysicalVerification(struct zx_ctx* c, struct zx_ac_PhysicalVerification_s* x)
933 {
934 struct zx_elem_s* el = x->gg.kids;
935 switch (el->g.tok) {
936
937 default: return 0;
938 }
939 }
940
941
942
943
zx_DEC_ATTR_ac_PreviousSession(struct zx_ctx * c,struct zx_ac_PreviousSession_s * x)944 int zx_DEC_ATTR_ac_PreviousSession(struct zx_ctx* c, struct zx_ac_PreviousSession_s* x)
945 {
946 switch (x->gg.attr->g.tok) {
947
948 default: return 0;
949 }
950 }
951
zx_DEC_ELEM_ac_PreviousSession(struct zx_ctx * c,struct zx_ac_PreviousSession_s * x)952 int zx_DEC_ELEM_ac_PreviousSession(struct zx_ctx* c, struct zx_ac_PreviousSession_s* x)
953 {
954 struct zx_elem_s* el = x->gg.kids;
955 switch (el->g.tok) {
956 case zx_ac_Extension_ELEM:
957 if (!x->Extension)
958 x->Extension = (struct zx_ac_Extension_s*)el;
959 return 1;
960
961 default: return 0;
962 }
963 }
964
965
966
967
zx_DEC_ATTR_ac_PrincipalAuthenticationMechanism(struct zx_ctx * c,struct zx_ac_PrincipalAuthenticationMechanism_s * x)968 int zx_DEC_ATTR_ac_PrincipalAuthenticationMechanism(struct zx_ctx* c, struct zx_ac_PrincipalAuthenticationMechanism_s* x)
969 {
970 switch (x->gg.attr->g.tok) {
971
972 default: return 0;
973 }
974 }
975
zx_DEC_ELEM_ac_PrincipalAuthenticationMechanism(struct zx_ctx * c,struct zx_ac_PrincipalAuthenticationMechanism_s * x)976 int zx_DEC_ELEM_ac_PrincipalAuthenticationMechanism(struct zx_ctx* c, struct zx_ac_PrincipalAuthenticationMechanism_s* x)
977 {
978 struct zx_elem_s* el = x->gg.kids;
979 switch (el->g.tok) {
980 case zx_ac_Password_ELEM:
981 if (!x->Password)
982 x->Password = (struct zx_ac_Password_s*)el;
983 return 1;
984 case zx_ac_Token_ELEM:
985 if (!x->Token)
986 x->Token = (struct zx_ac_Token_s*)el;
987 return 1;
988 case zx_ac_Smartcard_ELEM:
989 if (!x->Smartcard)
990 x->Smartcard = (struct zx_ac_Smartcard_s*)el;
991 return 1;
992 case zx_ac_ActivationPin_ELEM:
993 if (!x->ActivationPin)
994 x->ActivationPin = (struct zx_ac_ActivationPin_s*)el;
995 return 1;
996 case zx_ac_Extension_ELEM:
997 if (!x->Extension)
998 x->Extension = (struct zx_ac_Extension_s*)el;
999 return 1;
1000
1001 default: return 0;
1002 }
1003 }
1004
1005
1006
1007
zx_DEC_ATTR_ac_PrivateKeyProtection(struct zx_ctx * c,struct zx_ac_PrivateKeyProtection_s * x)1008 int zx_DEC_ATTR_ac_PrivateKeyProtection(struct zx_ctx* c, struct zx_ac_PrivateKeyProtection_s* x)
1009 {
1010 switch (x->gg.attr->g.tok) {
1011
1012 default: return 0;
1013 }
1014 }
1015
zx_DEC_ELEM_ac_PrivateKeyProtection(struct zx_ctx * c,struct zx_ac_PrivateKeyProtection_s * x)1016 int zx_DEC_ELEM_ac_PrivateKeyProtection(struct zx_ctx* c, struct zx_ac_PrivateKeyProtection_s* x)
1017 {
1018 struct zx_elem_s* el = x->gg.kids;
1019 switch (el->g.tok) {
1020 case zx_ac_KeyActivation_ELEM:
1021 if (!x->KeyActivation)
1022 x->KeyActivation = (struct zx_ac_KeyActivation_s*)el;
1023 return 1;
1024 case zx_ac_KeyStorage_ELEM:
1025 if (!x->KeyStorage)
1026 x->KeyStorage = (struct zx_ac_KeyStorage_s*)el;
1027 return 1;
1028 case zx_ac_KeySharing_ELEM:
1029 if (!x->KeySharing)
1030 x->KeySharing = (struct zx_ac_KeySharing_s*)el;
1031 return 1;
1032 case zx_ac_Extension_ELEM:
1033 if (!x->Extension)
1034 x->Extension = (struct zx_ac_Extension_s*)el;
1035 return 1;
1036
1037 default: return 0;
1038 }
1039 }
1040
1041
1042
1043
zx_DEC_ATTR_ac_ResumeSession(struct zx_ctx * c,struct zx_ac_ResumeSession_s * x)1044 int zx_DEC_ATTR_ac_ResumeSession(struct zx_ctx* c, struct zx_ac_ResumeSession_s* x)
1045 {
1046 switch (x->gg.attr->g.tok) {
1047
1048 default: return 0;
1049 }
1050 }
1051
zx_DEC_ELEM_ac_ResumeSession(struct zx_ctx * c,struct zx_ac_ResumeSession_s * x)1052 int zx_DEC_ELEM_ac_ResumeSession(struct zx_ctx* c, struct zx_ac_ResumeSession_s* x)
1053 {
1054 struct zx_elem_s* el = x->gg.kids;
1055 switch (el->g.tok) {
1056 case zx_ac_Extension_ELEM:
1057 if (!x->Extension)
1058 x->Extension = (struct zx_ac_Extension_s*)el;
1059 return 1;
1060
1061 default: return 0;
1062 }
1063 }
1064
1065
1066
1067
zx_DEC_ATTR_ac_SSL(struct zx_ctx * c,struct zx_ac_SSL_s * x)1068 int zx_DEC_ATTR_ac_SSL(struct zx_ctx* c, struct zx_ac_SSL_s* x)
1069 {
1070 switch (x->gg.attr->g.tok) {
1071
1072 default: return 0;
1073 }
1074 }
1075
zx_DEC_ELEM_ac_SSL(struct zx_ctx * c,struct zx_ac_SSL_s * x)1076 int zx_DEC_ELEM_ac_SSL(struct zx_ctx* c, struct zx_ac_SSL_s* x)
1077 {
1078 struct zx_elem_s* el = x->gg.kids;
1079 switch (el->g.tok) {
1080 case zx_ac_Extension_ELEM:
1081 if (!x->Extension)
1082 x->Extension = (struct zx_ac_Extension_s*)el;
1083 return 1;
1084
1085 default: return 0;
1086 }
1087 }
1088
1089
1090
1091
zx_DEC_ATTR_ac_SecretKeyProtection(struct zx_ctx * c,struct zx_ac_SecretKeyProtection_s * x)1092 int zx_DEC_ATTR_ac_SecretKeyProtection(struct zx_ctx* c, struct zx_ac_SecretKeyProtection_s* x)
1093 {
1094 switch (x->gg.attr->g.tok) {
1095
1096 default: return 0;
1097 }
1098 }
1099
zx_DEC_ELEM_ac_SecretKeyProtection(struct zx_ctx * c,struct zx_ac_SecretKeyProtection_s * x)1100 int zx_DEC_ELEM_ac_SecretKeyProtection(struct zx_ctx* c, struct zx_ac_SecretKeyProtection_s* x)
1101 {
1102 struct zx_elem_s* el = x->gg.kids;
1103 switch (el->g.tok) {
1104 case zx_ac_KeyActivation_ELEM:
1105 if (!x->KeyActivation)
1106 x->KeyActivation = (struct zx_ac_KeyActivation_s*)el;
1107 return 1;
1108 case zx_ac_KeyStorage_ELEM:
1109 if (!x->KeyStorage)
1110 x->KeyStorage = (struct zx_ac_KeyStorage_s*)el;
1111 return 1;
1112 case zx_ac_Extension_ELEM:
1113 if (!x->Extension)
1114 x->Extension = (struct zx_ac_Extension_s*)el;
1115 return 1;
1116
1117 default: return 0;
1118 }
1119 }
1120
1121
1122
1123
zx_DEC_ATTR_ac_SecurityAudit(struct zx_ctx * c,struct zx_ac_SecurityAudit_s * x)1124 int zx_DEC_ATTR_ac_SecurityAudit(struct zx_ctx* c, struct zx_ac_SecurityAudit_s* x)
1125 {
1126 switch (x->gg.attr->g.tok) {
1127
1128 default: return 0;
1129 }
1130 }
1131
zx_DEC_ELEM_ac_SecurityAudit(struct zx_ctx * c,struct zx_ac_SecurityAudit_s * x)1132 int zx_DEC_ELEM_ac_SecurityAudit(struct zx_ctx* c, struct zx_ac_SecurityAudit_s* x)
1133 {
1134 struct zx_elem_s* el = x->gg.kids;
1135 switch (el->g.tok) {
1136 case zx_ac_SwitchAudit_ELEM:
1137 if (!x->SwitchAudit)
1138 x->SwitchAudit = (struct zx_ac_SwitchAudit_s*)el;
1139 return 1;
1140 case zx_ac_Extension_ELEM:
1141 if (!x->Extension)
1142 x->Extension = (struct zx_ac_Extension_s*)el;
1143 return 1;
1144
1145 default: return 0;
1146 }
1147 }
1148
1149
1150
1151
zx_DEC_ATTR_ac_SharedSecretChallengeResponse(struct zx_ctx * c,struct zx_ac_SharedSecretChallengeResponse_s * x)1152 int zx_DEC_ATTR_ac_SharedSecretChallengeResponse(struct zx_ctx* c, struct zx_ac_SharedSecretChallengeResponse_s* x)
1153 {
1154 switch (x->gg.attr->g.tok) {
1155
1156 default: return 0;
1157 }
1158 }
1159
zx_DEC_ELEM_ac_SharedSecretChallengeResponse(struct zx_ctx * c,struct zx_ac_SharedSecretChallengeResponse_s * x)1160 int zx_DEC_ELEM_ac_SharedSecretChallengeResponse(struct zx_ctx* c, struct zx_ac_SharedSecretChallengeResponse_s* x)
1161 {
1162 struct zx_elem_s* el = x->gg.kids;
1163 switch (el->g.tok) {
1164 case zx_ac_Extension_ELEM:
1165 if (!x->Extension)
1166 x->Extension = (struct zx_ac_Extension_s*)el;
1167 return 1;
1168
1169 default: return 0;
1170 }
1171 }
1172
1173
1174
1175
zx_DEC_ATTR_ac_SharedSecretDynamicPlaintext(struct zx_ctx * c,struct zx_ac_SharedSecretDynamicPlaintext_s * x)1176 int zx_DEC_ATTR_ac_SharedSecretDynamicPlaintext(struct zx_ctx* c, struct zx_ac_SharedSecretDynamicPlaintext_s* x)
1177 {
1178 switch (x->gg.attr->g.tok) {
1179
1180 default: return 0;
1181 }
1182 }
1183
zx_DEC_ELEM_ac_SharedSecretDynamicPlaintext(struct zx_ctx * c,struct zx_ac_SharedSecretDynamicPlaintext_s * x)1184 int zx_DEC_ELEM_ac_SharedSecretDynamicPlaintext(struct zx_ctx* c, struct zx_ac_SharedSecretDynamicPlaintext_s* x)
1185 {
1186 struct zx_elem_s* el = x->gg.kids;
1187 switch (el->g.tok) {
1188 case zx_ac_Extension_ELEM:
1189 if (!x->Extension)
1190 x->Extension = (struct zx_ac_Extension_s*)el;
1191 return 1;
1192
1193 default: return 0;
1194 }
1195 }
1196
1197
1198
1199
zx_DEC_ATTR_ac_Smartcard(struct zx_ctx * c,struct zx_ac_Smartcard_s * x)1200 int zx_DEC_ATTR_ac_Smartcard(struct zx_ctx* c, struct zx_ac_Smartcard_s* x)
1201 {
1202 switch (x->gg.attr->g.tok) {
1203
1204 default: return 0;
1205 }
1206 }
1207
zx_DEC_ELEM_ac_Smartcard(struct zx_ctx * c,struct zx_ac_Smartcard_s * x)1208 int zx_DEC_ELEM_ac_Smartcard(struct zx_ctx* c, struct zx_ac_Smartcard_s* x)
1209 {
1210 struct zx_elem_s* el = x->gg.kids;
1211 switch (el->g.tok) {
1212 case zx_ac_Extension_ELEM:
1213 if (!x->Extension)
1214 x->Extension = (struct zx_ac_Extension_s*)el;
1215 return 1;
1216
1217 default: return 0;
1218 }
1219 }
1220
1221
1222
1223
zx_DEC_ATTR_ac_SwitchAudit(struct zx_ctx * c,struct zx_ac_SwitchAudit_s * x)1224 int zx_DEC_ATTR_ac_SwitchAudit(struct zx_ctx* c, struct zx_ac_SwitchAudit_s* x)
1225 {
1226 switch (x->gg.attr->g.tok) {
1227
1228 default: return 0;
1229 }
1230 }
1231
zx_DEC_ELEM_ac_SwitchAudit(struct zx_ctx * c,struct zx_ac_SwitchAudit_s * x)1232 int zx_DEC_ELEM_ac_SwitchAudit(struct zx_ctx* c, struct zx_ac_SwitchAudit_s* x)
1233 {
1234 struct zx_elem_s* el = x->gg.kids;
1235 switch (el->g.tok) {
1236 case zx_ac_Extension_ELEM:
1237 if (!x->Extension)
1238 x->Extension = (struct zx_ac_Extension_s*)el;
1239 return 1;
1240
1241 default: return 0;
1242 }
1243 }
1244
1245
1246
1247
zx_DEC_ATTR_ac_TechnicalProtection(struct zx_ctx * c,struct zx_ac_TechnicalProtection_s * x)1248 int zx_DEC_ATTR_ac_TechnicalProtection(struct zx_ctx* c, struct zx_ac_TechnicalProtection_s* x)
1249 {
1250 switch (x->gg.attr->g.tok) {
1251
1252 default: return 0;
1253 }
1254 }
1255
zx_DEC_ELEM_ac_TechnicalProtection(struct zx_ctx * c,struct zx_ac_TechnicalProtection_s * x)1256 int zx_DEC_ELEM_ac_TechnicalProtection(struct zx_ctx* c, struct zx_ac_TechnicalProtection_s* x)
1257 {
1258 struct zx_elem_s* el = x->gg.kids;
1259 switch (el->g.tok) {
1260 case zx_ac_PrivateKeyProtection_ELEM:
1261 if (!x->PrivateKeyProtection)
1262 x->PrivateKeyProtection = (struct zx_ac_PrivateKeyProtection_s*)el;
1263 return 1;
1264 case zx_ac_SecretKeyProtection_ELEM:
1265 if (!x->SecretKeyProtection)
1266 x->SecretKeyProtection = (struct zx_ac_SecretKeyProtection_s*)el;
1267 return 1;
1268 case zx_ac_Extension_ELEM:
1269 if (!x->Extension)
1270 x->Extension = (struct zx_ac_Extension_s*)el;
1271 return 1;
1272
1273 default: return 0;
1274 }
1275 }
1276
1277
1278
1279
zx_DEC_ATTR_ac_TimeSyncToken(struct zx_ctx * c,struct zx_ac_TimeSyncToken_s * x)1280 int zx_DEC_ATTR_ac_TimeSyncToken(struct zx_ctx* c, struct zx_ac_TimeSyncToken_s* x)
1281 {
1282 switch (x->gg.attr->g.tok) {
1283 case zx_DeviceInHand_ATTR: x->DeviceInHand = x->gg.attr; return 1;
1284 case zx_DeviceType_ATTR: x->DeviceType = x->gg.attr; return 1;
1285 case zx_SeedLength_ATTR: x->SeedLength = x->gg.attr; return 1;
1286
1287 default: return 0;
1288 }
1289 }
1290
zx_DEC_ELEM_ac_TimeSyncToken(struct zx_ctx * c,struct zx_ac_TimeSyncToken_s * x)1291 int zx_DEC_ELEM_ac_TimeSyncToken(struct zx_ctx* c, struct zx_ac_TimeSyncToken_s* x)
1292 {
1293 struct zx_elem_s* el = x->gg.kids;
1294 switch (el->g.tok) {
1295
1296 default: return 0;
1297 }
1298 }
1299
1300
1301
1302
zx_DEC_ATTR_ac_Token(struct zx_ctx * c,struct zx_ac_Token_s * x)1303 int zx_DEC_ATTR_ac_Token(struct zx_ctx* c, struct zx_ac_Token_s* x)
1304 {
1305 switch (x->gg.attr->g.tok) {
1306
1307 default: return 0;
1308 }
1309 }
1310
zx_DEC_ELEM_ac_Token(struct zx_ctx * c,struct zx_ac_Token_s * x)1311 int zx_DEC_ELEM_ac_Token(struct zx_ctx* c, struct zx_ac_Token_s* x)
1312 {
1313 struct zx_elem_s* el = x->gg.kids;
1314 switch (el->g.tok) {
1315 case zx_ac_TimeSyncToken_ELEM:
1316 if (!x->TimeSyncToken)
1317 x->TimeSyncToken = (struct zx_ac_TimeSyncToken_s*)el;
1318 return 1;
1319 case zx_ac_Extension_ELEM:
1320 if (!x->Extension)
1321 x->Extension = (struct zx_ac_Extension_s*)el;
1322 return 1;
1323
1324 default: return 0;
1325 }
1326 }
1327
1328
1329
1330
zx_DEC_ATTR_ac_WTLS(struct zx_ctx * c,struct zx_ac_WTLS_s * x)1331 int zx_DEC_ATTR_ac_WTLS(struct zx_ctx* c, struct zx_ac_WTLS_s* x)
1332 {
1333 switch (x->gg.attr->g.tok) {
1334
1335 default: return 0;
1336 }
1337 }
1338
zx_DEC_ELEM_ac_WTLS(struct zx_ctx * c,struct zx_ac_WTLS_s * x)1339 int zx_DEC_ELEM_ac_WTLS(struct zx_ctx* c, struct zx_ac_WTLS_s* x)
1340 {
1341 struct zx_elem_s* el = x->gg.kids;
1342 switch (el->g.tok) {
1343 case zx_ac_Extension_ELEM:
1344 if (!x->Extension)
1345 x->Extension = (struct zx_ac_Extension_s*)el;
1346 return 1;
1347
1348 default: return 0;
1349 }
1350 }
1351
1352
1353
1354
zx_DEC_ATTR_ac_WrittenConsent(struct zx_ctx * c,struct zx_ac_WrittenConsent_s * x)1355 int zx_DEC_ATTR_ac_WrittenConsent(struct zx_ctx* c, struct zx_ac_WrittenConsent_s* x)
1356 {
1357 switch (x->gg.attr->g.tok) {
1358
1359 default: return 0;
1360 }
1361 }
1362
zx_DEC_ELEM_ac_WrittenConsent(struct zx_ctx * c,struct zx_ac_WrittenConsent_s * x)1363 int zx_DEC_ELEM_ac_WrittenConsent(struct zx_ctx* c, struct zx_ac_WrittenConsent_s* x)
1364 {
1365 struct zx_elem_s* el = x->gg.kids;
1366 switch (el->g.tok) {
1367 case zx_ac_Extension_ELEM:
1368 if (!x->Extension)
1369 x->Extension = (struct zx_ac_Extension_s*)el;
1370 return 1;
1371
1372 default: return 0;
1373 }
1374 }
1375
1376
1377
1378
zx_DEC_ATTR_ac_ZeroKnowledge(struct zx_ctx * c,struct zx_ac_ZeroKnowledge_s * x)1379 int zx_DEC_ATTR_ac_ZeroKnowledge(struct zx_ctx* c, struct zx_ac_ZeroKnowledge_s* x)
1380 {
1381 switch (x->gg.attr->g.tok) {
1382
1383 default: return 0;
1384 }
1385 }
1386
zx_DEC_ELEM_ac_ZeroKnowledge(struct zx_ctx * c,struct zx_ac_ZeroKnowledge_s * x)1387 int zx_DEC_ELEM_ac_ZeroKnowledge(struct zx_ctx* c, struct zx_ac_ZeroKnowledge_s* x)
1388 {
1389 struct zx_elem_s* el = x->gg.kids;
1390 switch (el->g.tok) {
1391 case zx_ac_Extension_ELEM:
1392 if (!x->Extension)
1393 x->Extension = (struct zx_ac_Extension_s*)el;
1394 return 1;
1395
1396 default: return 0;
1397 }
1398 }
1399
1400
1401 /* EOF -- c/zx-ac-dec.c */
1402