aboutsummaryrefslogtreecommitdiffstats
path: root/packet-wtls.c
AgeCommit message (Collapse)AuthorFilesLines
2002-08-28Removed trailing whitespaces from .h and .c files using theJörg Mayer1-111/+111
winapi_cleanup tool written by Patrik Stridvall for the wine project. svn path=/trunk/; revision=6117
2002-08-02Replace the types from sys/types.h and netinet/in.h by their glib.hJörg Mayer1-9/+1
equivalents for the toplevel directory. The removal of winsock2.h will hopefully not cause any problems under MSVC++, as those files using struct timeval still include wtap.h, which still includes winsock2.h. svn path=/trunk/; revision=5932
2002-07-17From Joerg Mayer:Guy Harris1-6/+1
dftest.c: Remove #if-0-ed includes packet-ieee80211.c, packet-wtls.c, packet-afp.c, packet-wsp.c, packet-wtp.c, ethereal_gen.py: Remove redundant include varargs (already in snprintf.h, and required only for snprintf.h) Remove unused include of snprintf.h from files not using "snprintf()". svn path=/trunk/; revision=5889
2002-06-15The enumerated types given in the WTLS spec have values given inGuy Harris1-156/+156
decimal, not hex; use decimal in the value_string tables for them, and display them in decimal, not hex. Clean up the names of the certificate types. Add a routine to add text identifiers, use that routine rather than doing similar things in several places in the code, and don't have that routine extract the string contents into a buffer and add it with "proto_tree_add_string()" - we can just use "proto_tree_add_item()", which is simpler *and* removes worries about buffer overflows. Use #defines rather than raw numerical values for identifier types in switch-statement case clauses. Fix a typo ("Unknow" -> "Unknown"). FT_NONE and FT_STRING fields can't have a base, so make them BASE_NONE. svn path=/trunk/; revision=5675
2002-01-24Replace a bunch of "tvb_length()" and "tvb_length_remaining()" calls inGuy Harris1-5/+5
arguments to "proto_tree_add_text()", and to "proto_tree_add_XXX()" calls that add FT_NONE or FT_PROTO items to the protocol tree, with -1. Replace some calls to "tvb_length()" or "tvb_length_remaining()" with calls to "tvb_reported_length()" and "tvb_reported_length_remaining()", as those give the actual length of the data in the packet, not just the data that happened to be captured. svn path=/trunk/; revision=4605
2002-01-21Include files from the "epan" directory and subdirectories thereof withGuy Harris1-2/+2
"epan/..." pathnames, so as to avoid collisions with header files in any of the directories in which we look (e.g., "proto.h", as some other package has its own "proto.h" file which it installs in the top-level include directory). Don't add "-I" flags to search "epan", as that's no longer necessary (and we want includes of "epan" headers to fail if the "epan/" is left out, so that we don't re-introduce includes lacking "epan/"). svn path=/trunk/; revision=4586
2001-12-10Move the pointer to the "column_info" structure in the "frame_data"Guy Harris1-7/+6
structure to the "packet_info" structure; only stuff that's permanently stored with each frame should be in the "frame_data" structure, and the "column_info" structure is not guaranteed to hold the column values for that frame at all times - it was only in the "frame_data" structure so that it could be passed to dissectors, and, as all dissectors are now passed a pointer to a "packet_info" structure, it could just as well be put in the "packet_info" structure. That saves memory, by shrinking the "frame_data" structure (there's one of those per frame), and also lets us clean up the code a bit. svn path=/trunk/; revision=4370
2001-12-03Make "dissector_add()", "dissector_delete()", and "dissector_change()"Guy Harris1-4/+7
take a dissector handle as an argument, rather than a pointer to a dissector function and a protocol ID. Associate dissector handles with dissector table entries. svn path=/trunk/; revision=4308
2001-12-03As you set a conversation dissector by supplying a dissector handleGuy Harris1-2/+2
rather than a function pointer, "dissect_wtp_fromudp()" no longer needs to be global; make it static, register it by name, and have the WSP dissector get the handle by calling "find_dissector()" rather than by constructing its own handle for it. Fix up some attributions. svn path=/trunk/; revision=4306
2001-09-28Push-traffic dissecting for WSP/WTLS, from Tom Uijldert.Guy Harris1-1/+2
svn path=/trunk/; revision=3968
2001-09-14Make the resolution for time values be nanoseconds rather thanGuy Harris1-11/+11
microseconds. Fix some "signed vs. unsigned" comparison warnings. svn path=/trunk/; revision=3934
2001-07-20Don't base the WSP dissector's idea of whether it's running inGuy Harris1-3/+3
connectionless or connection-oriented mode on the server port; that won't work with redirects. Instead, base it on the protocol atop which WSP is running - atop UDP, or directly atop WTLS, it's connectionless; atop WTP, it's connection-oriented. svn path=/trunk/; revision=3750
2001-07-03Don't base the protocol column setting in the WSP and WTP dissectors onGuy Harris1-3/+1
the port - instead, base it on whether the dissector was called directly from UDP or called from another WAP dissector. That way, if you explicitly say "decode this as WTP" because there was a redirection (or if, in the future, the WSP dissector handles redirections for you, although that won't handle the case of a capture where the redirection wasn't captured), the column doesn't say "UDP", it says the right thing. Don't register the WTLS dissector by name - nobody calls it through a handle. Register the WTP dissector by name, as the WTLS dissector tries to get a handle for it - although it doesn't actually call it, or the WSP dissector, through a handle. svn path=/trunk/; revision=3647
2001-06-18From Joerg Mayer: explicitly fill in all members of aGuy Harris1-68/+68
"header_field_info" structure, including the ones that are later set by the routines to register fields. svn path=/trunk/; revision=3561
2001-05-02Updates from Alexandre P. Ferreira.Guy Harris1-154/+238
svn path=/trunk/; revision=3396
2001-04-19FT_UINTn and FT_INTn fields must always have a base selected for them;Guy Harris1-3/+3
otherwise, the filtering GUI gets very upset when you try to construct a filter expression to test the value of that field. Make them BASE_DEC. svn path=/trunk/; revision=3334
2001-04-18Fix from Patrick Wolfe.Guy Harris1-30/+36
svn path=/trunk/; revision=3327
2001-04-17WTLS client and trusted key ID handling enhancements, from Patrick Wolfe.Guy Harris1-1/+216
svn path=/trunk/; revision=3319
2001-03-09Fixes to Lemon to get it to compile on platforms (such as some versionsGuy Harris1-2/+2
of Tru64 UNIX) that define TRUE and FALSE. Fixes to some Tru64 compiler warnings. svn path=/trunk/; revision=3120
2001-02-19Updates from Alexandre P. Ferreira.Guy Harris1-10/+12
svn path=/trunk/; revision=3048
2001-02-15Updates from Alexandre P. Ferreira.Guy Harris1-29/+34
svn path=/trunk/; revision=3041
2001-02-13Updates from Neil Hunter.Guy Harris1-0/+1337
svn path=/trunk/; revision=3026