aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-ns_cert_exts.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2005-09-02 05:43:49 +0000
committerGuy Harris <guy@alum.mit.edu>2005-09-02 05:43:49 +0000
commit92e0e21362bc97ab4e2eed26d1d89b499b0c54e3 (patch)
tree21ba9cbe793a11438cc24115cd4e21aad03ad513 /epan/dissectors/packet-ns_cert_exts.c
parentb9c5fe14d611d5459431cc8f407fd8352493bff6 (diff)
Regenerate dissectors with the current asn2eth.
svn path=/trunk/; revision=15664
Diffstat (limited to 'epan/dissectors/packet-ns_cert_exts.c')
-rw-r--r--epan/dissectors/packet-ns_cert_exts.c81
1 files changed, 45 insertions, 36 deletions
diff --git a/epan/dissectors/packet-ns_cert_exts.c b/epan/dissectors/packet-ns_cert_exts.c
index 4be6beb582..9a13d01bfd 100644
--- a/epan/dissectors/packet-ns_cert_exts.c
+++ b/epan/dissectors/packet-ns_cert_exts.c
@@ -1,12 +1,13 @@
/* Do not modify this file. */
/* It is created automatically by the ASN.1 to Ethereal dissector compiler */
/* ./packet-ns_cert_exts.c */
-/* ../../tools/asn2eth.py -X -b -p ns_cert_exts -c ns_cert_exts.cnf -s packet-ns_cert_exts-template NETSCAPE-CERT-EXTS.asn */
+/* ../../tools/asn2eth.py -X -b -e -p ns_cert_exts -c ns_cert_exts.cnf -s packet-ns_cert_exts-template NETSCAPE-CERT-EXTS.asn */
/* Input file: packet-ns_cert_exts-template.c */
/* packet-ns_cert_exts.c
* Routines for NetScape Certificate Extensions packet dissection
+ * Ronnie Sahlberg 2004
*
* $Id$
*
@@ -83,87 +84,95 @@ static gint ett_ns_cert_exts_CertType = -1;
+
static int
-dissect_ns_cert_exts_BaseUrl(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index) {
+dissect_ns_cert_exts_BaseUrl(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
offset = dissect_ber_restricted_string(implicit_tag, BER_UNI_TAG_IA5String,
- pinfo, tree, tvb, offset, hf_index,
- NULL);
+ pinfo, tree, tvb, offset, hf_index,
+ NULL);
return offset;
}
+
static int
-dissect_ns_cert_exts_RevocationUrl(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index) {
+dissect_ns_cert_exts_RevocationUrl(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
offset = dissect_ber_restricted_string(implicit_tag, BER_UNI_TAG_IA5String,
- pinfo, tree, tvb, offset, hf_index,
- NULL);
+ pinfo, tree, tvb, offset, hf_index,
+ NULL);
return offset;
}
+
static int
-dissect_ns_cert_exts_CaRevocationUrl(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index) {
+dissect_ns_cert_exts_CaRevocationUrl(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
offset = dissect_ber_restricted_string(implicit_tag, BER_UNI_TAG_IA5String,
- pinfo, tree, tvb, offset, hf_index,
- NULL);
+ pinfo, tree, tvb, offset, hf_index,
+ NULL);
return offset;
}
+
static int
-dissect_ns_cert_exts_CaPolicyUrl(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index) {
+dissect_ns_cert_exts_CaPolicyUrl(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
offset = dissect_ber_restricted_string(implicit_tag, BER_UNI_TAG_IA5String,
- pinfo, tree, tvb, offset, hf_index,
- NULL);
+ pinfo, tree, tvb, offset, hf_index,
+ NULL);
return offset;
}
+
static int
-dissect_ns_cert_exts_Comment(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index) {
+dissect_ns_cert_exts_Comment(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
offset = dissect_ber_restricted_string(implicit_tag, BER_UNI_TAG_IA5String,
- pinfo, tree, tvb, offset, hf_index,
- NULL);
+ pinfo, tree, tvb, offset, hf_index,
+ NULL);
return offset;
}
+
static int
-dissect_ns_cert_exts_SslServerName(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index) {
+dissect_ns_cert_exts_SslServerName(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
offset = dissect_ber_restricted_string(implicit_tag, BER_UNI_TAG_IA5String,
- pinfo, tree, tvb, offset, hf_index,
- NULL);
+ pinfo, tree, tvb, offset, hf_index,
+ NULL);
return offset;
}
+
static int
-dissect_ns_cert_exts_CertRenewalUrl(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index) {
+dissect_ns_cert_exts_CertRenewalUrl(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
offset = dissect_ber_restricted_string(implicit_tag, BER_UNI_TAG_IA5String,
- pinfo, tree, tvb, offset, hf_index,
- NULL);
+ pinfo, tree, tvb, offset, hf_index,
+ NULL);
return offset;
}
+
static const asn_namedbit CertType_bits[] = {
- { 0, &hf_ns_cert_exts_CertType_client, -1, -1, NULL, NULL },
- { 1, &hf_ns_cert_exts_CertType_server, -1, -1, NULL, NULL },
- { 5, &hf_ns_cert_exts_CertType_ca, -1, -1, NULL, NULL },
+ { 0, &hf_ns_cert_exts_CertType_client, -1, -1, "client", NULL },
+ { 1, &hf_ns_cert_exts_CertType_server, -1, -1, "server", NULL },
+ { 5, &hf_ns_cert_exts_CertType_ca, -1, -1, "ca", NULL },
{ 0, NULL, 0, 0, NULL, NULL }
};
static int
-dissect_ns_cert_exts_CertType(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index) {
+dissect_ns_cert_exts_CertType(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
offset = dissect_ber_bitstring(implicit_tag, pinfo, tree, tvb, offset,
- CertType_bits, hf_index, ett_ns_cert_exts_CertType,
- NULL);
+ CertType_bits, hf_index, ett_ns_cert_exts_CertType,
+ NULL);
return offset;
}
@@ -283,14 +292,14 @@ void proto_reg_handoff_ns_cert_exts(void) {
/*--- Included file: packet-ns_cert_exts-dis-tab.c ---*/
- register_ber_oid_dissector("2.16.840.1.113730.1.1", dissect_CertType_PDU, proto_ns_cert_exts, "ns-cert-exts.cert_type");
- register_ber_oid_dissector("2.16.840.1.113730.1.2", dissect_BaseUrl_PDU, proto_ns_cert_exts, "ns-cert-exts.base_url");
- register_ber_oid_dissector("2.16.840.1.113730.1.3", dissect_RevocationUrl_PDU, proto_ns_cert_exts, "ns-cert-exts.revocation-url");
- register_ber_oid_dissector("2.16.840.1.113730.1.4", dissect_CaRevocationUrl_PDU, proto_ns_cert_exts, "ns-cert-exts.ca-revocation-url");
- register_ber_oid_dissector("2.16.840.1.113730.1.7", dissect_CertRenewalUrl_PDU, proto_ns_cert_exts, "ns-cert-exts.cert-renewal-url");
- register_ber_oid_dissector("2.16.840.1.113730.1.8", dissect_CaPolicyUrl_PDU, proto_ns_cert_exts, "ns-cert-exts.ca-policy-url");
- register_ber_oid_dissector("2.16.840.1.113730.1.12", dissect_SslServerName_PDU, proto_ns_cert_exts, "ns-cert-exts.ssl-server-name");
- register_ber_oid_dissector("2.16.840.1.113730.1.13", dissect_Comment_PDU, proto_ns_cert_exts, "ns-cert-exts.comment");
+ register_ber_oid_dissector("2.16.840.1.113730.1.1", dissect_CertType_PDU, proto_ns_cert_exts, "ns-cert-exts.cert_type");
+ register_ber_oid_dissector("2.16.840.1.113730.1.2", dissect_BaseUrl_PDU, proto_ns_cert_exts, "ns-cert-exts.base_url");
+ register_ber_oid_dissector("2.16.840.1.113730.1.3", dissect_RevocationUrl_PDU, proto_ns_cert_exts, "ns-cert-exts.revocation-url");
+ register_ber_oid_dissector("2.16.840.1.113730.1.4", dissect_CaRevocationUrl_PDU, proto_ns_cert_exts, "ns-cert-exts.ca-revocation-url");
+ register_ber_oid_dissector("2.16.840.1.113730.1.7", dissect_CertRenewalUrl_PDU, proto_ns_cert_exts, "ns-cert-exts.cert-renewal-url");
+ register_ber_oid_dissector("2.16.840.1.113730.1.8", dissect_CaPolicyUrl_PDU, proto_ns_cert_exts, "ns-cert-exts.ca-policy-url");
+ register_ber_oid_dissector("2.16.840.1.113730.1.12", dissect_SslServerName_PDU, proto_ns_cert_exts, "ns-cert-exts.ssl-server-name");
+ register_ber_oid_dissector("2.16.840.1.113730.1.13", dissect_Comment_PDU, proto_ns_cert_exts, "ns-cert-exts.comment");
/*--- End of included file: packet-ns_cert_exts-dis-tab.c ---*/