From 840f4231f8b916fdc69373f9e9da87c6cc4933ea Mon Sep 17 00:00:00 2001 From: gal Date: Fri, 17 Aug 2007 19:16:51 +0000 Subject: Faked BMP string display. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@22536 f5534014-38df-0310-8fa8-9805f1628bb7 --- asn1/x509sat/x509sat-exp.cnf | 2 +- asn1/x509sat/x509sat.cnf | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) (limited to 'asn1/x509sat') diff --git a/asn1/x509sat/x509sat-exp.cnf b/asn1/x509sat/x509sat-exp.cnf index 9be756f641..6def1c478d 100644 --- a/asn1/x509sat/x509sat-exp.cnf +++ b/asn1/x509sat/x509sat-exp.cnf @@ -1,6 +1,6 @@ # Do not modify this file. # It is created automatically by the ASN.1 to Wireshark dissector compiler -# .\x509sat-exp.cnf +# ./x509sat-exp.cnf # ../../tools/asn2wrs.py -b -e -p x509sat -c x509sat.cnf -s packet-x509sat-template SelectedAttributeTypes.asn #.MODULE diff --git a/asn1/x509sat/x509sat.cnf b/asn1/x509sat/x509sat.cnf index 6a03972a29..21d312c043 100644 --- a/asn1/x509sat/x509sat.cnf +++ b/asn1/x509sat/x509sat.cnf @@ -286,6 +286,21 @@ XDayOf/third third_dayof XDayOf/fourth fourth_dayof XDayOf/fifth fifth_dayof +#.FN_PARS SyntaxBMPString VAL_PTR = &wide_tvb + +#.FN_HDR SyntaxBMPString + tvbuff_t *wide_tvb; + proto_item *item; + char *string; +#.END + +#.FN_FTR SyntaxBMPString + item = get_ber_last_created_item(); + string = tvb_get_ephemeral_faked_unicode (wide_tvb, 0, tvb_length(wide_tvb) / 2, FALSE); + proto_item_append_text(item, " %s", string); + +#.END + #.END -- cgit v1.2.3