/* Input file: packet-x509af-template.c */
+#line 1 "packet-x509af-template.c"
/* packet-x509af.c
* Routines for X.509 Authentication Framework packet dissection
* Ronnie Sahlberg 2004
static int hf_x509af_extension_id = -1;
/*--- Included file: packet-x509af-hf.c ---*/
-
+#line 1 "packet-x509af-hf.c"
static int hf_x509af_Certificate_PDU = -1; /* Certificate */
static int hf_x509af_CertificatePair_PDU = -1; /* CertificatePair */
static int hf_x509af_CertificateList_PDU = -1; /* CertificateList */
static int hf_x509af_g = -1; /* INTEGER */
/*--- End of included file: packet-x509af-hf.c ---*/
-
+#line 52 "packet-x509af-template.c"
/* Initialize the subtree pointers */
static gint ett_pkix_crl = -1;
/*--- Included file: packet-x509af-ett.c ---*/
-
+#line 1 "packet-x509af-ett.c"
static gint ett_x509af_Certificate = -1;
static gint ett_x509af_T_signedCertificate = -1;
static gint ett_x509af_SubjectName = -1;
static gint ett_x509af_DSS_Params = -1;
/*--- End of included file: packet-x509af-ett.c ---*/
-
+#line 56 "packet-x509af-template.c"
static const char *algorithm_id;
static const char *extension_id;
/*--- Included file: packet-x509af-fn.c ---*/
-
+#line 1 "packet-x509af-fn.c"
/*--- Fields for imported types ---*/
static int dissect_issuer(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
static int
dissect_x509af_T_algorithmId(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
- char *name;
+#line 74 "x509af.cnf"
+ const char *name;
offset = dissect_ber_object_identifier_str(implicit_tag, pinfo, tree, tvb, offset, hf_x509af_algorithm_id, &algorithm_id);
}
+
return offset;
}
static int dissect_algorithmId(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
static int
dissect_x509af_T_parameters(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
+#line 85 "x509af.cnf"
offset=call_ber_oid_callback(algorithm_id, tvb, offset, pinfo, tree);
+
return offset;
}
static int dissect_parameters(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
static int
dissect_x509af_SubjectName(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
+#line 112 "x509af.cnf"
offset = dissect_ber_choice(pinfo, tree, tvb, offset,
SubjectName_choice, hf_index, ett_x509af_SubjectName,
proto_item_append_text(proto_item_get_parent(tree), " (%s)", x509if_get_last_dn());
+
return offset;
}
static int dissect_subject(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
static int
dissect_x509af_T_extnId(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
- char *name;
+#line 91 "x509af.cnf"
+ const char *name;
offset = dissect_ber_object_identifier_str(implicit_tag, pinfo, tree, tvb, offset, hf_x509af_extension_id, &extension_id);
}
+
return offset;
}
static int dissect_extnId(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
static int
dissect_x509af_T_extnValue(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
+#line 102 "x509af.cnf"
gint8 class;
gboolean pc, ind;
gint32 tag;
offset=call_ber_oid_callback(extension_id, tvb, offset, pinfo, tree);
+
return offset;
}
static int dissect_extnValue(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
/*--- End of included file: packet-x509af-fn.c ---*/
-
+#line 61 "packet-x509af-template.c"
const char *x509af_get_last_algorithm_id(void) {
return algorithm_id;
"Extension Id", HFILL }},
/*--- Included file: packet-x509af-hfarr.c ---*/
-
+#line 1 "packet-x509af-hfarr.c"
{ &hf_x509af_Certificate_PDU,
{ "Certificate", "x509af.Certificate",
FT_NONE, BASE_NONE, NULL, 0,
"SubjectName/rdnSequence", HFILL }},
{ &hf_x509af_algorithmId,
{ "algorithmId", "x509af.algorithmId",
- FT_STRING, BASE_NONE, NULL, 0,
+ FT_OID, BASE_NONE, NULL, 0,
"AlgorithmIdentifier/algorithmId", HFILL }},
{ &hf_x509af_parameters,
{ "parameters", "x509af.parameters",
"Extensions/_item", HFILL }},
{ &hf_x509af_extnId,
{ "extnId", "x509af.extnId",
- FT_STRING, BASE_NONE, NULL, 0,
+ FT_OID, BASE_NONE, NULL, 0,
"Extension/extnId", HFILL }},
{ &hf_x509af_critical,
{ "critical", "x509af.critical",
"DSS-Params/g", HFILL }},
/*--- End of included file: packet-x509af-hfarr.c ---*/
-
+#line 105 "packet-x509af-template.c"
};
/* List of subtrees */
&ett_pkix_crl,
/*--- Included file: packet-x509af-ettarr.c ---*/
-
+#line 1 "packet-x509af-ettarr.c"
&ett_x509af_Certificate,
&ett_x509af_T_signedCertificate,
&ett_x509af_SubjectName,
&ett_x509af_DSS_Params,
/*--- End of included file: packet-x509af-ettarr.c ---*/
-
+#line 111 "packet-x509af-template.c"
};
/* Register protocol */
/*--- Included file: packet-x509af-dis-tab.c ---*/
-
+#line 1 "packet-x509af-dis-tab.c"
register_ber_oid_dissector("2.5.4.36", dissect_Certificate_PDU, proto_x509af, "id-at-userCertificate");
register_ber_oid_dissector("2.5.4.37", dissect_Certificate_PDU, proto_x509af, "id-at-cAcertificate");
register_ber_oid_dissector("2.5.4.38", dissect_CertificateList_PDU, proto_x509af, "id-at-authorityRevocationList");
/*--- End of included file: packet-x509af-dis-tab.c ---*/
-
+#line 131 "packet-x509af-template.c"
/*XXX these should really go to a better place but since that
I have not that ITU standard, ill put it here for the time