aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-x509af.c
diff options
context:
space:
mode:
authorRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2005-06-26 05:48:50 +0000
committerRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2005-06-26 05:48:50 +0000
commit3a51ba4293f6d98309471aeee7f2b1010c96b7cb (patch)
tree1bfaf8b92a640262162e7f0432a43a84d0381e6d /epan/dissectors/packet-x509af.c
parentcc3b0df4caeb0c7ba1e168e5b91837e1c5243929 (diff)
make dissect_ber_choice take a guint* that will return the
index of the branch taken or -1 to make prettifications easier to implement. change the signature of dissect_ber_choice and rename it to dissect_ber_CHOICE to catch all occurences of the use of this function update asn2eth to use the new name/signature update all occurences of this function to the new name and new signature. svn path=/trunk/; revision=14758
Diffstat (limited to 'epan/dissectors/packet-x509af.c')
-rw-r--r--epan/dissectors/packet-x509af.c22
1 files changed, 13 insertions, 9 deletions
diff --git a/epan/dissectors/packet-x509af.c b/epan/dissectors/packet-x509af.c
index 172177ad40..84faf800c0 100644
--- a/epan/dissectors/packet-x509af.c
+++ b/epan/dissectors/packet-x509af.c
@@ -9,7 +9,7 @@
* Routines for X.509 Authentication Framework packet dissection
* Ronnie Sahlberg 2004
*
- * $Id: packet-x509af-template.c 12624 2004-11-30 04:08:16Z sahlberg $
+ * $Id: packet-x509af-template.c 14169 2005-04-22 21:17:13Z gerald $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -229,7 +229,8 @@ const value_string x509af_Version_vals[] = {
int
dissect_x509af_Version(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
- offset = dissect_ber_integer(implicit_tag, pinfo, tree, tvb, offset, hf_index, NULL);
+ offset = dissect_ber_integer(implicit_tag, pinfo, tree, tvb, offset, hf_index,
+ NULL);
return offset;
}
@@ -241,7 +242,8 @@ static int dissect_version(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb,
int
dissect_x509af_CertificateSerialNumber(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
- offset = dissect_ber_integer(implicit_tag, pinfo, tree, tvb, offset, hf_index, NULL);
+ offset = dissect_ber_integer(implicit_tag, pinfo, tree, tvb, offset, hf_index,
+ NULL);
return offset;
}
@@ -256,6 +258,7 @@ static int dissect_serial(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, i
}
+
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_) {
offset = dissect_ber_object_identifier(FALSE, pinfo, tree, tvb, offset,
@@ -352,8 +355,8 @@ static const ber_choice_t Time_choice[] = {
int
dissect_x509af_Time(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
- offset = dissect_ber_choice(pinfo, tree, tvb, offset,
- Time_choice, hf_index, ett_x509af_Time);
+ offset = dissect_ber_CHOICE(pinfo, tree, tvb, offset,
+ Time_choice, hf_index, ett_x509af_Time, NULL);
return offset;
}
@@ -424,6 +427,7 @@ static int dissect_subjectPublicKeyInfo(packet_info *pinfo, proto_tree *tree, tv
}
+
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_) {
offset = dissect_ber_object_identifier(FALSE, pinfo, tree, tvb, offset,
@@ -753,8 +757,8 @@ static const ber_choice_t InfoSubject_choice[] = {
static int
dissect_x509af_InfoSubject(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
- offset = dissect_ber_choice(pinfo, tree, tvb, offset,
- InfoSubject_choice, hf_index, ett_x509af_InfoSubject);
+ offset = dissect_ber_CHOICE(pinfo, tree, tvb, offset,
+ InfoSubject_choice, hf_index, ett_x509af_InfoSubject, NULL);
return offset;
}
@@ -897,8 +901,8 @@ static const ber_choice_t AssertionSubject_choice[] = {
static int
dissect_x509af_AssertionSubject(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
- offset = dissect_ber_choice(pinfo, tree, tvb, offset,
- AssertionSubject_choice, hf_index, ett_x509af_AssertionSubject);
+ offset = dissect_ber_CHOICE(pinfo, tree, tvb, offset,
+ AssertionSubject_choice, hf_index, ett_x509af_AssertionSubject, NULL);
return offset;
}