aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-x509ce.c
diff options
context:
space:
mode:
authorGraeme Lunt <graeme.lunt@smhs.co.uk>2006-09-30 14:37:09 +0000
committerGraeme Lunt <graeme.lunt@smhs.co.uk>2006-09-30 14:37:09 +0000
commit23937f82c789bd319755801642c154ba0c61d19f (patch)
tree3ad573d612af222181b20d12c872834b8d10d3a1 /epan/dissectors/packet-x509ce.c
parent3da46255fe9dddfad518329fc9e9a33227f8ec2f (diff)
A new field information flag, FI_URL, to indicate a field contains a URL.
This is used to display the field underlined and to allow the user to double-click on it (like FT_FRAMENUM) to open the URL in the configured browser. Example usage in the x509ce and logotype certificate extensions. svn path=/trunk/; revision=19383
Diffstat (limited to 'epan/dissectors/packet-x509ce.c')
-rw-r--r--epan/dissectors/packet-x509ce.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/epan/dissectors/packet-x509ce.c b/epan/dissectors/packet-x509ce.c
index 5fe3523782..75d9b4c9b5 100644
--- a/epan/dissectors/packet-x509ce.c
+++ b/epan/dissectors/packet-x509ce.c
@@ -1,6 +1,6 @@
/* Do not modify this file. */
/* It is created automatically by the ASN.1 to Wireshark dissector compiler */
-/* .\packet-x509ce.c */
+/* ./packet-x509ce.c */
/* ../../tools/asn2wrs.py -b -e -p x509ce -c x509ce.cnf -s packet-x509ce-template CertificateExtensions.asn */
/* Input file: packet-x509ce-template.c */
@@ -386,6 +386,11 @@ dissect_x509ce_IA5String(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, p
pinfo, tree, tvb, offset, hf_index,
NULL);
+#line 123 "x509ce.cnf"
+ if(hf_index == hf_x509ce_uniformResourceIdentifier)
+ PROTO_ITEM_SET_URL(get_ber_last_created_item());
+
+
return offset;
}
static int dissect_rfc822Name_impl(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {