summaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-app-pkix-cert.c
diff options
context:
space:
mode:
Diffstat (limited to 'epan/dissectors/packet-app-pkix-cert.c')
-rw-r--r--epan/dissectors/packet-app-pkix-cert.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/epan/dissectors/packet-app-pkix-cert.c b/epan/dissectors/packet-app-pkix-cert.c
index 9c8a5f2c..3442e075 100644
--- a/epan/dissectors/packet-app-pkix-cert.c
+++ b/epan/dissectors/packet-app-pkix-cert.c
@@ -27,12 +27,12 @@ void proto_reg_handoff_cert(void);
static dissector_handle_t cert_handle;
/* Initialize the protocol and registered fields */
-static int proto_cert = -1;
+static int proto_cert;
-static gint hf_cert = -1;
+static int hf_cert;
/* Initialize the subtree pointers */
-static gint ett_cert = -1;
+static int ett_cert;
static int
@@ -41,7 +41,7 @@ dissect_cert(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U_
proto_tree *subtree = NULL;
proto_item *ti;
asn1_ctx_t asn1_ctx;
- asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo);
+ asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, true, pinfo);
col_append_sep_str(pinfo->cinfo, COL_INFO, " ", "(application/pkix-cert)");
@@ -50,7 +50,7 @@ dissect_cert(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U_
subtree = proto_item_add_subtree(ti, ett_cert);
}
- dissect_x509af_Certificate(FALSE, tvb, 0, &asn1_ctx, subtree, hf_cert);
+ dissect_x509af_Certificate(false, tvb, 0, &asn1_ctx, subtree, hf_cert);
return tvb_captured_length(tvb);
}
@@ -73,7 +73,7 @@ proto_register_cert(void)
};
/* Setup protocol subtree array */
- static gint *ett[] = {
+ static int *ett[] = {
&ett_cert,
};