-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathpacket-x509sat.c
2922 lines (2487 loc) · 135 KB
/
packet-x509sat.c
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
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/* Do not modify this file. Changes will be overwritten. */
/* Generated automatically by the ASN.1 to Wireshark dissector compiler */
/* packet-x509sat.c */
/* asn2wrs.py -b -r Syntax -p x509sat -c ./x509sat.cnf -s ./packet-x509sat-template -D . -O ../.. SelectedAttributeTypes.asn */
/* Input file: packet-x509sat-template.c */
#line 1 "./asn1/x509sat/packet-x509sat-template.c"
/* packet-x509sat.c
* Routines for X.509 Selected Attribute Types packet dissection
* Ronnie Sahlberg 2004
*
* Wireshark - Network traffic analyzer
* By Gerald Combs <[email protected]>
* Copyright 1998 Gerald Combs
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#include "config.h"
#include <epan/packet.h>
#include <epan/oids.h>
#include <epan/asn1.h>
#include "packet-ber.h"
#include "packet-p1.h"
#include "packet-x509sat.h"
#include "packet-x509if.h"
#define PNAME "X.509 Selected Attribute Types"
#define PSNAME "X509SAT"
#define PFNAME "x509sat"
void proto_register_x509sat(void);
void proto_reg_handoff_x509sat(void);
/* Initialize the protocol and registered fields */
static int proto_x509sat = -1;
/*--- Included file: packet-x509sat-hf.c ---*/
#line 1 "./asn1/x509sat/packet-x509sat-hf.c"
static int hf_x509sat_DirectoryString_PDU = -1; /* DirectoryString */
static int hf_x509sat_UniqueIdentifier_PDU = -1; /* UniqueIdentifier */
static int hf_x509sat_CountryName_PDU = -1; /* CountryName */
static int hf_x509sat_Guide_PDU = -1; /* Guide */
static int hf_x509sat_EnhancedGuide_PDU = -1; /* EnhancedGuide */
static int hf_x509sat_PostalAddress_PDU = -1; /* PostalAddress */
static int hf_x509sat_TelephoneNumber_PDU = -1; /* TelephoneNumber */
static int hf_x509sat_TelexNumber_PDU = -1; /* TelexNumber */
static int hf_x509sat_FacsimileTelephoneNumber_PDU = -1; /* FacsimileTelephoneNumber */
static int hf_x509sat_X121Address_PDU = -1; /* X121Address */
static int hf_x509sat_InternationalISDNNumber_PDU = -1; /* InternationalISDNNumber */
static int hf_x509sat_DestinationIndicator_PDU = -1; /* DestinationIndicator */
static int hf_x509sat_PreferredDeliveryMethod_PDU = -1; /* PreferredDeliveryMethod */
static int hf_x509sat_PresentationAddress_PDU = -1; /* PresentationAddress */
static int hf_x509sat_ProtocolInformation_PDU = -1; /* ProtocolInformation */
static int hf_x509sat_NameAndOptionalUID_PDU = -1; /* NameAndOptionalUID */
static int hf_x509sat_CaseIgnoreListMatch_PDU = -1; /* CaseIgnoreListMatch */
static int hf_x509sat_ObjectIdentifier_PDU = -1; /* ObjectIdentifier */
static int hf_x509sat_OctetString_PDU = -1; /* OctetString */
static int hf_x509sat_BitString_PDU = -1; /* BitString */
static int hf_x509sat_Integer_PDU = -1; /* Integer */
static int hf_x509sat_Boolean_PDU = -1; /* Boolean */
static int hf_x509sat_SyntaxGeneralizedTime_PDU = -1; /* SyntaxGeneralizedTime */
static int hf_x509sat_SyntaxUTCTime_PDU = -1; /* SyntaxUTCTime */
static int hf_x509sat_SyntaxNumericString_PDU = -1; /* SyntaxNumericString */
static int hf_x509sat_SyntaxPrintableString_PDU = -1; /* SyntaxPrintableString */
static int hf_x509sat_SyntaxIA5String_PDU = -1; /* SyntaxIA5String */
static int hf_x509sat_SyntaxBMPString_PDU = -1; /* SyntaxBMPString */
static int hf_x509sat_SyntaxUniversalString_PDU = -1; /* SyntaxUniversalString */
static int hf_x509sat_SyntaxUTF8String_PDU = -1; /* SyntaxUTF8String */
static int hf_x509sat_SyntaxTeletexString_PDU = -1; /* SyntaxTeletexString */
static int hf_x509sat_SyntaxT61String_PDU = -1; /* SyntaxT61String */
static int hf_x509sat_SyntaxVideotexString_PDU = -1; /* SyntaxVideotexString */
static int hf_x509sat_SyntaxGraphicString_PDU = -1; /* SyntaxGraphicString */
static int hf_x509sat_SyntaxISO646String_PDU = -1; /* SyntaxISO646String */
static int hf_x509sat_SyntaxVisibleString_PDU = -1; /* SyntaxVisibleString */
static int hf_x509sat_SyntaxGeneralString_PDU = -1; /* SyntaxGeneralString */
static int hf_x509sat_GUID_PDU = -1; /* GUID */
static int hf_x509sat_teletexString = -1; /* TeletexString */
static int hf_x509sat_printableString = -1; /* PrintableString */
static int hf_x509sat_universalString = -1; /* UniversalString */
static int hf_x509sat_bmpString = -1; /* BMPString */
static int hf_x509sat_uTF8String = -1; /* UTF8String */
static int hf_x509sat_objectClass = -1; /* OBJECT_IDENTIFIER */
static int hf_x509sat_criteria = -1; /* Criteria */
static int hf_x509sat_type = -1; /* CriteriaItem */
static int hf_x509sat_and = -1; /* SET_OF_Criteria */
static int hf_x509sat_and_item = -1; /* Criteria */
static int hf_x509sat_or = -1; /* SET_OF_Criteria */
static int hf_x509sat_or_item = -1; /* Criteria */
static int hf_x509sat_not = -1; /* Criteria */
static int hf_x509sat_equality = -1; /* AttributeType */
static int hf_x509sat_substrings = -1; /* AttributeType */
static int hf_x509sat_greaterOrEqual = -1; /* AttributeType */
static int hf_x509sat_lessOrEqual = -1; /* AttributeType */
static int hf_x509sat_approximateMatch = -1; /* AttributeType */
static int hf_x509sat_subset = -1; /* T_subset */
static int hf_x509sat_PostalAddress_item = -1; /* DirectoryString */
static int hf_x509sat_telexNumber = -1; /* PrintableString */
static int hf_x509sat_countryCode = -1; /* PrintableString */
static int hf_x509sat_answerback = -1; /* PrintableString */
static int hf_x509sat_telephoneNumber = -1; /* TelephoneNumber */
static int hf_x509sat_parameters = -1; /* G3FacsimileNonBasicParameters */
static int hf_x509sat_PreferredDeliveryMethod_item = -1; /* PreferredDeliveryMethod_item */
static int hf_x509sat_pSelector = -1; /* OCTET_STRING */
static int hf_x509sat_sSelector = -1; /* OCTET_STRING */
static int hf_x509sat_tSelector = -1; /* OCTET_STRING */
static int hf_x509sat_nAddresses = -1; /* T_nAddresses */
static int hf_x509sat_nAddresses_item = -1; /* OCTET_STRING */
static int hf_x509sat_nAddress = -1; /* OCTET_STRING */
static int hf_x509sat_profiles = -1; /* T_profiles */
static int hf_x509sat_profiles_item = -1; /* OBJECT_IDENTIFIER */
static int hf_x509sat_dn = -1; /* DistinguishedName */
static int hf_x509sat_uid = -1; /* UniqueIdentifier */
static int hf_x509sat_matchingRuleUsed = -1; /* OBJECT_IDENTIFIER */
static int hf_x509sat_attributeList = -1; /* SEQUENCE_OF_AttributeValueAssertion */
static int hf_x509sat_attributeList_item = -1; /* AttributeValueAssertion */
static int hf_x509sat_SubstringAssertion_item = -1; /* SubstringAssertion_item */
static int hf_x509sat_initial = -1; /* DirectoryString */
static int hf_x509sat_any = -1; /* DirectoryString */
static int hf_x509sat_final = -1; /* DirectoryString */
static int hf_x509sat_control = -1; /* Attribute */
static int hf_x509sat_CaseIgnoreListMatch_item = -1; /* DirectoryString */
static int hf_x509sat_OctetSubstringAssertion_item = -1; /* OctetSubstringAssertion_item */
static int hf_x509sat_initial_substring = -1; /* OCTET_STRING */
static int hf_x509sat_any_substring = -1; /* OCTET_STRING */
static int hf_x509sat_finall_substring = -1; /* OCTET_STRING */
static int hf_x509sat_ZonalSelect_item = -1; /* AttributeType */
static int hf_x509sat_time = -1; /* T_time */
static int hf_x509sat_absolute = -1; /* T_absolute */
static int hf_x509sat_startTime = -1; /* GeneralizedTime */
static int hf_x509sat_endTime = -1; /* GeneralizedTime */
static int hf_x509sat_periodic = -1; /* SET_OF_Period */
static int hf_x509sat_periodic_item = -1; /* Period */
static int hf_x509sat_notThisTime = -1; /* BOOLEAN */
static int hf_x509sat_timeZone = -1; /* TimeZone */
static int hf_x509sat_timesOfDay = -1; /* SET_OF_DayTimeBand */
static int hf_x509sat_timesOfDay_item = -1; /* DayTimeBand */
static int hf_x509sat_days = -1; /* T_days */
static int hf_x509sat_intDay = -1; /* T_intDay */
static int hf_x509sat_intDay_item = -1; /* INTEGER */
static int hf_x509sat_bitDay = -1; /* T_bitDay */
static int hf_x509sat_dayOf = -1; /* XDayOf */
static int hf_x509sat_weeks = -1; /* T_weeks */
static int hf_x509sat_allWeeks = -1; /* NULL */
static int hf_x509sat_intWeek = -1; /* T_intWeek */
static int hf_x509sat_intWeek_item = -1; /* INTEGER */
static int hf_x509sat_bitWeek = -1; /* T_bitWeek */
static int hf_x509sat_months = -1; /* T_months */
static int hf_x509sat_allMonths = -1; /* NULL */
static int hf_x509sat_intMonth = -1; /* T_intMonth */
static int hf_x509sat_intMonth_item = -1; /* INTEGER */
static int hf_x509sat_bitMonth = -1; /* T_bitMonth */
static int hf_x509sat_years = -1; /* T_years */
static int hf_x509sat_years_item = -1; /* INTEGER */
static int hf_x509sat_first_dayof = -1; /* NamedDay */
static int hf_x509sat_second_dayof = -1; /* NamedDay */
static int hf_x509sat_third_dayof = -1; /* NamedDay */
static int hf_x509sat_fourth_dayof = -1; /* NamedDay */
static int hf_x509sat_fifth_dayof = -1; /* NamedDay */
static int hf_x509sat_intNamedDays = -1; /* T_intNamedDays */
static int hf_x509sat_bitNamedDays = -1; /* T_bitNamedDays */
static int hf_x509sat_startDayTime = -1; /* DayTime */
static int hf_x509sat_endDayTime = -1; /* DayTime */
static int hf_x509sat_hour = -1; /* INTEGER */
static int hf_x509sat_minute = -1; /* INTEGER */
static int hf_x509sat_second = -1; /* INTEGER */
static int hf_x509sat_now = -1; /* NULL */
static int hf_x509sat_at = -1; /* GeneralizedTime */
static int hf_x509sat_between = -1; /* T_between */
static int hf_x509sat_entirely = -1; /* BOOLEAN */
static int hf_x509sat_localeID1 = -1; /* OBJECT_IDENTIFIER */
static int hf_x509sat_localeID2 = -1; /* DirectoryString */
/* named bits */
static int hf_x509sat_T_bitDay_sunday = -1;
static int hf_x509sat_T_bitDay_monday = -1;
static int hf_x509sat_T_bitDay_tuesday = -1;
static int hf_x509sat_T_bitDay_wednesday = -1;
static int hf_x509sat_T_bitDay_thursday = -1;
static int hf_x509sat_T_bitDay_friday = -1;
static int hf_x509sat_T_bitDay_saturday = -1;
static int hf_x509sat_T_bitWeek_week1 = -1;
static int hf_x509sat_T_bitWeek_week2 = -1;
static int hf_x509sat_T_bitWeek_week3 = -1;
static int hf_x509sat_T_bitWeek_week4 = -1;
static int hf_x509sat_T_bitWeek_week5 = -1;
static int hf_x509sat_T_bitMonth_january = -1;
static int hf_x509sat_T_bitMonth_february = -1;
static int hf_x509sat_T_bitMonth_march = -1;
static int hf_x509sat_T_bitMonth_april = -1;
static int hf_x509sat_T_bitMonth_may = -1;
static int hf_x509sat_T_bitMonth_june = -1;
static int hf_x509sat_T_bitMonth_july = -1;
static int hf_x509sat_T_bitMonth_august = -1;
static int hf_x509sat_T_bitMonth_september = -1;
static int hf_x509sat_T_bitMonth_october = -1;
static int hf_x509sat_T_bitMonth_november = -1;
static int hf_x509sat_T_bitMonth_december = -1;
static int hf_x509sat_T_bitNamedDays_sunday = -1;
static int hf_x509sat_T_bitNamedDays_monday = -1;
static int hf_x509sat_T_bitNamedDays_tuesday = -1;
static int hf_x509sat_T_bitNamedDays_wednesday = -1;
static int hf_x509sat_T_bitNamedDays_thursday = -1;
static int hf_x509sat_T_bitNamedDays_friday = -1;
static int hf_x509sat_T_bitNamedDays_saturday = -1;
/*--- End of included file: packet-x509sat-hf.c ---*/
#line 33 "./asn1/x509sat/packet-x509sat-template.c"
/* Initialize the subtree pointers */
/*--- Included file: packet-x509sat-ett.c ---*/
#line 1 "./asn1/x509sat/packet-x509sat-ett.c"
static gint ett_x509sat_DirectoryString = -1;
static gint ett_x509sat_Guide = -1;
static gint ett_x509sat_Criteria = -1;
static gint ett_x509sat_SET_OF_Criteria = -1;
static gint ett_x509sat_CriteriaItem = -1;
static gint ett_x509sat_EnhancedGuide = -1;
static gint ett_x509sat_PostalAddress = -1;
static gint ett_x509sat_TelexNumber = -1;
static gint ett_x509sat_FacsimileTelephoneNumber = -1;
static gint ett_x509sat_PreferredDeliveryMethod = -1;
static gint ett_x509sat_PresentationAddress = -1;
static gint ett_x509sat_T_nAddresses = -1;
static gint ett_x509sat_ProtocolInformation = -1;
static gint ett_x509sat_T_profiles = -1;
static gint ett_x509sat_NameAndOptionalUID = -1;
static gint ett_x509sat_MultipleMatchingLocalities = -1;
static gint ett_x509sat_SEQUENCE_OF_AttributeValueAssertion = -1;
static gint ett_x509sat_SubstringAssertion = -1;
static gint ett_x509sat_SubstringAssertion_item = -1;
static gint ett_x509sat_CaseIgnoreListMatch = -1;
static gint ett_x509sat_OctetSubstringAssertion = -1;
static gint ett_x509sat_OctetSubstringAssertion_item = -1;
static gint ett_x509sat_ZonalSelect = -1;
static gint ett_x509sat_TimeSpecification = -1;
static gint ett_x509sat_T_time = -1;
static gint ett_x509sat_T_absolute = -1;
static gint ett_x509sat_SET_OF_Period = -1;
static gint ett_x509sat_Period = -1;
static gint ett_x509sat_SET_OF_DayTimeBand = -1;
static gint ett_x509sat_T_days = -1;
static gint ett_x509sat_T_intDay = -1;
static gint ett_x509sat_T_bitDay = -1;
static gint ett_x509sat_T_weeks = -1;
static gint ett_x509sat_T_intWeek = -1;
static gint ett_x509sat_T_bitWeek = -1;
static gint ett_x509sat_T_months = -1;
static gint ett_x509sat_T_intMonth = -1;
static gint ett_x509sat_T_bitMonth = -1;
static gint ett_x509sat_T_years = -1;
static gint ett_x509sat_XDayOf = -1;
static gint ett_x509sat_NamedDay = -1;
static gint ett_x509sat_T_bitNamedDays = -1;
static gint ett_x509sat_DayTimeBand = -1;
static gint ett_x509sat_DayTime = -1;
static gint ett_x509sat_TimeAssertion = -1;
static gint ett_x509sat_T_between = -1;
static gint ett_x509sat_LocaleContextSyntax = -1;
/*--- End of included file: packet-x509sat-ett.c ---*/
#line 36 "./asn1/x509sat/packet-x509sat-template.c"
/*--- Included file: packet-x509sat-fn.c ---*/
#line 1 "./asn1/x509sat/packet-x509sat-fn.c"
/*--- Cyclic dependencies ---*/
/* Criteria -> Criteria/and -> Criteria */
/* Criteria -> Criteria */
/*int dissect_x509sat_Criteria(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_);*/
static int
dissect_x509sat_TeletexString(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
offset = dissect_ber_restricted_string(implicit_tag, BER_UNI_TAG_TeletexString,
actx, tree, tvb, offset, hf_index,
NULL);
return offset;
}
static int
dissect_x509sat_PrintableString(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
offset = dissect_ber_restricted_string(implicit_tag, BER_UNI_TAG_PrintableString,
actx, tree, tvb, offset, hf_index,
NULL);
return offset;
}
static int
dissect_x509sat_UniversalString(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
offset = dissect_ber_restricted_string(implicit_tag, BER_UNI_TAG_UniversalString,
actx, tree, tvb, offset, hf_index,
NULL);
return offset;
}
static int
dissect_x509sat_BMPString(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
offset = dissect_ber_restricted_string(implicit_tag, BER_UNI_TAG_BMPString,
actx, tree, tvb, offset, hf_index,
NULL);
return offset;
}
static int
dissect_x509sat_UTF8String(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
offset = dissect_ber_restricted_string(implicit_tag, BER_UNI_TAG_UTF8String,
actx, tree, tvb, offset, hf_index,
NULL);
return offset;
}
const value_string x509sat_DirectoryString_vals[] = {
{ 0, "teletexString" },
{ 1, "printableString" },
{ 2, "universalString" },
{ 3, "bmpString" },
{ 4, "uTF8String" },
{ 0, NULL }
};
static const ber_choice_t DirectoryString_choice[] = {
{ 0, &hf_x509sat_teletexString, BER_CLASS_UNI, BER_UNI_TAG_TeletexString, BER_FLAGS_NOOWNTAG, dissect_x509sat_TeletexString },
{ 1, &hf_x509sat_printableString, BER_CLASS_UNI, BER_UNI_TAG_PrintableString, BER_FLAGS_NOOWNTAG, dissect_x509sat_PrintableString },
{ 2, &hf_x509sat_universalString, BER_CLASS_UNI, BER_UNI_TAG_UniversalString, BER_FLAGS_NOOWNTAG, dissect_x509sat_UniversalString },
{ 3, &hf_x509sat_bmpString , BER_CLASS_UNI, BER_UNI_TAG_BMPString, BER_FLAGS_NOOWNTAG, dissect_x509sat_BMPString },
{ 4, &hf_x509sat_uTF8String , BER_CLASS_UNI, BER_UNI_TAG_UTF8String, BER_FLAGS_NOOWNTAG, dissect_x509sat_UTF8String },
{ 0, NULL, 0, 0, 0, NULL }
};
int
dissect_x509sat_DirectoryString(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
offset = dissect_ber_choice(actx, tree, tvb, offset,
DirectoryString_choice, hf_index, ett_x509sat_DirectoryString,
NULL);
return offset;
}
int
dissect_x509sat_UniqueIdentifier(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
offset = dissect_ber_bitstring(implicit_tag, actx, tree, tvb, offset,
NULL, 0, hf_index, -1,
NULL);
return offset;
}
int
dissect_x509sat_CountryName(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
offset = dissect_ber_restricted_string(implicit_tag, BER_UNI_TAG_BMPString,
actx, tree, tvb, offset, hf_index,
NULL);
return offset;
}
static int
dissect_x509sat_OBJECT_IDENTIFIER(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
offset = dissect_ber_object_identifier(implicit_tag, actx, tree, tvb, offset, hf_index, NULL);
return offset;
}
static const value_string x509sat_CriteriaItem_vals[] = {
{ 0, "equality" },
{ 1, "substrings" },
{ 2, "greaterOrEqual" },
{ 3, "lessOrEqual" },
{ 4, "approximateMatch" },
{ 0, NULL }
};
static const ber_choice_t CriteriaItem_choice[] = {
{ 0, &hf_x509sat_equality , BER_CLASS_CON, 0, 0, dissect_x509if_AttributeType },
{ 1, &hf_x509sat_substrings , BER_CLASS_CON, 1, 0, dissect_x509if_AttributeType },
{ 2, &hf_x509sat_greaterOrEqual, BER_CLASS_CON, 2, 0, dissect_x509if_AttributeType },
{ 3, &hf_x509sat_lessOrEqual , BER_CLASS_CON, 3, 0, dissect_x509if_AttributeType },
{ 4, &hf_x509sat_approximateMatch, BER_CLASS_CON, 4, 0, dissect_x509if_AttributeType },
{ 0, NULL, 0, 0, 0, NULL }
};
static int
dissect_x509sat_CriteriaItem(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
offset = dissect_ber_choice(actx, tree, tvb, offset,
CriteriaItem_choice, hf_index, ett_x509sat_CriteriaItem,
NULL);
return offset;
}
static const ber_sequence_t SET_OF_Criteria_set_of[1] = {
{ &hf_x509sat_and_item , BER_CLASS_ANY/*choice*/, -1/*choice*/, BER_FLAGS_NOOWNTAG|BER_FLAGS_NOTCHKTAG, dissect_x509sat_Criteria },
};
static int
dissect_x509sat_SET_OF_Criteria(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
offset = dissect_ber_set_of(implicit_tag, actx, tree, tvb, offset,
SET_OF_Criteria_set_of, hf_index, ett_x509sat_SET_OF_Criteria);
return offset;
}
const value_string x509sat_Criteria_vals[] = {
{ 0, "type" },
{ 1, "and" },
{ 2, "or" },
{ 3, "not" },
{ 0, NULL }
};
static const ber_choice_t Criteria_choice[] = {
{ 0, &hf_x509sat_type , BER_CLASS_CON, 0, 0, dissect_x509sat_CriteriaItem },
{ 1, &hf_x509sat_and , BER_CLASS_CON, 1, 0, dissect_x509sat_SET_OF_Criteria },
{ 2, &hf_x509sat_or , BER_CLASS_CON, 2, 0, dissect_x509sat_SET_OF_Criteria },
{ 3, &hf_x509sat_not , BER_CLASS_CON, 3, 0, dissect_x509sat_Criteria },
{ 0, NULL, 0, 0, 0, NULL }
};
int
dissect_x509sat_Criteria(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
offset = dissect_ber_choice(actx, tree, tvb, offset,
Criteria_choice, hf_index, ett_x509sat_Criteria,
NULL);
return offset;
}
static const ber_sequence_t Guide_set[] = {
{ &hf_x509sat_objectClass , BER_CLASS_CON, 0, BER_FLAGS_OPTIONAL, dissect_x509sat_OBJECT_IDENTIFIER },
{ &hf_x509sat_criteria , BER_CLASS_CON, 1, BER_FLAGS_NOTCHKTAG, dissect_x509sat_Criteria },
{ NULL, 0, 0, 0, NULL }
};
static int
dissect_x509sat_Guide(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
offset = dissect_ber_set(implicit_tag, actx, tree, tvb, offset,
Guide_set, hf_index, ett_x509sat_Guide);
return offset;
}
static const value_string x509sat_T_subset_vals[] = {
{ 0, "baseObject" },
{ 1, "oneLevel" },
{ 2, "wholeSubtree" },
{ 0, NULL }
};
static int
dissect_x509sat_T_subset(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
offset = dissect_ber_integer(implicit_tag, actx, tree, tvb, offset, hf_index,
NULL);
return offset;
}
static const ber_sequence_t EnhancedGuide_sequence[] = {
{ &hf_x509sat_objectClass , BER_CLASS_CON, 0, 0, dissect_x509sat_OBJECT_IDENTIFIER },
{ &hf_x509sat_criteria , BER_CLASS_CON, 1, BER_FLAGS_NOTCHKTAG, dissect_x509sat_Criteria },
{ &hf_x509sat_subset , BER_CLASS_CON, 2, BER_FLAGS_OPTIONAL, dissect_x509sat_T_subset },
{ NULL, 0, 0, 0, NULL }
};
int
dissect_x509sat_EnhancedGuide(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset,
EnhancedGuide_sequence, hf_index, ett_x509sat_EnhancedGuide);
return offset;
}
static const ber_sequence_t PostalAddress_sequence_of[1] = {
{ &hf_x509sat_PostalAddress_item, BER_CLASS_ANY/*choice*/, -1/*choice*/, BER_FLAGS_NOOWNTAG|BER_FLAGS_NOTCHKTAG, dissect_x509sat_DirectoryString },
};
int
dissect_x509sat_PostalAddress(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
offset = dissect_ber_sequence_of(implicit_tag, actx, tree, tvb, offset,
PostalAddress_sequence_of, hf_index, ett_x509sat_PostalAddress);
return offset;
}
static int
dissect_x509sat_TelephoneNumber(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
offset = dissect_ber_restricted_string(implicit_tag, BER_UNI_TAG_PrintableString,
actx, tree, tvb, offset, hf_index,
NULL);
return offset;
}
static const ber_sequence_t TelexNumber_sequence[] = {
{ &hf_x509sat_telexNumber , BER_CLASS_UNI, BER_UNI_TAG_PrintableString, BER_FLAGS_NOOWNTAG, dissect_x509sat_PrintableString },
{ &hf_x509sat_countryCode , BER_CLASS_UNI, BER_UNI_TAG_PrintableString, BER_FLAGS_NOOWNTAG, dissect_x509sat_PrintableString },
{ &hf_x509sat_answerback , BER_CLASS_UNI, BER_UNI_TAG_PrintableString, BER_FLAGS_NOOWNTAG, dissect_x509sat_PrintableString },
{ NULL, 0, 0, 0, NULL }
};
static int
dissect_x509sat_TelexNumber(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset,
TelexNumber_sequence, hf_index, ett_x509sat_TelexNumber);
return offset;
}
static const ber_sequence_t FacsimileTelephoneNumber_sequence[] = {
{ &hf_x509sat_telephoneNumber, BER_CLASS_UNI, BER_UNI_TAG_PrintableString, BER_FLAGS_NOOWNTAG, dissect_x509sat_TelephoneNumber },
{ &hf_x509sat_parameters , BER_CLASS_UNI, BER_UNI_TAG_BITSTRING, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_p1_G3FacsimileNonBasicParameters },
{ NULL, 0, 0, 0, NULL }
};
int
dissect_x509sat_FacsimileTelephoneNumber(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset,
FacsimileTelephoneNumber_sequence, hf_index, ett_x509sat_FacsimileTelephoneNumber);
return offset;
}
int
dissect_x509sat_X121Address(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
offset = dissect_ber_restricted_string(implicit_tag, BER_UNI_TAG_NumericString,
actx, tree, tvb, offset, hf_index,
NULL);
return offset;
}
int
dissect_x509sat_InternationalISDNNumber(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
offset = dissect_ber_restricted_string(implicit_tag, BER_UNI_TAG_NumericString,
actx, tree, tvb, offset, hf_index,
NULL);
return offset;
}
int
dissect_x509sat_DestinationIndicator(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
offset = dissect_ber_restricted_string(implicit_tag, BER_UNI_TAG_PrintableString,
actx, tree, tvb, offset, hf_index,
NULL);
return offset;
}
static const value_string x509sat_PreferredDeliveryMethod_item_vals[] = {
{ 0, "any-delivery-method" },
{ 1, "mhs-delivery" },
{ 2, "physical-delivery" },
{ 3, "telex-delivery" },
{ 4, "teletex-delivery" },
{ 5, "g3-facsimile-delivery" },
{ 6, "g4-facsimile-delivery" },
{ 7, "ia5-terminal-delivery" },
{ 8, "videotex-delivery" },
{ 9, "telephone-delivery" },
{ 0, NULL }
};
static int
dissect_x509sat_PreferredDeliveryMethod_item(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
offset = dissect_ber_integer(implicit_tag, actx, tree, tvb, offset, hf_index,
NULL);
return offset;
}
static const ber_sequence_t PreferredDeliveryMethod_sequence_of[1] = {
{ &hf_x509sat_PreferredDeliveryMethod_item, BER_CLASS_UNI, BER_UNI_TAG_INTEGER, BER_FLAGS_NOOWNTAG, dissect_x509sat_PreferredDeliveryMethod_item },
};
int
dissect_x509sat_PreferredDeliveryMethod(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
offset = dissect_ber_sequence_of(implicit_tag, actx, tree, tvb, offset,
PreferredDeliveryMethod_sequence_of, hf_index, ett_x509sat_PreferredDeliveryMethod);
return offset;
}
static int
dissect_x509sat_OCTET_STRING(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
offset = dissect_ber_octet_string(implicit_tag, actx, tree, tvb, offset, hf_index,
NULL);
return offset;
}
static const ber_sequence_t T_nAddresses_set_of[1] = {
{ &hf_x509sat_nAddresses_item, BER_CLASS_UNI, BER_UNI_TAG_OCTETSTRING, BER_FLAGS_NOOWNTAG, dissect_x509sat_OCTET_STRING },
};
static int
dissect_x509sat_T_nAddresses(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
offset = dissect_ber_set_of(implicit_tag, actx, tree, tvb, offset,
T_nAddresses_set_of, hf_index, ett_x509sat_T_nAddresses);
return offset;
}
static const ber_sequence_t PresentationAddress_sequence[] = {
{ &hf_x509sat_pSelector , BER_CLASS_CON, 0, BER_FLAGS_OPTIONAL, dissect_x509sat_OCTET_STRING },
{ &hf_x509sat_sSelector , BER_CLASS_CON, 1, BER_FLAGS_OPTIONAL, dissect_x509sat_OCTET_STRING },
{ &hf_x509sat_tSelector , BER_CLASS_CON, 2, BER_FLAGS_OPTIONAL, dissect_x509sat_OCTET_STRING },
{ &hf_x509sat_nAddresses , BER_CLASS_CON, 3, 0, dissect_x509sat_T_nAddresses },
{ NULL, 0, 0, 0, NULL }
};
int
dissect_x509sat_PresentationAddress(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset,
PresentationAddress_sequence, hf_index, ett_x509sat_PresentationAddress);
return offset;
}
static const ber_sequence_t T_profiles_set_of[1] = {
{ &hf_x509sat_profiles_item, BER_CLASS_UNI, BER_UNI_TAG_OID, BER_FLAGS_NOOWNTAG, dissect_x509sat_OBJECT_IDENTIFIER },
};
static int
dissect_x509sat_T_profiles(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
offset = dissect_ber_set_of(implicit_tag, actx, tree, tvb, offset,
T_profiles_set_of, hf_index, ett_x509sat_T_profiles);
return offset;
}
static const ber_sequence_t ProtocolInformation_sequence[] = {
{ &hf_x509sat_nAddress , BER_CLASS_UNI, BER_UNI_TAG_OCTETSTRING, BER_FLAGS_NOOWNTAG, dissect_x509sat_OCTET_STRING },
{ &hf_x509sat_profiles , BER_CLASS_UNI, BER_UNI_TAG_SET, BER_FLAGS_NOOWNTAG, dissect_x509sat_T_profiles },
{ NULL, 0, 0, 0, NULL }
};
int
dissect_x509sat_ProtocolInformation(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset,
ProtocolInformation_sequence, hf_index, ett_x509sat_ProtocolInformation);
return offset;
}
static const ber_sequence_t NameAndOptionalUID_sequence[] = {
{ &hf_x509sat_dn , BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_x509if_DistinguishedName },
{ &hf_x509sat_uid , BER_CLASS_UNI, BER_UNI_TAG_BITSTRING, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_x509sat_UniqueIdentifier },
{ NULL, 0, 0, 0, NULL }
};
int
dissect_x509sat_NameAndOptionalUID(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset,
NameAndOptionalUID_sequence, hf_index, ett_x509sat_NameAndOptionalUID);
return offset;
}
static const ber_sequence_t SEQUENCE_OF_AttributeValueAssertion_sequence_of[1] = {
{ &hf_x509sat_attributeList_item, BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_x509if_AttributeValueAssertion },
};
static int
dissect_x509sat_SEQUENCE_OF_AttributeValueAssertion(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
offset = dissect_ber_sequence_of(implicit_tag, actx, tree, tvb, offset,
SEQUENCE_OF_AttributeValueAssertion_sequence_of, hf_index, ett_x509sat_SEQUENCE_OF_AttributeValueAssertion);
return offset;
}
static const ber_sequence_t MultipleMatchingLocalities_sequence[] = {
{ &hf_x509sat_matchingRuleUsed, BER_CLASS_UNI, BER_UNI_TAG_OID, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_x509sat_OBJECT_IDENTIFIER },
{ &hf_x509sat_attributeList, BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_x509sat_SEQUENCE_OF_AttributeValueAssertion },
{ NULL, 0, 0, 0, NULL }
};
int
dissect_x509sat_MultipleMatchingLocalities(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset,
MultipleMatchingLocalities_sequence, hf_index, ett_x509sat_MultipleMatchingLocalities);
return offset;
}
static const value_string x509sat_SubstringAssertion_item_vals[] = {
{ 0, "initial" },
{ 1, "any" },
{ 2, "final" },
{ 3, "control" },
{ 0, NULL }
};
static const ber_choice_t SubstringAssertion_item_choice[] = {
{ 0, &hf_x509sat_initial , BER_CLASS_CON, 0, 0, dissect_x509sat_DirectoryString },
{ 1, &hf_x509sat_any , BER_CLASS_CON, 1, 0, dissect_x509sat_DirectoryString },
{ 2, &hf_x509sat_final , BER_CLASS_CON, 2, 0, dissect_x509sat_DirectoryString },
{ 3, &hf_x509sat_control , BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_x509if_Attribute },
{ 0, NULL, 0, 0, 0, NULL }
};
static int
dissect_x509sat_SubstringAssertion_item(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
offset = dissect_ber_choice(actx, tree, tvb, offset,
SubstringAssertion_item_choice, hf_index, ett_x509sat_SubstringAssertion_item,
NULL);
return offset;
}
static const ber_sequence_t SubstringAssertion_sequence_of[1] = {
{ &hf_x509sat_SubstringAssertion_item, BER_CLASS_ANY/*choice*/, -1/*choice*/, BER_FLAGS_NOOWNTAG|BER_FLAGS_NOTCHKTAG, dissect_x509sat_SubstringAssertion_item },
};
int
dissect_x509sat_SubstringAssertion(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
offset = dissect_ber_sequence_of(implicit_tag, actx, tree, tvb, offset,
SubstringAssertion_sequence_of, hf_index, ett_x509sat_SubstringAssertion);
return offset;
}
static const ber_sequence_t CaseIgnoreListMatch_sequence_of[1] = {
{ &hf_x509sat_CaseIgnoreListMatch_item, BER_CLASS_ANY/*choice*/, -1/*choice*/, BER_FLAGS_NOOWNTAG|BER_FLAGS_NOTCHKTAG, dissect_x509sat_DirectoryString },
};
int
dissect_x509sat_CaseIgnoreListMatch(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
offset = dissect_ber_sequence_of(implicit_tag, actx, tree, tvb, offset,
CaseIgnoreListMatch_sequence_of, hf_index, ett_x509sat_CaseIgnoreListMatch);
return offset;
}
static const value_string x509sat_OctetSubstringAssertion_item_vals[] = {
{ 0, "initial" },
{ 1, "any" },
{ 2, "final" },
{ 0, NULL }
};
static const ber_choice_t OctetSubstringAssertion_item_choice[] = {
{ 0, &hf_x509sat_initial_substring, BER_CLASS_CON, 0, 0, dissect_x509sat_OCTET_STRING },
{ 1, &hf_x509sat_any_substring, BER_CLASS_CON, 1, 0, dissect_x509sat_OCTET_STRING },
{ 2, &hf_x509sat_finall_substring, BER_CLASS_CON, 2, 0, dissect_x509sat_OCTET_STRING },
{ 0, NULL, 0, 0, 0, NULL }
};
static int
dissect_x509sat_OctetSubstringAssertion_item(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
offset = dissect_ber_choice(actx, tree, tvb, offset,
OctetSubstringAssertion_item_choice, hf_index, ett_x509sat_OctetSubstringAssertion_item,
NULL);
return offset;
}
static const ber_sequence_t OctetSubstringAssertion_sequence_of[1] = {
{ &hf_x509sat_OctetSubstringAssertion_item, BER_CLASS_ANY/*choice*/, -1/*choice*/, BER_FLAGS_NOOWNTAG|BER_FLAGS_NOTCHKTAG, dissect_x509sat_OctetSubstringAssertion_item },
};
int
dissect_x509sat_OctetSubstringAssertion(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
offset = dissect_ber_sequence_of(implicit_tag, actx, tree, tvb, offset,
OctetSubstringAssertion_sequence_of, hf_index, ett_x509sat_OctetSubstringAssertion);
return offset;
}
static const ber_sequence_t ZonalSelect_sequence_of[1] = {
{ &hf_x509sat_ZonalSelect_item, BER_CLASS_UNI, BER_UNI_TAG_OID, BER_FLAGS_NOOWNTAG, dissect_x509if_AttributeType },
};
int
dissect_x509sat_ZonalSelect(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
offset = dissect_ber_sequence_of(implicit_tag, actx, tree, tvb, offset,
ZonalSelect_sequence_of, hf_index, ett_x509sat_ZonalSelect);
return offset;
}
const value_string x509sat_ZonalResult_vals[] = {
{ 0, "cannot-select-mapping" },
{ 2, "zero-mappings" },
{ 3, "multiple-mappings" },
{ 0, NULL }
};
int
dissect_x509sat_ZonalResult(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
offset = dissect_ber_integer(implicit_tag, actx, tree, tvb, offset, hf_index,
NULL);
return offset;
}
int
dissect_x509sat_LanguageContextSyntax(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
offset = dissect_ber_restricted_string(implicit_tag, BER_UNI_TAG_PrintableString,
actx, tree, tvb, offset, hf_index,
NULL);
return offset;
}
static int
dissect_x509sat_GeneralizedTime(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
offset = dissect_ber_GeneralizedTime(implicit_tag, actx, tree, tvb, offset, hf_index);
return offset;
}
static const ber_sequence_t T_absolute_sequence[] = {
{ &hf_x509sat_startTime , BER_CLASS_CON, 0, BER_FLAGS_OPTIONAL, dissect_x509sat_GeneralizedTime },
{ &hf_x509sat_endTime , BER_CLASS_CON, 1, BER_FLAGS_OPTIONAL, dissect_x509sat_GeneralizedTime },
{ NULL, 0, 0, 0, NULL }
};
static int
dissect_x509sat_T_absolute(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset,
T_absolute_sequence, hf_index, ett_x509sat_T_absolute);
return offset;
}
static int
dissect_x509sat_INTEGER(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
offset = dissect_ber_integer(implicit_tag, actx, tree, tvb, offset, hf_index,
NULL);
return offset;
}
static const ber_sequence_t DayTime_sequence[] = {
{ &hf_x509sat_hour , BER_CLASS_CON, 0, 0, dissect_x509sat_INTEGER },
{ &hf_x509sat_minute , BER_CLASS_CON, 1, BER_FLAGS_OPTIONAL, dissect_x509sat_INTEGER },
{ &hf_x509sat_second , BER_CLASS_CON, 2, BER_FLAGS_OPTIONAL, dissect_x509sat_INTEGER },
{ NULL, 0, 0, 0, NULL }
};
static int
dissect_x509sat_DayTime(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset,
DayTime_sequence, hf_index, ett_x509sat_DayTime);
return offset;
}
static const ber_sequence_t DayTimeBand_sequence[] = {
{ &hf_x509sat_startDayTime, BER_CLASS_CON, 0, BER_FLAGS_OPTIONAL, dissect_x509sat_DayTime },
{ &hf_x509sat_endDayTime , BER_CLASS_CON, 1, BER_FLAGS_OPTIONAL, dissect_x509sat_DayTime },
{ NULL, 0, 0, 0, NULL }
};
int
dissect_x509sat_DayTimeBand(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset,
DayTimeBand_sequence, hf_index, ett_x509sat_DayTimeBand);
return offset;
}
static const ber_sequence_t SET_OF_DayTimeBand_set_of[1] = {
{ &hf_x509sat_timesOfDay_item, BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_x509sat_DayTimeBand },
};
static int
dissect_x509sat_SET_OF_DayTimeBand(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
offset = dissect_ber_set_of(implicit_tag, actx, tree, tvb, offset,
SET_OF_DayTimeBand_set_of, hf_index, ett_x509sat_SET_OF_DayTimeBand);
return offset;
}
static const ber_sequence_t T_intDay_set_of[1] = {
{ &hf_x509sat_intDay_item , BER_CLASS_UNI, BER_UNI_TAG_INTEGER, BER_FLAGS_NOOWNTAG, dissect_x509sat_INTEGER },
};
static int
dissect_x509sat_T_intDay(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
offset = dissect_ber_set_of(implicit_tag, actx, tree, tvb, offset,
T_intDay_set_of, hf_index, ett_x509sat_T_intDay);
return offset;
}
static const int * T_bitDay_bits[] = {
&hf_x509sat_T_bitDay_sunday,
&hf_x509sat_T_bitDay_monday,
&hf_x509sat_T_bitDay_tuesday,
&hf_x509sat_T_bitDay_wednesday,
&hf_x509sat_T_bitDay_thursday,
&hf_x509sat_T_bitDay_friday,
&hf_x509sat_T_bitDay_saturday,
NULL
};
static int
dissect_x509sat_T_bitDay(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
offset = dissect_ber_bitstring(implicit_tag, actx, tree, tvb, offset,
T_bitDay_bits, 7, hf_index, ett_x509sat_T_bitDay,
NULL);
return offset;
}
static const value_string x509sat_T_intNamedDays_vals[] = {
{ 1, "sunday" },
{ 2, "monday" },
{ 3, "tuesday" },
{ 4, "wednesday" },
{ 5, "thursday" },
{ 6, "friday" },
{ 7, "saturday" },
{ 0, NULL }
};
static int
dissect_x509sat_T_intNamedDays(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
offset = dissect_ber_integer(implicit_tag, actx, tree, tvb, offset, hf_index,
NULL);