Commit Graph

25 Commits

Author SHA1 Message Date
Guy Harris 2769961d38 Squelch a signed vs. unsigned comparison complaint.
svn path=/trunk/; revision=10075
2004-02-16 20:58:03 +00:00
Ronnie Sahlberg 126383282c From Tomas Kukosa, add a PER helper to dissect BITSTRINGS
svn path=/trunk/; revision=10071
2004-02-16 18:31:40 +00:00
Guy Harris 459f7323ca From Lars Roland: whitespace cleanups.
svn path=/trunk/; revision=8789
2003-10-27 22:28:48 +00:00
Guy Harris aed6852d6b In restricted character strings, deal with character values that are
greater than the alphabet length.

Just use "proto_tree_add_item()" if you have a range of bytes, of known
length, that are to be added as an item - that handles both FT_STRING
and FT_BYTES, including null-terminating the string value.

svn path=/trunk/; revision=8779
2003-10-25 06:49:45 +00:00
Ronnie Sahlberg 4bedb1d558 Fix all the issues Michael Oliveras reported
1, TunnellingProtocol_id is a CHOICE not a SEQUENCE
2, change some values to be FT_STRING instead of FT_BYTES
3, update dissect_per_octet_String to always 0 terminate all FT_STRINGs
   (if necessary in a temporary buffer) before passing them on to proto_tree_add_string() since that function did not want to handle FT_STRING or FT_STRINGZ othervise.

svn path=/trunk/; revision=8771
2003-10-24 10:46:43 +00:00
Ronnie Sahlberg 01d8f44de9 Fix to dissection of Mike's problem reported on ethereal-users
We did align to byte a bit too frequently inside dissect_per_octet_string

Also change GroupIP.group from being a FT_BYTES into being FT_STRING

svn path=/trunk/; revision=8744
2003-10-22 01:28:12 +00:00
Guy Harris 5f4c7b8a00 Prefix the EXTENSION #defines with ASN1_ as well.
svn path=/trunk/; revision=8653
2003-10-09 22:35:07 +00:00
Guy Harris 33d2ce9a74 Prefix OPTIONAL and NOT_OPTIONAL with ASN1_, to avoid collisions with
other definitions of OPTIONAL (such as the one in Windows).

svn path=/trunk/; revision=8650
2003-10-09 20:52:57 +00:00
Guy Harris 51805d0c41 From Graeme Reid: modified PER choice dissector to correctly handle
numbered choices starting with non-zero values (eg X.880 ROS).

svn path=/trunk/; revision=8519
2003-09-23 18:36:49 +00:00
Guy Harris cd1524c319 C89 doesn't let you declare stuff in the middle of blocks, even if some
versions of GCC do.

svn path=/trunk/; revision=8328
2003-09-01 23:47:01 +00:00
Guy Harris 109619e6c9 From Andreas Sikkema:
hide some more fields behind the "show asn.1 internals"
	preference;

	show the booleans as values true or false, instead of set or not
	set.

svn path=/trunk/; revision=8324
2003-08-31 00:49:37 +00:00
Ronnie Sahlberg de0002bbdf Fix small display bug. we returned the wrong value from dissect_per_choice and it made us display the wrong string sometimes
svn path=/trunk/; revision=8299
2003-08-28 14:41:20 +00:00
Ronnie Sahlberg ec66d01b58 Make the option to display the internal PER fields default to FALSE
svn path=/trunk/; revision=8275
2003-08-26 21:30:08 +00:00
Guy Harris 6c1c67f702 From Matthijs Melchior: "P" in "PER" stands for "Packed", not "Packet".
svn path=/trunk/; revision=8247
2003-08-25 00:00:20 +00:00
Guy Harris f695468fa2 From Tomas Kukosa: allow subdissectors to be registered for
NonStandardParameter data in the H.245 dissector.

svn path=/trunk/; revision=8206
2003-08-21 18:00:22 +00:00
Ronnie Sahlberg 3329a9d49f Updates to OCTET STRING so that it can handle FT_STRING and not just FT_BYTES
Added decoding of unicode strings in BMPString dissector helper

svn path=/trunk/; revision=8111
2003-07-31 10:26:36 +00:00
Ronnie Sahlberg 27edcee365 fix minor bugs in h245 decoding
svn path=/trunk/; revision=8092
2003-07-29 08:59:14 +00:00
Ronnie Sahlberg 691221f2f7 Update PER so that the bit that indicates whether an extension is encoded or not
is displayed in the tree for CHOICE constructs when internal PER fields are displayed.

svn path=/trunk/; revision=8091
2003-07-29 07:57:22 +00:00
Ronnie Sahlberg 04a580a8ee update to PER to decode PrintableString properly
svn path=/trunk/; revision=8089
2003-07-29 07:25:14 +00:00
Ronnie Sahlberg ebb75f713e Add PrintableString stub. H225 needs this type.
I could not find a definition of which order the characters in the restricted set are encoded in so I could not implement the actual decoding.

svn path=/trunk/; revision=8049
2003-07-19 03:45:04 +00:00
Guy Harris ebc8a7846a Eliminate some signed-vs-unsigned-comparison and signed-char-subscript
warnings.

svn path=/trunk/; revision=8034
2003-07-16 21:05:12 +00:00
Ronnie Sahlberg 987d45a974 Add a new parameter to the constrained integer dissector so that it also handles
constrained integers with an extension marker.

Update all calls to the constrained integer dissector

Add dissection to the rfc_number type  which is a constrasined integer with an extension marker

Add H245 so that it builds by default in ethereal.
It has been tested extensively by a semi-large number of people with a lot of real and synthetic captures  and seems to work very well.

New protocol added to ethereal

svn path=/trunk/; revision=8032
2003-07-16 09:23:56 +00:00
Ronnie Sahlberg 54ab042328 updates bugfix for the NumericString alphabet.
Implement some restricted ia5strings

svn path=/trunk/; revision=8029
2003-07-16 08:17:14 +00:00
Ronnie Sahlberg e146533cfd Add decoding of NumericString
svn path=/trunk/; revision=8018
2003-07-13 01:43:33 +00:00
Ronnie Sahlberg 6ffb0280ee Break out the PER functions from the alternative h245 dissector
and put them in their own file.

I had to put them im packet-per.c  instead of asn1-per.c  since othervise
i couldnt get it to invoke the register  routine from register.c

the per dissector is compiled into ethereal by default,  but there are no callers in ethereal until  the h245 dissector is added.

someone that knows the registry stuff better might consider renaming it to asn1-per.c instead of packet-per.c

svn path=/trunk/; revision=8017
2003-07-12 22:35:21 +00:00