diff options
author | gal <gal@f5534014-38df-0310-8fa8-9805f1628bb7> | 2006-09-30 14:37:09 +0000 |
---|---|---|
committer | gal <gal@f5534014-38df-0310-8fa8-9805f1628bb7> | 2006-09-30 14:37:09 +0000 |
commit | 9e6ac7679e6943456f72a9bc36b5516f5f5170bd (patch) | |
tree | 3ad573d612af222181b20d12c872834b8d10d3a1 /epan/dissectors/packet-x509ce.c | |
parent | 0302c1941fbc7e3aef1e9884a47a2a883bccb8d5 (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.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@19383 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-x509ce.c')
-rw-r--r-- | epan/dissectors/packet-x509ce.c | 7 |
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) { |