Wireshark-bugs: [Wireshark-bugs] [Bug 3045] Protocol Help extension for Wireshark
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3045

--- Comment #32 from Edgar Gladkich <[email protected]> 2010-05-27 04:33:16 PDT ---
(In reply to comment #29)
> I added the URL formatting code because your attached patch required a
> "license" field. Is this no longer the case? How is licensing done in the
> current version?
> 
> I downloaded the Protocol Help Light source code from
> http://www.inacon.de/protocolhelp/download.php and updated the code to match
> the section and key names in ph.ini. The ${PATH} variable is no longer
> required. If it's not present the PH value is simply appended to the location.
> The updated code requires the following changes to the [database] section. Note
> the addition of a "source" key and a trailing slash at the end of the
> "location" value:
> 
> [database]
> source=Inacon
> version=1
> location=http://www.inacon.de/ph/data/
> 
> Will this work for you?

Hi Gerald,

yes, it works!

> ... How is licensing done in the current version?

The encoded license key is added to the path.
This license key is cut out on the web server by means of Apache Rewrite and
forwarded to the check.

Here is a example:

Definition in the configuration file:
location=http://www.inacon.de/ph/1a2b3c4d1a2b3c4d1a2b3c4d1a2b3c4d/

The result after the call:
http://www.inacon.de/ph/1a2b3c4d1a2b3c4d1a2b3c4d1a2b3c4d/DHCP/DHCP-Message-Format_OS_RFC-2131.htm

Apache Rewrite finds and cuts out the license key:
1a2b3c4d1a2b3c4d1a2b3c4d1a2b3c4d

Now URL is forwarded:
http://www.inacon.de/ph/data/DHCP/DHCP-Message-Format_OS_RFC-2131.htm



In the function proto_help_menu_modify the call

g_hash_table_insert(table, g_ascii_strup(keys[i], -1), NULL);

must be changed. If the last parameter NULL is, one finds in the hash table no
duplicates.

thanks, Edgar

-- 
Configure bugmail: https://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.