1 /* Do not modify this file. Changes will be overwritten. */
2 /* Generated automatically by the ASN.1 to Wireshark dissector compiler */
3 /* packet-pkix1explicit.c */
4 /* asn2wrs.py -b -q -L -p pkix1explicit -c ./pkix1explicit.cnf -s ./packet-pkix1explicit-template -D . -O ../.. PKIX1EXPLICIT93.asn IPAddrAndASCertExtn.asn */
6 #define BER_UNI_TAG_TeletexString 20 /* workaround bug in asn2wrs */
8 /* packet-pkix1explicit.c
9 * Routines for PKIX1Explitic packet dissection
11 * Wireshark - Network traffic analyzer
12 * By Gerald Combs <gerald@wireshark.org>
13 * Copyright 1998 Gerald Combs
15 * SPDX-License-Identifier: GPL-2.0-or-later
20 #include <epan/packet.h>
21 #include <epan/asn1.h>
22 #include <epan/oids.h>
24 #include <wsutil/array.h>
26 #include "packet-ber.h"
27 #include "packet-pkix1explicit.h"
28 #include "packet-x509af.h"
29 #include "packet-x509if.h"
30 #include "packet-x509ce.h"
32 /* from packet-tls-utils.h */
33 extern const value_string tls_hello_extension_types
[];
35 #define PNAME "PKIX1Explicit"
36 #define PSNAME "PKIX1EXPLICIT"
37 #define PFNAME "pkix1explicit"
39 void proto_register_pkix1explicit(void);
40 void proto_reg_handoff_pkix1explicit(void);
42 /* Initialize the protocol and registered fields */
43 static int proto_pkix1explicit
;
44 static int hf_pkix1explicit_object_identifier_id
;
45 static int hf_pkix1explicit_addressFamily_afn
;
46 static int hf_pkix1explicit_addressFamily_safi
;
48 static int ett_pkix1explicit_addressFamily
;
50 static int hf_pkix1explicit_Extensions_PDU
; /* Extensions */
51 static int hf_pkix1explicit_DomainParameters_PDU
; /* DomainParameters */
52 static int hf_pkix1explicit_DirectoryString_PDU
; /* DirectoryString */
53 static int hf_pkix1explicit_Features_PDU
; /* Features */
54 static int hf_pkix1explicit_IPAddrBlocks_PDU
; /* IPAddrBlocks */
55 static int hf_pkix1explicit_ASIdentifiers_PDU
; /* ASIdentifiers */
56 static int hf_pkix1explicit_utcTime
; /* UTCTime */
57 static int hf_pkix1explicit_generalTime
; /* GeneralizedTime */
58 static int hf_pkix1explicit_Extensions_item
; /* Extension */
59 static int hf_pkix1explicit_extnId
; /* T_extnId */
60 static int hf_pkix1explicit_critical
; /* BOOLEAN */
61 static int hf_pkix1explicit_extnValue
; /* T_extnValue */
62 static int hf_pkix1explicit_p
; /* INTEGER */
63 static int hf_pkix1explicit_g
; /* INTEGER */
64 static int hf_pkix1explicit_q
; /* INTEGER */
65 static int hf_pkix1explicit_j
; /* INTEGER */
66 static int hf_pkix1explicit_validationParms
; /* ValidationParms */
67 static int hf_pkix1explicit_seed
; /* BIT_STRING */
68 static int hf_pkix1explicit_pgenCounter
; /* INTEGER */
69 static int hf_pkix1explicit_type
; /* T_type */
70 static int hf_pkix1explicit_values
; /* T_values */
71 static int hf_pkix1explicit_values_item
; /* T_values_item */
72 static int hf_pkix1explicit_type_01
; /* T_type_01 */
73 static int hf_pkix1explicit_value
; /* T_value */
74 static int hf_pkix1explicit_RDNSequence_item
; /* RelativeDistinguishedName */
75 static int hf_pkix1explicit_RelativeDistinguishedName_item
; /* AttributeTypeAndValue */
76 static int hf_pkix1explicit_type_02
; /* TeletexString */
77 static int hf_pkix1explicit_value_01
; /* TeletexString */
78 static int hf_pkix1explicit_Features_item
; /* INTEGER */
79 static int hf_pkix1explicit_IPAddrBlocks_item
; /* IPAddressFamily */
80 static int hf_pkix1explicit_addressFamily
; /* T_addressFamily */
81 static int hf_pkix1explicit_ipAddressChoice
; /* IPAddressChoice */
82 static int hf_pkix1explicit_inherit
; /* NULL */
83 static int hf_pkix1explicit_addressesOrRanges
; /* SEQUENCE_OF_IPAddressOrRange */
84 static int hf_pkix1explicit_addressesOrRanges_item
; /* IPAddressOrRange */
85 static int hf_pkix1explicit_addressPrefix
; /* IPAddress */
86 static int hf_pkix1explicit_addressRange
; /* IPAddressRange */
87 static int hf_pkix1explicit_min
; /* IPAddress */
88 static int hf_pkix1explicit_max
; /* IPAddress */
89 static int hf_pkix1explicit_asnum
; /* ASIdentifierChoice */
90 static int hf_pkix1explicit_rdi
; /* ASIdentifierChoice */
91 static int hf_pkix1explicit_asIdsOrRanges
; /* SEQUENCE_OF_ASIdOrRange */
92 static int hf_pkix1explicit_asIdsOrRanges_item
; /* ASIdOrRange */
93 static int hf_pkix1explicit_id
; /* ASId */
94 static int hf_pkix1explicit_range
; /* ASRange */
95 static int hf_pkix1explicit_min_01
; /* ASId */
96 static int hf_pkix1explicit_max_01
; /* ASId */
98 /* Initialize the subtree pointers */
99 static int ett_pkix1explicit_Time
;
100 static int ett_pkix1explicit_Extensions
;
101 static int ett_pkix1explicit_Extension
;
102 static int ett_pkix1explicit_DomainParameters
;
103 static int ett_pkix1explicit_ValidationParms
;
104 static int ett_pkix1explicit_Attribute
;
105 static int ett_pkix1explicit_T_values
;
106 static int ett_pkix1explicit_AttributeTypeAndValue
;
107 static int ett_pkix1explicit_RDNSequence
;
108 static int ett_pkix1explicit_RelativeDistinguishedName
;
109 static int ett_pkix1explicit_TeletexDomainDefinedAttribute
;
110 static int ett_pkix1explicit_Features
;
111 static int ett_pkix1explicit_IPAddrBlocks
;
112 static int ett_pkix1explicit_IPAddressFamily
;
113 static int ett_pkix1explicit_IPAddressChoice
;
114 static int ett_pkix1explicit_SEQUENCE_OF_IPAddressOrRange
;
115 static int ett_pkix1explicit_IPAddressOrRange
;
116 static int ett_pkix1explicit_IPAddressRange
;
117 static int ett_pkix1explicit_ASIdentifiers
;
118 static int ett_pkix1explicit_ASIdentifierChoice
;
119 static int ett_pkix1explicit_SEQUENCE_OF_ASIdOrRange
;
120 static int ett_pkix1explicit_ASIdOrRange
;
121 static int ett_pkix1explicit_ASRange
;
124 dissect_pkix1explicit_Certificate(bool implicit_tag _U_
, tvbuff_t
*tvb
, int offset
, asn1_ctx_t
*actx _U_
, proto_tree
*tree
, int hf_index
) {
125 offset
= dissect_x509af_Certificate(implicit_tag
, tvb
, offset
, actx
, tree
, hf_index
);
130 dissect_pkix1explicit_CertificateList(bool implicit_tag _U_
, tvbuff_t
*tvb
, int offset
, asn1_ctx_t
*actx _U_
, proto_tree
*tree
, int hf_index
) {
131 offset
= dissect_x509af_CertificateList(implicit_tag
, tvb
, offset
, actx
, tree
, hf_index
);
136 dissect_pkix1explicit_GeneralName(bool implicit_tag _U_
, tvbuff_t
*tvb
, int offset
, asn1_ctx_t
*actx _U_
, proto_tree
*tree
, int hf_index
) {
137 offset
= dissect_x509ce_GeneralName(implicit_tag
, tvb
, offset
, actx
, tree
, hf_index
);
142 dissect_pkix1explicit_Name(bool implicit_tag _U_
, tvbuff_t
*tvb
, int offset
, asn1_ctx_t
*actx _U_
, proto_tree
*tree
, int hf_index
) {
143 offset
= dissect_x509if_Name(implicit_tag
, tvb
, offset
, actx
, tree
, hf_index
);
148 dissect_pkix1explicit_AlgorithmIdentifier(bool implicit_tag _U_
, tvbuff_t
*tvb
, int offset
, asn1_ctx_t
*actx _U_
, proto_tree
*tree
, int hf_index
) {
149 offset
= dissect_x509af_AlgorithmIdentifier(implicit_tag
, tvb
, offset
, actx
, tree
, hf_index
);
155 dissect_pkix1explicit_SubjectPublicKeyInfo(bool implicit_tag
, tvbuff_t
*tvb
, int offset
, asn1_ctx_t
*actx _U_
, proto_tree
*tree
, int hf_index
) {
156 offset
= dissect_x509af_SubjectPublicKeyInfo(implicit_tag
, tvb
, offset
, actx
, tree
, hf_index
);
165 dissect_pkix1explicit_UniqueIdentifier(bool implicit_tag _U_
, tvbuff_t
*tvb _U_
, int offset _U_
, asn1_ctx_t
*actx _U_
, proto_tree
*tree _U_
, int hf_index _U_
) {
166 offset
= dissect_ber_bitstring(implicit_tag
, actx
, tree
, tvb
, offset
,
167 NULL
, 0, hf_index
, -1,
174 const value_string pkix1explicit_Version_vals
[] = {
183 dissect_pkix1explicit_Version(bool implicit_tag _U_
, tvbuff_t
*tvb _U_
, int offset _U_
, asn1_ctx_t
*actx _U_
, proto_tree
*tree _U_
, int hf_index _U_
) {
184 offset
= dissect_ber_integer(implicit_tag
, actx
, tree
, tvb
, offset
, hf_index
,
193 dissect_pkix1explicit_CertificateSerialNumber(bool implicit_tag _U_
, tvbuff_t
*tvb _U_
, int offset _U_
, asn1_ctx_t
*actx _U_
, proto_tree
*tree _U_
, int hf_index _U_
) {
194 offset
= dissect_ber_integer(implicit_tag
, actx
, tree
, tvb
, offset
, hf_index
,
203 dissect_pkix1explicit_UTCTime(bool implicit_tag _U_
, tvbuff_t
*tvb _U_
, int offset _U_
, asn1_ctx_t
*actx _U_
, proto_tree
*tree _U_
, int hf_index _U_
) {
204 offset
= dissect_ber_UTCTime(implicit_tag
, actx
, tree
, tvb
, offset
, hf_index
, NULL
, NULL
);
212 dissect_pkix1explicit_GeneralizedTime(bool implicit_tag _U_
, tvbuff_t
*tvb _U_
, int offset _U_
, asn1_ctx_t
*actx _U_
, proto_tree
*tree _U_
, int hf_index _U_
) {
213 offset
= dissect_ber_GeneralizedTime(implicit_tag
, actx
, tree
, tvb
, offset
, hf_index
);
219 const value_string pkix1explicit_Time_vals
[] = {
221 { 1, "generalTime" },
225 static const ber_choice_t Time_choice
[] = {
226 { 0, &hf_pkix1explicit_utcTime
, BER_CLASS_UNI
, BER_UNI_TAG_UTCTime
, BER_FLAGS_NOOWNTAG
, dissect_pkix1explicit_UTCTime
},
227 { 1, &hf_pkix1explicit_generalTime
, BER_CLASS_UNI
, BER_UNI_TAG_GeneralizedTime
, BER_FLAGS_NOOWNTAG
, dissect_pkix1explicit_GeneralizedTime
},
228 { 0, NULL
, 0, 0, 0, NULL
}
232 dissect_pkix1explicit_Time(bool implicit_tag _U_
, tvbuff_t
*tvb _U_
, int offset _U_
, asn1_ctx_t
*actx _U_
, proto_tree
*tree _U_
, int hf_index _U_
) {
233 offset
= dissect_ber_choice(actx
, tree
, tvb
, offset
,
234 Time_choice
, hf_index
, ett_pkix1explicit_Time
,
243 dissect_pkix1explicit_T_extnId(bool implicit_tag _U_
, tvbuff_t
*tvb _U_
, int offset _U_
, asn1_ctx_t
*actx _U_
, proto_tree
*tree _U_
, int hf_index _U_
) {
244 offset
= dissect_ber_object_identifier_str(implicit_tag
, actx
, tree
, tvb
, offset
, hf_pkix1explicit_object_identifier_id
, &actx
->external
.direct_reference
);
246 actx
->external
.direct_ref_present
= (actx
->external
.direct_reference
!= NULL
) ? true : false;
255 dissect_pkix1explicit_BOOLEAN(bool implicit_tag _U_
, tvbuff_t
*tvb _U_
, int offset _U_
, asn1_ctx_t
*actx _U_
, proto_tree
*tree _U_
, int hf_index _U_
) {
256 offset
= dissect_ber_boolean(implicit_tag
, actx
, tree
, tvb
, offset
, hf_index
, NULL
);
264 dissect_pkix1explicit_T_extnValue(bool implicit_tag _U_
, tvbuff_t
*tvb _U_
, int offset _U_
, asn1_ctx_t
*actx _U_
, proto_tree
*tree _U_
, int hf_index _U_
) {
269 /* skip past the T and L */
270 offset
= dissect_ber_identifier(actx
->pinfo
, tree
, tvb
, offset
, &appclass
, &pc
, &tag
);
271 offset
= dissect_ber_length(actx
->pinfo
, tree
, tvb
, offset
, &len
, &ind
);
272 if (actx
->external
.direct_ref_present
) {
273 offset
=call_ber_oid_callback(actx
->external
.direct_reference
, tvb
, offset
, actx
->pinfo
, tree
, NULL
);
282 static const ber_sequence_t Extension_sequence
[] = {
283 { &hf_pkix1explicit_extnId
, BER_CLASS_UNI
, BER_UNI_TAG_OID
, BER_FLAGS_NOOWNTAG
, dissect_pkix1explicit_T_extnId
},
284 { &hf_pkix1explicit_critical
, BER_CLASS_UNI
, BER_UNI_TAG_BOOLEAN
, BER_FLAGS_OPTIONAL
|BER_FLAGS_NOOWNTAG
, dissect_pkix1explicit_BOOLEAN
},
285 { &hf_pkix1explicit_extnValue
, BER_CLASS_UNI
, BER_UNI_TAG_OCTETSTRING
, BER_FLAGS_NOOWNTAG
, dissect_pkix1explicit_T_extnValue
},
286 { NULL
, 0, 0, 0, NULL
}
290 dissect_pkix1explicit_Extension(bool implicit_tag _U_
, tvbuff_t
*tvb _U_
, int offset _U_
, asn1_ctx_t
*actx _U_
, proto_tree
*tree _U_
, int hf_index _U_
) {
291 offset
= dissect_ber_sequence(implicit_tag
, actx
, tree
, tvb
, offset
,
292 Extension_sequence
, hf_index
, ett_pkix1explicit_Extension
);
298 static const ber_sequence_t Extensions_sequence_of
[1] = {
299 { &hf_pkix1explicit_Extensions_item
, BER_CLASS_UNI
, BER_UNI_TAG_SEQUENCE
, BER_FLAGS_NOOWNTAG
, dissect_pkix1explicit_Extension
},
303 dissect_pkix1explicit_Extensions(bool implicit_tag _U_
, tvbuff_t
*tvb _U_
, int offset _U_
, asn1_ctx_t
*actx _U_
, proto_tree
*tree _U_
, int hf_index _U_
) {
304 offset
= dissect_ber_sequence_of(implicit_tag
, actx
, tree
, tvb
, offset
,
305 Extensions_sequence_of
, hf_index
, ett_pkix1explicit_Extensions
);
313 dissect_pkix1explicit_INTEGER(bool implicit_tag _U_
, tvbuff_t
*tvb _U_
, int offset _U_
, asn1_ctx_t
*actx _U_
, proto_tree
*tree _U_
, int hf_index _U_
) {
314 offset
= dissect_ber_integer(implicit_tag
, actx
, tree
, tvb
, offset
, hf_index
,
323 dissect_pkix1explicit_BIT_STRING(bool implicit_tag _U_
, tvbuff_t
*tvb _U_
, int offset _U_
, asn1_ctx_t
*actx _U_
, proto_tree
*tree _U_
, int hf_index _U_
) {
324 offset
= dissect_ber_bitstring(implicit_tag
, actx
, tree
, tvb
, offset
,
325 NULL
, 0, hf_index
, -1,
332 static const ber_sequence_t ValidationParms_sequence
[] = {
333 { &hf_pkix1explicit_seed
, BER_CLASS_UNI
, BER_UNI_TAG_BITSTRING
, BER_FLAGS_NOOWNTAG
, dissect_pkix1explicit_BIT_STRING
},
334 { &hf_pkix1explicit_pgenCounter
, BER_CLASS_UNI
, BER_UNI_TAG_INTEGER
, BER_FLAGS_NOOWNTAG
, dissect_pkix1explicit_INTEGER
},
335 { NULL
, 0, 0, 0, NULL
}
339 dissect_pkix1explicit_ValidationParms(bool implicit_tag _U_
, tvbuff_t
*tvb _U_
, int offset _U_
, asn1_ctx_t
*actx _U_
, proto_tree
*tree _U_
, int hf_index _U_
) {
340 offset
= dissect_ber_sequence(implicit_tag
, actx
, tree
, tvb
, offset
,
341 ValidationParms_sequence
, hf_index
, ett_pkix1explicit_ValidationParms
);
347 static const ber_sequence_t DomainParameters_sequence
[] = {
348 { &hf_pkix1explicit_p
, BER_CLASS_UNI
, BER_UNI_TAG_INTEGER
, BER_FLAGS_NOOWNTAG
, dissect_pkix1explicit_INTEGER
},
349 { &hf_pkix1explicit_g
, BER_CLASS_UNI
, BER_UNI_TAG_INTEGER
, BER_FLAGS_NOOWNTAG
, dissect_pkix1explicit_INTEGER
},
350 { &hf_pkix1explicit_q
, BER_CLASS_UNI
, BER_UNI_TAG_INTEGER
, BER_FLAGS_NOOWNTAG
, dissect_pkix1explicit_INTEGER
},
351 { &hf_pkix1explicit_j
, BER_CLASS_UNI
, BER_UNI_TAG_INTEGER
, BER_FLAGS_OPTIONAL
|BER_FLAGS_NOOWNTAG
, dissect_pkix1explicit_INTEGER
},
352 { &hf_pkix1explicit_validationParms
, BER_CLASS_UNI
, BER_UNI_TAG_SEQUENCE
, BER_FLAGS_OPTIONAL
|BER_FLAGS_NOOWNTAG
, dissect_pkix1explicit_ValidationParms
},
353 { NULL
, 0, 0, 0, NULL
}
357 dissect_pkix1explicit_DomainParameters(bool implicit_tag _U_
, tvbuff_t
*tvb _U_
, int offset _U_
, asn1_ctx_t
*actx _U_
, proto_tree
*tree _U_
, int hf_index _U_
) {
358 offset
= dissect_ber_sequence(implicit_tag
, actx
, tree
, tvb
, offset
,
359 DomainParameters_sequence
, hf_index
, ett_pkix1explicit_DomainParameters
);
367 dissect_pkix1explicit_T_type(bool implicit_tag _U_
, tvbuff_t
*tvb _U_
, int offset _U_
, asn1_ctx_t
*actx _U_
, proto_tree
*tree _U_
, int hf_index _U_
) {
368 offset
= dissect_ber_object_identifier_str(implicit_tag
, actx
, tree
, tvb
, offset
, hf_pkix1explicit_type
, &actx
->external
.direct_reference
);
376 dissect_pkix1explicit_T_values_item(bool implicit_tag _U_
, tvbuff_t
*tvb _U_
, int offset _U_
, asn1_ctx_t
*actx _U_
, proto_tree
*tree _U_
, int hf_index _U_
) {
377 offset
=call_ber_oid_callback(actx
->external
.direct_reference
, tvb
, offset
, actx
->pinfo
, tree
, NULL
);
384 static const ber_sequence_t T_values_set_of
[1] = {
385 { &hf_pkix1explicit_values_item
, BER_CLASS_ANY
, 0, BER_FLAGS_NOOWNTAG
, dissect_pkix1explicit_T_values_item
},
389 dissect_pkix1explicit_T_values(bool implicit_tag _U_
, tvbuff_t
*tvb _U_
, int offset _U_
, asn1_ctx_t
*actx _U_
, proto_tree
*tree _U_
, int hf_index _U_
) {
390 offset
= dissect_ber_set_of(implicit_tag
, actx
, tree
, tvb
, offset
,
391 T_values_set_of
, hf_index
, ett_pkix1explicit_T_values
);
397 static const ber_sequence_t Attribute_sequence
[] = {
398 { &hf_pkix1explicit_type
, BER_CLASS_UNI
, BER_UNI_TAG_OID
, BER_FLAGS_NOOWNTAG
, dissect_pkix1explicit_T_type
},
399 { &hf_pkix1explicit_values
, BER_CLASS_UNI
, BER_UNI_TAG_SET
, BER_FLAGS_NOOWNTAG
, dissect_pkix1explicit_T_values
},
400 { NULL
, 0, 0, 0, NULL
}
404 dissect_pkix1explicit_Attribute(bool implicit_tag _U_
, tvbuff_t
*tvb _U_
, int offset _U_
, asn1_ctx_t
*actx _U_
, proto_tree
*tree _U_
, int hf_index _U_
) {
405 offset
= dissect_ber_sequence(implicit_tag
, actx
, tree
, tvb
, offset
,
406 Attribute_sequence
, hf_index
, ett_pkix1explicit_Attribute
);
414 dissect_pkix1explicit_T_type_01(bool implicit_tag _U_
, tvbuff_t
*tvb _U_
, int offset _U_
, asn1_ctx_t
*actx _U_
, proto_tree
*tree _U_
, int hf_index _U_
) {
415 offset
= dissect_ber_object_identifier_str(implicit_tag
, actx
, tree
, tvb
, offset
, hf_pkix1explicit_type_01
, &actx
->external
.direct_reference
);
423 dissect_pkix1explicit_T_value(bool implicit_tag _U_
, tvbuff_t
*tvb _U_
, int offset _U_
, asn1_ctx_t
*actx _U_
, proto_tree
*tree _U_
, int hf_index _U_
) {
424 offset
=call_ber_oid_callback(actx
->external
.direct_reference
, tvb
, offset
, actx
->pinfo
, tree
, NULL
);
431 static const ber_sequence_t AttributeTypeAndValue_sequence
[] = {
432 { &hf_pkix1explicit_type_01
, BER_CLASS_UNI
, BER_UNI_TAG_OID
, BER_FLAGS_NOOWNTAG
, dissect_pkix1explicit_T_type_01
},
433 { &hf_pkix1explicit_value
, BER_CLASS_ANY
, 0, BER_FLAGS_NOOWNTAG
, dissect_pkix1explicit_T_value
},
434 { NULL
, 0, 0, 0, NULL
}
438 dissect_pkix1explicit_AttributeTypeAndValue(bool implicit_tag _U_
, tvbuff_t
*tvb _U_
, int offset _U_
, asn1_ctx_t
*actx _U_
, proto_tree
*tree _U_
, int hf_index _U_
) {
439 offset
= dissect_ber_sequence(implicit_tag
, actx
, tree
, tvb
, offset
,
440 AttributeTypeAndValue_sequence
, hf_index
, ett_pkix1explicit_AttributeTypeAndValue
);
446 static const ber_sequence_t RelativeDistinguishedName_set_of
[1] = {
447 { &hf_pkix1explicit_RelativeDistinguishedName_item
, BER_CLASS_UNI
, BER_UNI_TAG_SEQUENCE
, BER_FLAGS_NOOWNTAG
, dissect_pkix1explicit_AttributeTypeAndValue
},
451 dissect_pkix1explicit_RelativeDistinguishedName(bool implicit_tag _U_
, tvbuff_t
*tvb _U_
, int offset _U_
, asn1_ctx_t
*actx _U_
, proto_tree
*tree _U_
, int hf_index _U_
) {
452 offset
= dissect_ber_set_of(implicit_tag
, actx
, tree
, tvb
, offset
,
453 RelativeDistinguishedName_set_of
, hf_index
, ett_pkix1explicit_RelativeDistinguishedName
);
459 static const ber_sequence_t RDNSequence_sequence_of
[1] = {
460 { &hf_pkix1explicit_RDNSequence_item
, BER_CLASS_UNI
, BER_UNI_TAG_SET
, BER_FLAGS_NOOWNTAG
, dissect_pkix1explicit_RelativeDistinguishedName
},
464 dissect_pkix1explicit_RDNSequence(bool implicit_tag _U_
, tvbuff_t
*tvb _U_
, int offset _U_
, asn1_ctx_t
*actx _U_
, proto_tree
*tree _U_
, int hf_index _U_
) {
465 offset
= dissect_ber_sequence_of(implicit_tag
, actx
, tree
, tvb
, offset
,
466 RDNSequence_sequence_of
, hf_index
, ett_pkix1explicit_RDNSequence
);
474 dissect_pkix1explicit_DirectoryString(bool implicit_tag _U_
, tvbuff_t
*tvb _U_
, int offset _U_
, asn1_ctx_t
*actx _U_
, proto_tree
*tree _U_
, int hf_index _U_
) {
475 offset
= dissect_ber_octet_string(implicit_tag
, actx
, tree
, tvb
, offset
, hf_index
, NULL
);
482 const value_string pkix1explicit_TerminalType_vals
[] = {
485 { 5, "g3-facsimile" },
486 { 6, "g4-facsimile" },
487 { 7, "ia5-terminal" },
494 dissect_pkix1explicit_TerminalType(bool implicit_tag _U_
, tvbuff_t
*tvb _U_
, int offset _U_
, asn1_ctx_t
*actx _U_
, proto_tree
*tree _U_
, int hf_index _U_
) {
495 offset
= dissect_ber_integer(implicit_tag
, actx
, tree
, tvb
, offset
, hf_index
,
504 dissect_pkix1explicit_TeletexString(bool implicit_tag _U_
, tvbuff_t
*tvb _U_
, int offset _U_
, asn1_ctx_t
*actx _U_
, proto_tree
*tree _U_
, int hf_index _U_
) {
505 offset
= dissect_ber_restricted_string(implicit_tag
, BER_UNI_TAG_TeletexString
,
506 actx
, tree
, tvb
, offset
, hf_index
,
513 static const ber_sequence_t TeletexDomainDefinedAttribute_sequence
[] = {
514 { &hf_pkix1explicit_type_02
, BER_CLASS_UNI
, BER_UNI_TAG_TeletexString
, BER_FLAGS_NOOWNTAG
, dissect_pkix1explicit_TeletexString
},
515 { &hf_pkix1explicit_value_01
, BER_CLASS_UNI
, BER_UNI_TAG_TeletexString
, BER_FLAGS_NOOWNTAG
, dissect_pkix1explicit_TeletexString
},
516 { NULL
, 0, 0, 0, NULL
}
520 dissect_pkix1explicit_TeletexDomainDefinedAttribute(bool implicit_tag _U_
, tvbuff_t
*tvb _U_
, int offset _U_
, asn1_ctx_t
*actx _U_
, proto_tree
*tree _U_
, int hf_index _U_
) {
521 offset
= dissect_ber_sequence(implicit_tag
, actx
, tree
, tvb
, offset
,
522 TeletexDomainDefinedAttribute_sequence
, hf_index
, ett_pkix1explicit_TeletexDomainDefinedAttribute
);
528 static const ber_sequence_t Features_sequence_of
[1] = {
529 { &hf_pkix1explicit_Features_item
, BER_CLASS_UNI
, BER_UNI_TAG_INTEGER
, BER_FLAGS_NOOWNTAG
, dissect_pkix1explicit_INTEGER
},
533 dissect_pkix1explicit_Features(bool implicit_tag _U_
, tvbuff_t
*tvb _U_
, int offset _U_
, asn1_ctx_t
*actx _U_
, proto_tree
*tree _U_
, int hf_index _U_
) {
534 offset
= dissect_ber_sequence_of(implicit_tag
, actx
, tree
, tvb
, offset
,
535 Features_sequence_of
, hf_index
, ett_pkix1explicit_Features
);
543 dissect_pkix1explicit_T_addressFamily(bool implicit_tag _U_
, tvbuff_t
*tvb _U_
, int offset _U_
, asn1_ctx_t
*actx _U_
, proto_tree
*tree _U_
, int hf_index _U_
) {
544 tvbuff_t
*parameter_tvb
;
547 offset
= dissect_ber_octet_string(implicit_tag
, actx
, tree
, tvb
, offset
, hf_index
,
553 subtree
= proto_item_add_subtree(actx
->created_item
, ett_pkix1explicit_addressFamily
);
554 proto_tree_add_item(subtree
, hf_pkix1explicit_addressFamily_afn
, parameter_tvb
, 0, 2, ENC_BIG_ENDIAN
);
555 if(tvb_reported_length(parameter_tvb
)>2)
556 proto_tree_add_item(subtree
, hf_pkix1explicit_addressFamily_safi
, parameter_tvb
, 0, 2, ENC_BIG_ENDIAN
);
565 dissect_pkix1explicit_NULL(bool implicit_tag _U_
, tvbuff_t
*tvb _U_
, int offset _U_
, asn1_ctx_t
*actx _U_
, proto_tree
*tree _U_
, int hf_index _U_
) {
566 offset
= dissect_ber_null(implicit_tag
, actx
, tree
, tvb
, offset
, hf_index
);
574 dissect_pkix1explicit_IPAddress(bool implicit_tag _U_
, tvbuff_t
*tvb _U_
, int offset _U_
, asn1_ctx_t
*actx _U_
, proto_tree
*tree _U_
, int hf_index _U_
) {
575 offset
= dissect_ber_bitstring(implicit_tag
, actx
, tree
, tvb
, offset
,
576 NULL
, 0, hf_index
, -1,
583 static const ber_sequence_t IPAddressRange_sequence
[] = {
584 { &hf_pkix1explicit_min
, BER_CLASS_UNI
, BER_UNI_TAG_BITSTRING
, BER_FLAGS_NOOWNTAG
, dissect_pkix1explicit_IPAddress
},
585 { &hf_pkix1explicit_max
, BER_CLASS_UNI
, BER_UNI_TAG_BITSTRING
, BER_FLAGS_NOOWNTAG
, dissect_pkix1explicit_IPAddress
},
586 { NULL
, 0, 0, 0, NULL
}
590 dissect_pkix1explicit_IPAddressRange(bool implicit_tag _U_
, tvbuff_t
*tvb _U_
, int offset _U_
, asn1_ctx_t
*actx _U_
, proto_tree
*tree _U_
, int hf_index _U_
) {
591 offset
= dissect_ber_sequence(implicit_tag
, actx
, tree
, tvb
, offset
,
592 IPAddressRange_sequence
, hf_index
, ett_pkix1explicit_IPAddressRange
);
598 static const value_string pkix1explicit_IPAddressOrRange_vals
[] = {
599 { 0, "addressPrefix" },
600 { 1, "addressRange" },
604 static const ber_choice_t IPAddressOrRange_choice
[] = {
605 { 0, &hf_pkix1explicit_addressPrefix
, BER_CLASS_UNI
, BER_UNI_TAG_BITSTRING
, BER_FLAGS_NOOWNTAG
, dissect_pkix1explicit_IPAddress
},
606 { 1, &hf_pkix1explicit_addressRange
, BER_CLASS_UNI
, BER_UNI_TAG_SEQUENCE
, BER_FLAGS_NOOWNTAG
, dissect_pkix1explicit_IPAddressRange
},
607 { 0, NULL
, 0, 0, 0, NULL
}
611 dissect_pkix1explicit_IPAddressOrRange(bool implicit_tag _U_
, tvbuff_t
*tvb _U_
, int offset _U_
, asn1_ctx_t
*actx _U_
, proto_tree
*tree _U_
, int hf_index _U_
) {
612 offset
= dissect_ber_choice(actx
, tree
, tvb
, offset
,
613 IPAddressOrRange_choice
, hf_index
, ett_pkix1explicit_IPAddressOrRange
,
620 static const ber_sequence_t SEQUENCE_OF_IPAddressOrRange_sequence_of
[1] = {
621 { &hf_pkix1explicit_addressesOrRanges_item
, BER_CLASS_ANY
/*choice*/, -1/*choice*/, BER_FLAGS_NOOWNTAG
|BER_FLAGS_NOTCHKTAG
, dissect_pkix1explicit_IPAddressOrRange
},
625 dissect_pkix1explicit_SEQUENCE_OF_IPAddressOrRange(bool implicit_tag _U_
, tvbuff_t
*tvb _U_
, int offset _U_
, asn1_ctx_t
*actx _U_
, proto_tree
*tree _U_
, int hf_index _U_
) {
626 offset
= dissect_ber_sequence_of(implicit_tag
, actx
, tree
, tvb
, offset
,
627 SEQUENCE_OF_IPAddressOrRange_sequence_of
, hf_index
, ett_pkix1explicit_SEQUENCE_OF_IPAddressOrRange
);
633 static const value_string pkix1explicit_IPAddressChoice_vals
[] = {
635 { 1, "addressesOrRanges" },
639 static const ber_choice_t IPAddressChoice_choice
[] = {
640 { 0, &hf_pkix1explicit_inherit
, BER_CLASS_UNI
, BER_UNI_TAG_NULL
, BER_FLAGS_NOOWNTAG
, dissect_pkix1explicit_NULL
},
641 { 1, &hf_pkix1explicit_addressesOrRanges
, BER_CLASS_UNI
, BER_UNI_TAG_SEQUENCE
, BER_FLAGS_NOOWNTAG
, dissect_pkix1explicit_SEQUENCE_OF_IPAddressOrRange
},
642 { 0, NULL
, 0, 0, 0, NULL
}
646 dissect_pkix1explicit_IPAddressChoice(bool implicit_tag _U_
, tvbuff_t
*tvb _U_
, int offset _U_
, asn1_ctx_t
*actx _U_
, proto_tree
*tree _U_
, int hf_index _U_
) {
647 offset
= dissect_ber_choice(actx
, tree
, tvb
, offset
,
648 IPAddressChoice_choice
, hf_index
, ett_pkix1explicit_IPAddressChoice
,
655 static const ber_sequence_t IPAddressFamily_sequence
[] = {
656 { &hf_pkix1explicit_addressFamily
, BER_CLASS_UNI
, BER_UNI_TAG_OCTETSTRING
, BER_FLAGS_NOOWNTAG
, dissect_pkix1explicit_T_addressFamily
},
657 { &hf_pkix1explicit_ipAddressChoice
, BER_CLASS_ANY
/*choice*/, -1/*choice*/, BER_FLAGS_NOOWNTAG
|BER_FLAGS_NOTCHKTAG
, dissect_pkix1explicit_IPAddressChoice
},
658 { NULL
, 0, 0, 0, NULL
}
662 dissect_pkix1explicit_IPAddressFamily(bool implicit_tag _U_
, tvbuff_t
*tvb _U_
, int offset _U_
, asn1_ctx_t
*actx _U_
, proto_tree
*tree _U_
, int hf_index _U_
) {
663 offset
= dissect_ber_sequence(implicit_tag
, actx
, tree
, tvb
, offset
,
664 IPAddressFamily_sequence
, hf_index
, ett_pkix1explicit_IPAddressFamily
);
670 static const ber_sequence_t IPAddrBlocks_sequence_of
[1] = {
671 { &hf_pkix1explicit_IPAddrBlocks_item
, BER_CLASS_UNI
, BER_UNI_TAG_SEQUENCE
, BER_FLAGS_NOOWNTAG
, dissect_pkix1explicit_IPAddressFamily
},
675 dissect_pkix1explicit_IPAddrBlocks(bool implicit_tag _U_
, tvbuff_t
*tvb _U_
, int offset _U_
, asn1_ctx_t
*actx _U_
, proto_tree
*tree _U_
, int hf_index _U_
) {
676 offset
= dissect_ber_sequence_of(implicit_tag
, actx
, tree
, tvb
, offset
,
677 IPAddrBlocks_sequence_of
, hf_index
, ett_pkix1explicit_IPAddrBlocks
);
685 dissect_pkix1explicit_ASId(bool implicit_tag _U_
, tvbuff_t
*tvb _U_
, int offset _U_
, asn1_ctx_t
*actx _U_
, proto_tree
*tree _U_
, int hf_index _U_
) {
686 offset
= dissect_ber_integer(implicit_tag
, actx
, tree
, tvb
, offset
, hf_index
,
693 static const ber_sequence_t ASRange_sequence
[] = {
694 { &hf_pkix1explicit_min_01
, BER_CLASS_UNI
, BER_UNI_TAG_INTEGER
, BER_FLAGS_NOOWNTAG
, dissect_pkix1explicit_ASId
},
695 { &hf_pkix1explicit_max_01
, BER_CLASS_UNI
, BER_UNI_TAG_INTEGER
, BER_FLAGS_NOOWNTAG
, dissect_pkix1explicit_ASId
},
696 { NULL
, 0, 0, 0, NULL
}
700 dissect_pkix1explicit_ASRange(bool implicit_tag _U_
, tvbuff_t
*tvb _U_
, int offset _U_
, asn1_ctx_t
*actx _U_
, proto_tree
*tree _U_
, int hf_index _U_
) {
701 offset
= dissect_ber_sequence(implicit_tag
, actx
, tree
, tvb
, offset
,
702 ASRange_sequence
, hf_index
, ett_pkix1explicit_ASRange
);
708 static const value_string pkix1explicit_ASIdOrRange_vals
[] = {
714 static const ber_choice_t ASIdOrRange_choice
[] = {
715 { 0, &hf_pkix1explicit_id
, BER_CLASS_UNI
, BER_UNI_TAG_INTEGER
, BER_FLAGS_NOOWNTAG
, dissect_pkix1explicit_ASId
},
716 { 1, &hf_pkix1explicit_range
, BER_CLASS_UNI
, BER_UNI_TAG_SEQUENCE
, BER_FLAGS_NOOWNTAG
, dissect_pkix1explicit_ASRange
},
717 { 0, NULL
, 0, 0, 0, NULL
}
721 dissect_pkix1explicit_ASIdOrRange(bool implicit_tag _U_
, tvbuff_t
*tvb _U_
, int offset _U_
, asn1_ctx_t
*actx _U_
, proto_tree
*tree _U_
, int hf_index _U_
) {
722 offset
= dissect_ber_choice(actx
, tree
, tvb
, offset
,
723 ASIdOrRange_choice
, hf_index
, ett_pkix1explicit_ASIdOrRange
,
730 static const ber_sequence_t SEQUENCE_OF_ASIdOrRange_sequence_of
[1] = {
731 { &hf_pkix1explicit_asIdsOrRanges_item
, BER_CLASS_ANY
/*choice*/, -1/*choice*/, BER_FLAGS_NOOWNTAG
|BER_FLAGS_NOTCHKTAG
, dissect_pkix1explicit_ASIdOrRange
},
735 dissect_pkix1explicit_SEQUENCE_OF_ASIdOrRange(bool implicit_tag _U_
, tvbuff_t
*tvb _U_
, int offset _U_
, asn1_ctx_t
*actx _U_
, proto_tree
*tree _U_
, int hf_index _U_
) {
736 offset
= dissect_ber_sequence_of(implicit_tag
, actx
, tree
, tvb
, offset
,
737 SEQUENCE_OF_ASIdOrRange_sequence_of
, hf_index
, ett_pkix1explicit_SEQUENCE_OF_ASIdOrRange
);
743 static const value_string pkix1explicit_ASIdentifierChoice_vals
[] = {
745 { 1, "asIdsOrRanges" },
749 static const ber_choice_t ASIdentifierChoice_choice
[] = {
750 { 0, &hf_pkix1explicit_inherit
, BER_CLASS_UNI
, BER_UNI_TAG_NULL
, BER_FLAGS_NOOWNTAG
, dissect_pkix1explicit_NULL
},
751 { 1, &hf_pkix1explicit_asIdsOrRanges
, BER_CLASS_UNI
, BER_UNI_TAG_SEQUENCE
, BER_FLAGS_NOOWNTAG
, dissect_pkix1explicit_SEQUENCE_OF_ASIdOrRange
},
752 { 0, NULL
, 0, 0, 0, NULL
}
756 dissect_pkix1explicit_ASIdentifierChoice(bool implicit_tag _U_
, tvbuff_t
*tvb _U_
, int offset _U_
, asn1_ctx_t
*actx _U_
, proto_tree
*tree _U_
, int hf_index _U_
) {
757 offset
= dissect_ber_choice(actx
, tree
, tvb
, offset
,
758 ASIdentifierChoice_choice
, hf_index
, ett_pkix1explicit_ASIdentifierChoice
,
765 static const ber_sequence_t ASIdentifiers_sequence
[] = {
766 { &hf_pkix1explicit_asnum
, BER_CLASS_CON
, 0, BER_FLAGS_OPTIONAL
|BER_FLAGS_NOTCHKTAG
, dissect_pkix1explicit_ASIdentifierChoice
},
767 { &hf_pkix1explicit_rdi
, BER_CLASS_CON
, 1, BER_FLAGS_OPTIONAL
|BER_FLAGS_NOTCHKTAG
, dissect_pkix1explicit_ASIdentifierChoice
},
768 { NULL
, 0, 0, 0, NULL
}
772 dissect_pkix1explicit_ASIdentifiers(bool implicit_tag _U_
, tvbuff_t
*tvb _U_
, int offset _U_
, asn1_ctx_t
*actx _U_
, proto_tree
*tree _U_
, int hf_index _U_
) {
773 offset
= dissect_ber_sequence(implicit_tag
, actx
, tree
, tvb
, offset
,
774 ASIdentifiers_sequence
, hf_index
, ett_pkix1explicit_ASIdentifiers
);
781 static int dissect_Extensions_PDU(tvbuff_t
*tvb _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, void *data _U_
) {
784 asn1_ctx_init(&asn1_ctx
, ASN1_ENC_BER
, true, pinfo
);
785 offset
= dissect_pkix1explicit_Extensions(false, tvb
, offset
, &asn1_ctx
, tree
, hf_pkix1explicit_Extensions_PDU
);
788 static int dissect_DomainParameters_PDU(tvbuff_t
*tvb _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, void *data _U_
) {
791 asn1_ctx_init(&asn1_ctx
, ASN1_ENC_BER
, true, pinfo
);
792 offset
= dissect_pkix1explicit_DomainParameters(false, tvb
, offset
, &asn1_ctx
, tree
, hf_pkix1explicit_DomainParameters_PDU
);
795 static int dissect_DirectoryString_PDU(tvbuff_t
*tvb _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, void *data _U_
) {
798 asn1_ctx_init(&asn1_ctx
, ASN1_ENC_BER
, true, pinfo
);
799 offset
= dissect_pkix1explicit_DirectoryString(false, tvb
, offset
, &asn1_ctx
, tree
, hf_pkix1explicit_DirectoryString_PDU
);
802 static int dissect_Features_PDU(tvbuff_t
*tvb _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, void *data _U_
) {
805 asn1_ctx_init(&asn1_ctx
, ASN1_ENC_BER
, true, pinfo
);
806 offset
= dissect_pkix1explicit_Features(false, tvb
, offset
, &asn1_ctx
, tree
, hf_pkix1explicit_Features_PDU
);
809 static int dissect_IPAddrBlocks_PDU(tvbuff_t
*tvb _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, void *data _U_
) {
812 asn1_ctx_init(&asn1_ctx
, ASN1_ENC_BER
, true, pinfo
);
813 offset
= dissect_pkix1explicit_IPAddrBlocks(false, tvb
, offset
, &asn1_ctx
, tree
, hf_pkix1explicit_IPAddrBlocks_PDU
);
816 static int dissect_ASIdentifiers_PDU(tvbuff_t
*tvb _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, void *data _U_
) {
819 asn1_ctx_init(&asn1_ctx
, ASN1_ENC_BER
, true, pinfo
);
820 offset
= dissect_pkix1explicit_ASIdentifiers(false, tvb
, offset
, &asn1_ctx
, tree
, hf_pkix1explicit_ASIdentifiers_PDU
);
826 /*--- proto_register_pkix1explicit ----------------------------------------------*/
827 void proto_register_pkix1explicit(void) {
830 static hf_register_info hf
[] = {
831 { &hf_pkix1explicit_object_identifier_id
,
832 { "Id", "pkix1explicit.id", FT_STRING
, BASE_NONE
, NULL
, 0,
833 "Object identifier Id", HFILL
}},
835 { &hf_pkix1explicit_addressFamily_afn
,
836 { "Address family(AFN)", "pkix1explicit.addressfamily", FT_UINT16
, BASE_DEC
, VALS(afn_vals
), 0,
839 { &hf_pkix1explicit_addressFamily_safi
,
840 { "Subsequent Address Family Identifiers (SAFI)", "pkix1explicit.addressfamily.safi", FT_UINT16
, BASE_DEC
, NULL
, 0,
841 "Subsequent Address Family Identifiers (SAFI) RFC4760", HFILL
}},
842 { &hf_pkix1explicit_Extensions_PDU
,
843 { "Extensions", "pkix1explicit.Extensions",
844 FT_UINT32
, BASE_DEC
, NULL
, 0,
846 { &hf_pkix1explicit_DomainParameters_PDU
,
847 { "DomainParameters", "pkix1explicit.DomainParameters_element",
848 FT_NONE
, BASE_NONE
, NULL
, 0,
850 { &hf_pkix1explicit_DirectoryString_PDU
,
851 { "DirectoryString", "pkix1explicit.DirectoryString",
852 FT_STRING
, BASE_NONE
, NULL
, 0,
854 { &hf_pkix1explicit_Features_PDU
,
855 { "Features", "pkix1explicit.Features",
856 FT_UINT32
, BASE_DEC
, NULL
, 0,
858 { &hf_pkix1explicit_IPAddrBlocks_PDU
,
859 { "IPAddrBlocks", "pkix1explicit.IPAddrBlocks",
860 FT_UINT32
, BASE_DEC
, NULL
, 0,
862 { &hf_pkix1explicit_ASIdentifiers_PDU
,
863 { "ASIdentifiers", "pkix1explicit.ASIdentifiers_element",
864 FT_NONE
, BASE_NONE
, NULL
, 0,
866 { &hf_pkix1explicit_utcTime
,
867 { "utcTime", "pkix1explicit.utcTime",
868 FT_STRING
, BASE_NONE
, NULL
, 0,
870 { &hf_pkix1explicit_generalTime
,
871 { "generalTime", "pkix1explicit.generalTime",
872 FT_ABSOLUTE_TIME
, ABSOLUTE_TIME_LOCAL
, NULL
, 0,
873 "GeneralizedTime", HFILL
}},
874 { &hf_pkix1explicit_Extensions_item
,
875 { "Extension", "pkix1explicit.Extension_element",
876 FT_NONE
, BASE_NONE
, NULL
, 0,
878 { &hf_pkix1explicit_extnId
,
879 { "extnId", "pkix1explicit.extnId",
880 FT_OID
, BASE_NONE
, NULL
, 0,
882 { &hf_pkix1explicit_critical
,
883 { "critical", "pkix1explicit.critical",
884 FT_BOOLEAN
, BASE_NONE
, NULL
, 0,
886 { &hf_pkix1explicit_extnValue
,
887 { "extnValue", "pkix1explicit.extnValue",
888 FT_BYTES
, BASE_NONE
, NULL
, 0,
890 { &hf_pkix1explicit_p
,
891 { "p", "pkix1explicit.p",
892 FT_INT32
, BASE_DEC
, NULL
, 0,
894 { &hf_pkix1explicit_g
,
895 { "g", "pkix1explicit.g",
896 FT_INT32
, BASE_DEC
, NULL
, 0,
898 { &hf_pkix1explicit_q
,
899 { "q", "pkix1explicit.q",
900 FT_INT32
, BASE_DEC
, NULL
, 0,
902 { &hf_pkix1explicit_j
,
903 { "j", "pkix1explicit.j",
904 FT_INT32
, BASE_DEC
, NULL
, 0,
906 { &hf_pkix1explicit_validationParms
,
907 { "validationParms", "pkix1explicit.validationParms_element",
908 FT_NONE
, BASE_NONE
, NULL
, 0,
910 { &hf_pkix1explicit_seed
,
911 { "seed", "pkix1explicit.seed",
912 FT_BYTES
, BASE_NONE
, NULL
, 0,
913 "BIT_STRING", HFILL
}},
914 { &hf_pkix1explicit_pgenCounter
,
915 { "pgenCounter", "pkix1explicit.pgenCounter",
916 FT_INT32
, BASE_DEC
, NULL
, 0,
918 { &hf_pkix1explicit_type
,
919 { "type", "pkix1explicit.type",
920 FT_OID
, BASE_NONE
, NULL
, 0,
922 { &hf_pkix1explicit_values
,
923 { "values", "pkix1explicit.values",
924 FT_UINT32
, BASE_DEC
, NULL
, 0,
926 { &hf_pkix1explicit_values_item
,
927 { "values item", "pkix1explicit.values_item_element",
928 FT_NONE
, BASE_NONE
, NULL
, 0,
930 { &hf_pkix1explicit_type_01
,
931 { "type", "pkix1explicit.type",
932 FT_OID
, BASE_NONE
, NULL
, 0,
933 "T_type_01", HFILL
}},
934 { &hf_pkix1explicit_value
,
935 { "value", "pkix1explicit.value_element",
936 FT_NONE
, BASE_NONE
, NULL
, 0,
938 { &hf_pkix1explicit_RDNSequence_item
,
939 { "RelativeDistinguishedName", "pkix1explicit.RelativeDistinguishedName",
940 FT_UINT32
, BASE_DEC
, NULL
, 0,
942 { &hf_pkix1explicit_RelativeDistinguishedName_item
,
943 { "AttributeTypeAndValue", "pkix1explicit.AttributeTypeAndValue_element",
944 FT_NONE
, BASE_NONE
, NULL
, 0,
946 { &hf_pkix1explicit_type_02
,
947 { "type", "pkix1explicit.type",
948 FT_STRING
, BASE_NONE
, NULL
, 0,
949 "TeletexString", HFILL
}},
950 { &hf_pkix1explicit_value_01
,
951 { "value", "pkix1explicit.value",
952 FT_STRING
, BASE_NONE
, NULL
, 0,
953 "TeletexString", HFILL
}},
954 { &hf_pkix1explicit_Features_item
,
955 { "Features item", "pkix1explicit.Features_item",
956 FT_UINT16
, BASE_DEC
, VALS(tls_hello_extension_types
), 0,
957 "TLS Extension that MUST be supported by the server", HFILL
}},
958 { &hf_pkix1explicit_IPAddrBlocks_item
,
959 { "IPAddressFamily", "pkix1explicit.IPAddressFamily_element",
960 FT_NONE
, BASE_NONE
, NULL
, 0,
962 { &hf_pkix1explicit_addressFamily
,
963 { "addressFamily", "pkix1explicit.addressFamily",
964 FT_BYTES
, BASE_NONE
, NULL
, 0,
966 { &hf_pkix1explicit_ipAddressChoice
,
967 { "ipAddressChoice", "pkix1explicit.ipAddressChoice",
968 FT_UINT32
, BASE_DEC
, VALS(pkix1explicit_IPAddressChoice_vals
), 0,
970 { &hf_pkix1explicit_inherit
,
971 { "inherit", "pkix1explicit.inherit_element",
972 FT_NONE
, BASE_NONE
, NULL
, 0,
974 { &hf_pkix1explicit_addressesOrRanges
,
975 { "addressesOrRanges", "pkix1explicit.addressesOrRanges",
976 FT_UINT32
, BASE_DEC
, NULL
, 0,
977 "SEQUENCE_OF_IPAddressOrRange", HFILL
}},
978 { &hf_pkix1explicit_addressesOrRanges_item
,
979 { "IPAddressOrRange", "pkix1explicit.IPAddressOrRange",
980 FT_UINT32
, BASE_DEC
, VALS(pkix1explicit_IPAddressOrRange_vals
), 0,
982 { &hf_pkix1explicit_addressPrefix
,
983 { "addressPrefix", "pkix1explicit.addressPrefix",
984 FT_BYTES
, BASE_NONE
, NULL
, 0,
985 "IPAddress", HFILL
}},
986 { &hf_pkix1explicit_addressRange
,
987 { "addressRange", "pkix1explicit.addressRange_element",
988 FT_NONE
, BASE_NONE
, NULL
, 0,
989 "IPAddressRange", HFILL
}},
990 { &hf_pkix1explicit_min
,
991 { "min", "pkix1explicit.min",
992 FT_BYTES
, BASE_NONE
, NULL
, 0,
993 "IPAddress", HFILL
}},
994 { &hf_pkix1explicit_max
,
995 { "max", "pkix1explicit.max",
996 FT_BYTES
, BASE_NONE
, NULL
, 0,
997 "IPAddress", HFILL
}},
998 { &hf_pkix1explicit_asnum
,
999 { "asnum", "pkix1explicit.asnum",
1000 FT_UINT32
, BASE_DEC
, VALS(pkix1explicit_ASIdentifierChoice_vals
), 0,
1001 "ASIdentifierChoice", HFILL
}},
1002 { &hf_pkix1explicit_rdi
,
1003 { "rdi", "pkix1explicit.rdi",
1004 FT_UINT32
, BASE_DEC
, VALS(pkix1explicit_ASIdentifierChoice_vals
), 0,
1005 "ASIdentifierChoice", HFILL
}},
1006 { &hf_pkix1explicit_asIdsOrRanges
,
1007 { "asIdsOrRanges", "pkix1explicit.asIdsOrRanges",
1008 FT_UINT32
, BASE_DEC
, NULL
, 0,
1009 "SEQUENCE_OF_ASIdOrRange", HFILL
}},
1010 { &hf_pkix1explicit_asIdsOrRanges_item
,
1011 { "ASIdOrRange", "pkix1explicit.ASIdOrRange",
1012 FT_UINT32
, BASE_DEC
, VALS(pkix1explicit_ASIdOrRange_vals
), 0,
1014 { &hf_pkix1explicit_id
,
1015 { "id", "pkix1explicit.id",
1016 FT_INT32
, BASE_DEC
, NULL
, 0,
1018 { &hf_pkix1explicit_range
,
1019 { "range", "pkix1explicit.range_element",
1020 FT_NONE
, BASE_NONE
, NULL
, 0,
1021 "ASRange", HFILL
}},
1022 { &hf_pkix1explicit_min_01
,
1023 { "min", "pkix1explicit.min",
1024 FT_INT32
, BASE_DEC
, NULL
, 0,
1026 { &hf_pkix1explicit_max_01
,
1027 { "max", "pkix1explicit.max",
1028 FT_INT32
, BASE_DEC
, NULL
, 0,
1032 /* List of subtrees */
1033 static int *ett
[] = {
1034 &ett_pkix1explicit_addressFamily
,
1035 &ett_pkix1explicit_Time
,
1036 &ett_pkix1explicit_Extensions
,
1037 &ett_pkix1explicit_Extension
,
1038 &ett_pkix1explicit_DomainParameters
,
1039 &ett_pkix1explicit_ValidationParms
,
1040 &ett_pkix1explicit_Attribute
,
1041 &ett_pkix1explicit_T_values
,
1042 &ett_pkix1explicit_AttributeTypeAndValue
,
1043 &ett_pkix1explicit_RDNSequence
,
1044 &ett_pkix1explicit_RelativeDistinguishedName
,
1045 &ett_pkix1explicit_TeletexDomainDefinedAttribute
,
1046 &ett_pkix1explicit_Features
,
1047 &ett_pkix1explicit_IPAddrBlocks
,
1048 &ett_pkix1explicit_IPAddressFamily
,
1049 &ett_pkix1explicit_IPAddressChoice
,
1050 &ett_pkix1explicit_SEQUENCE_OF_IPAddressOrRange
,
1051 &ett_pkix1explicit_IPAddressOrRange
,
1052 &ett_pkix1explicit_IPAddressRange
,
1053 &ett_pkix1explicit_ASIdentifiers
,
1054 &ett_pkix1explicit_ASIdentifierChoice
,
1055 &ett_pkix1explicit_SEQUENCE_OF_ASIdOrRange
,
1056 &ett_pkix1explicit_ASIdOrRange
,
1057 &ett_pkix1explicit_ASRange
,
1060 /* Register protocol */
1061 proto_pkix1explicit
= proto_register_protocol(PNAME
, PSNAME
, PFNAME
);
1063 /* Register fields and subtrees */
1064 proto_register_field_array(proto_pkix1explicit
, hf
, array_length(hf
));
1065 proto_register_subtree_array(ett
, array_length(ett
));
1070 /*--- proto_reg_handoff_pkix1explicit -------------------------------------------*/
1071 void proto_reg_handoff_pkix1explicit(void) {
1072 oid_add_from_string("id-pkix","1.3.6.1.5.5.7");
1073 oid_add_from_string("id-dsa-with-sha1","1.2.840.10040.4.3");
1074 register_ber_oid_dissector("1.3.6.1.5.5.7.2.1", dissect_DirectoryString_PDU
, proto_pkix1explicit
, "id-qt-cps");
1075 register_ber_oid_dissector("1.2.840.10046.2.1", dissect_DomainParameters_PDU
, proto_pkix1explicit
, "dhpublicnumber");
1076 register_ber_oid_dissector("1.3.6.1.5.5.7.1.7", dissect_IPAddrBlocks_PDU
, proto_pkix1explicit
, "id-pe-ipAddrBlocks");
1077 register_ber_oid_dissector("1.3.6.1.5.5.7.1.8", dissect_ASIdentifiers_PDU
, proto_pkix1explicit
, "id-pe-autonomousSysIds");
1078 register_ber_oid_dissector("1.3.6.1.5.5.7.1.24", dissect_Features_PDU
, proto_pkix1explicit
, "id-pe-tlsfeature");
1079 register_ber_oid_dissector("1.2.840.113549.1.9.7", dissect_DirectoryString_PDU
, proto_pkix1explicit
, "pkcs-9-at-challengePassword");
1080 register_ber_oid_dissector("1.2.840.113549.1.9.14", dissect_Extensions_PDU
, proto_pkix1explicit
, "pkcs-9-at-extensionRequest");