diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-09-19 04:14:33 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-09-19 04:14:33 +0000 |
commit | 9f153fbfec0fb9c9ce38e749a7c6f4a5e115d4e9 (patch) | |
tree | 2784370cda9bbf2da9114d70f05399c0b229d28c /epan/dissectors/asn1/tcg-cp-oids | |
parent | Adding debian version 4.2.6-1. (diff) | |
download | wireshark-9f153fbfec0fb9c9ce38e749a7c6f4a5e115d4e9.tar.xz wireshark-9f153fbfec0fb9c9ce38e749a7c6f4a5e115d4e9.zip |
Merging upstream version 4.4.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'epan/dissectors/asn1/tcg-cp-oids')
-rw-r--r-- | epan/dissectors/asn1/tcg-cp-oids/packet-tcg-cp-oids-template.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/epan/dissectors/asn1/tcg-cp-oids/packet-tcg-cp-oids-template.c b/epan/dissectors/asn1/tcg-cp-oids/packet-tcg-cp-oids-template.c index ab8bc3d2..3dc0e33f 100644 --- a/epan/dissectors/asn1/tcg-cp-oids/packet-tcg-cp-oids-template.c +++ b/epan/dissectors/asn1/tcg-cp-oids/packet-tcg-cp-oids-template.c @@ -12,6 +12,7 @@ #include <epan/packet.h> #include <epan/oids.h> #include <epan/asn1.h> +#include <wsutil/array.h> #include "packet-tcg-cp-oids.h" #include "packet-ber.h" @@ -26,9 +27,9 @@ void proto_register_tcg_cp_oids(void); void proto_reg_handoff_tcg_cp_oids(void); /* Initialize the protocol and registered fields */ -static int proto_tcg_cp_oids = -1; +static int proto_tcg_cp_oids; #include "packet-tcg-cp-oids-hf.c" -static int hf_tcg_cp_oids_UTF8String_PDU = -1; +static int hf_tcg_cp_oids_UTF8String_PDU; /* Initialize the subtree pointers */ #include "packet-tcg-cp-oids-ett.c" @@ -48,7 +49,7 @@ void proto_register_tcg_cp_oids(void) { }; /* List of subtrees */ - static gint *ett[] = { + static int *ett[] = { #include "packet-tcg-cp-oids-ettarr.c" }; @@ -65,8 +66,8 @@ static int dissect_tcg_cp_oids_UTF8String_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) { int offset = 0; asn1_ctx_t actx; - asn1_ctx_init(&actx, ASN1_ENC_BER, TRUE, pinfo); - offset = dissect_ber_restricted_string(FALSE, BER_UNI_TAG_UTF8String, &actx, tree, tvb, offset, hf_tcg_cp_oids_UTF8String_PDU, NULL); + asn1_ctx_init(&actx, ASN1_ENC_BER, true, pinfo); + offset = dissect_ber_restricted_string(false, BER_UNI_TAG_UTF8String, &actx, tree, tvb, offset, hf_tcg_cp_oids_UTF8String_PDU, NULL); return offset; } |