Commit Graph

486 Commits

Author SHA1 Message Date
Tomas Kukosa e6290e8edc put only file basename into #line directives
svn path=/trunk/; revision=23146
2007-10-11 14:48:12 +00:00
Bill Meier 5f94f0702f Improve error msg when libraries out of date.
svn path=/trunk/; revision=23142
2007-10-10 20:47:36 +00:00
Tomas Kukosa 207837b284 do not prepend './' before input file name if -D <dir> option is not used
it made problem with absolute path usage

svn path=/trunk/; revision=23068
2007-10-05 07:36:51 +00:00
Tomas Kukosa 0f31c30b4b support of 'ANY DEFINED BY' from X.208 which is obsolete but still used in some RFCs
svn path=/trunk/; revision=23043
2007-10-02 06:52:11 +00:00
Anders Broman 79a3b2d675 Use the tag for downloading.
svn path=/trunk/; revision=23005
2007-09-28 06:06:36 +00:00
Anders Broman 6b4a7ba74d Use GTK+ 2.12
svn path=/trunk/; revision=22955
2007-09-25 16:09:58 +00:00
Jörg Mayer af5de71e06 Update from samba tree revision 25198 to 25306
============================ Samba log start ============
------------------------------------------------------------------------
r25301 | jelmer | 2007-09-23 23:35:03 +0200 (Sun, 23 Sep 2007) | 1 line
   A /branches/SAMBA_4_0/source/libcli/raw/clierror.c (from /branches/SAMBA_4_0/source/libcli/util/clierror.c:25300)
   D /branches/SAMBA_4_0/source/libcli/util/clierror.c
   D /branches/SAMBA_4_0/source/libcli/util/nt_status.h
   D /branches/SAMBA_4_0/source/libcli/util/nterr.h
   A /branches/SAMBA_4_0/source/libcli/util/ntstatus.h (from /branches/SAMBA_4_0/source/libcli/util/nterr.h:25300)
   A /branches/SAMBA_4_0/source/libcli/util/werror.h (from /branches/SAMBA_4_0/source/libcli/util/nt_status.h:25300)

Merge my includes.h cleanups.
------------------------------------------------------------------------
------------------------------------------------------------------------
============================ Samba log end ==============


svn path=/trunk/; revision=22939
2007-09-24 16:05:51 +00:00
Jörg Mayer 0cb93f22ba Add command line switch
-D dir        : Directory for input_file(s) (default: '.')
to allow asn2wrs being used in out of tree builds.

Beautify -h output a bit.

svn path=/trunk/; revision=22938
2007-09-24 13:49:25 +00:00
Jörg Mayer b202080068 Update pidl to current samba tree. This changes the license
of the *tool* to GPLv3. The license of the generated code is
is most likely not affected (see mail on wireshark-dev from Jelmer).

Update from samba tree revision 23750 to 25198
============================ Samba log start ============
------------------------------------------------------------------------
r23792 | tridge | 2007-07-10 04:07:03 +0200 (Tue, 10 Jul 2007) | 6 lines

convert Samba4 to GPLv3

There are still a few tidyups of old FSF addresses to come (in both s3
and s4). More commits soon.
------------------------------------------------------------------------
r24407 | metze | 2007-08-14 13:50:45 +0200 (Tue, 14 Aug 2007) | 6 lines

$element->{ARRAY_LEN} doesn't exist...

and a few lines above we use $element->{ORIGINAL}->{ARRAY_LEN}
I assume it was just forgotten in the update.

metze
------------------------------------------------------------------------
r24446 | metze | 2007-08-15 08:08:02 +0200 (Wed, 15 Aug 2007) | 4 lines

We only need one genric GenerateFunctionInEnv
function

metze
------------------------------------------------------------------------
r24447 | metze | 2007-08-15 10:55:16 +0200 (Wed, 15 Aug 2007) | 3 lines

fix samba3-cli pidl tests

metze
------------------------------------------------------------------------
r24452 | metze | 2007-08-15 11:18:25 +0200 (Wed, 15 Aug 2007) | 4 lines

bail out instead of only giving a warning on
incorrect idl files

metze
------------------------------------------------------------------------
r24454 | metze | 2007-08-15 12:23:28 +0200 (Wed, 15 Aug 2007) | 3 lines

when level 0 is a pointer we need to look for an array in level 1...

metze
------------------------------------------------------------------------
r24463 | metze | 2007-08-15 16:02:23 +0200 (Wed, 15 Aug 2007) | 4 lines

we have a function to correctly create an $env object
so don't try it manually and introduce bugs:-)

metze
------------------------------------------------------------------------
r24482 | metze | 2007-08-16 12:07:19 +0200 (Thu, 16 Aug 2007) | 3 lines

white space cleanup only...

metze
------------------------------------------------------------------------
r24484 | metze | 2007-08-16 12:54:11 +0200 (Thu, 16 Aug 2007) | 3 lines

pass down $ndr tree instead of the $pidl tree to Samba4/Header.pm

metze
------------------------------------------------------------------------
r24487 | metze | 2007-08-16 15:27:41 +0200 (Thu, 16 Aug 2007) | 3 lines

fix formating and add defined($opt_header)

metze
------------------------------------------------------------------------
r24488 | metze | 2007-08-16 15:29:38 +0200 (Thu, 16 Aug 2007) | 3 lines

enum's and bitmap's not have nested types

metze
------------------------------------------------------------------------
r24489 | metze | 2007-08-16 15:34:54 +0200 (Thu, 16 Aug 2007) | 4 lines

only typedef enum { ... } foo; enum's should look
for has_properties() of $enum->{PARENT}

metze
------------------------------------------------------------------------
r24490 | metze | 2007-08-16 15:39:30 +0200 (Thu, 16 Aug 2007) | 8 lines

For ParseBitmap() we use Parse::Pidl::Typelist::bitmap_type_fn()
so for ParseEnum() we should also use Parse::Pidl::Typelist::enum_type_fn().

Also the base_type() property isn't standard IDL and we should not support it.

This changes TDR enum to also to default to uint16 (as with NDR enums).

metze
------------------------------------------------------------------------
r24492 | metze | 2007-08-16 15:41:48 +0200 (Thu, 16 Aug 2007) | 4 lines

Parse::Pidl::Samba4::Header::Parse() now takes an $ndr tree
not the $pidl tree anymore.

metze
------------------------------------------------------------------------
r24493 | metze | 2007-08-16 16:42:22 +0200 (Thu, 16 Aug 2007) | 11 lines

- it turns out that
  foreach my $e (@{$union->{ELEMENTS}}) {
  changes $union->{ELEMENTS} from undef into an empty array.
  this removes the difference between
  struct foo { }; and struct foo;
  So we need to explicit return before.
- we should return the same element for layout for
  structs and unions with no elements.
- fix the testsuite to match

metze
------------------------------------------------------------------------
r24505 | metze | 2007-08-17 09:06:02 +0200 (Fri, 17 Aug 2007) | 3 lines

pass down $fn one level

metze
------------------------------------------------------------------------
r24506 | metze | 2007-08-17 09:46:34 +0200 (Fri, 17 Aug 2007) | 3 lines

pass $fn down one more layer

metze
------------------------------------------------------------------------
r24507 | metze | 2007-08-17 10:05:57 +0200 (Fri, 17 Aug 2007) | 3 lines

pass $d down to HeaderTypedef

metze
------------------------------------------------------------------------
r24508 | metze | 2007-08-17 10:47:38 +0200 (Fri, 17 Aug 2007) | 3 lines

add HeaderTypeNew() which will go if everything is converted

metze
------------------------------------------------------------------------
r24509 | metze | 2007-08-17 11:01:19 +0200 (Fri, 17 Aug 2007) | 4 lines

pass down the full ndr elements instead of the old pidl elements
from ->{ORIGINAL}

metze
------------------------------------------------------------------------
r24511 | metze | 2007-08-17 11:12:13 +0200 (Fri, 17 Aug 2007) | 3 lines

pass the correct thing to fatal()

metze
------------------------------------------------------------------------
r24514 | metze | 2007-08-17 13:09:46 +0200 (Fri, 17 Aug 2007) | 3 lines

IS_* elemements sound be perl integers consistantly...

metze
------------------------------------------------------------------------
r24515 | metze | 2007-08-17 13:24:25 +0200 (Fri, 17 Aug 2007) | 3 lines

use fatal() wrapper instead of die() directly

metze
------------------------------------------------------------------------
r24516 | metze | 2007-08-17 14:04:41 +0200 (Fri, 17 Aug 2007) | 3 lines

don't use ->{ORIGINAL}

metze
------------------------------------------------------------------------
r24517 | metze | 2007-08-17 14:55:47 +0200 (Fri, 17 Aug 2007) | 4 lines

move skipping pointer before an array logic into the
pointer loop as we do in other places

metze
------------------------------------------------------------------------
r24518 | metze | 2007-08-17 15:01:51 +0200 (Fri, 17 Aug 2007) | 4 lines

get rid of using ->{ORIGINAL} and move stuff
into subfunctions

metze
------------------------------------------------------------------------
r24520 | metze | 2007-08-17 15:08:00 +0200 (Fri, 17 Aug 2007) | 4 lines

make use of the new ElementStars() and ArrayBrackets()
functions

metze
------------------------------------------------------------------------
r24521 | metze | 2007-08-17 15:42:09 +0200 (Fri, 17 Aug 2007) | 3 lines

we don't yet have optional args to DeclLong()

metze
------------------------------------------------------------------------
r24522 | metze | 2007-08-17 15:45:18 +0200 (Fri, 17 Aug 2007) | 3 lines

make the "skip pointer to an array" logic a bit easier

metze
------------------------------------------------------------------------
r24523 | metze | 2007-08-17 15:47:03 +0200 (Fri, 17 Aug 2007) | 4 lines

we don't support multi-dimentional [out] arrays
for the samba3 server stubs yet, so bail out.

metze
------------------------------------------------------------------------
r24524 | metze | 2007-08-17 15:53:12 +0200 (Fri, 17 Aug 2007) | 3 lines

make use of ElementStars()

metze
------------------------------------------------------------------------
r24535 | metze | 2007-08-18 12:30:40 +0200 (Sat, 18 Aug 2007) | 4 lines

rename struct dcerpc_interface_call -> struct ndr_interface_call
and move it to librpc/ndr/libndr.h

metze
------------------------------------------------------------------------
r24540 | metze | 2007-08-18 14:25:37 +0200 (Sat, 18 Aug 2007) | 4 lines

rename struct dcerpc_endpoint_list/struct dcerpc_authservice_list
into ndr_interface_string_array and move it to libndr.h

metze
------------------------------------------------------------------------
r24551 | metze | 2007-08-19 22:46:45 +0200 (Sun, 19 Aug 2007) | 6 lines

rename dcerpc_interface_table -> ndr_interface_table
rename dcerpc_interface_list  -> ndr_interface_list

and move them to libndr.h

metze
------------------------------------------------------------------------
r24557 | metze | 2007-08-19 23:23:03 +0200 (Sun, 19 Aug 2007) | 3 lines

rename 'dcerpc_table_' -> 'ndr_table_'

metze
------------------------------------------------------------------------
r24560 | metze | 2007-08-20 00:09:21 +0200 (Mon, 20 Aug 2007) | 3 lines

rename some DCERPC_ prefixes into NDR_

metze
------------------------------------------------------------------------
r24563 | metze | 2007-08-20 00:23:17 +0200 (Mon, 20 Aug 2007) | 3 lines

remove unused DCERPC specific stuff from the generated NDR code

metze
------------------------------------------------------------------------
r24592 | metze | 2007-08-21 14:19:56 +0200 (Tue, 21 Aug 2007) | 4 lines

pass down the ndr_interface_table in the samba3 client bindings
instead of the pull and push functions

metze
------------------------------------------------------------------------
r24596 | metze | 2007-08-21 16:06:33 +0200 (Tue, 21 Aug 2007) | 7 lines

- talloc request structure for the samba3 server bindings
  and make that the primary context for the request
  which the implementations can also use.
- go via functions pointers in the ndr_interface_table
  instead of calling functions directly.

metze
------------------------------------------------------------------------
r24717 | jelmer | 2007-08-27 20:43:18 +0200 (Mon, 27 Aug 2007) | 2 lines
   D /branches/SAMBA_4_0/BRANCH.TODO

Some more easy bool conversions, update TODO for registry

------------------------------------------------------------------------
r24721 | jelmer | 2007-08-27 21:47:23 +0200 (Mon, 27 Aug 2007) | 1 line

Avoid True and False because they are only available within Samba.
------------------------------------------------------------------------
r24812 | jelmer | 2007-08-31 00:25:59 +0200 (Fri, 31 Aug 2007) | 1 line

Fix headers for external users.
------------------------------------------------------------------------
r24815 | jelmer | 2007-08-31 02:03:54 +0200 (Fri, 31 Aug 2007) | 1 line

Support cpp_quote().
------------------------------------------------------------------------
r24816 | jelmer | 2007-08-31 02:31:32 +0200 (Fri, 31 Aug 2007) | 4 lines
   D /branches/SAMBA_4_0/source/include/core.h

Move the rest of the contents of core.h to more appropriate places. 
include/ now only contains build system related headers, all other headers are 
now near the source code they're related to.

------------------------------------------------------------------------
r24983 | metze | 2007-09-06 15:48:01 +0200 (Thu, 06 Sep 2007) | 4 lines

setup the correct talloc name for structures used in the generated
server stubs

metze
------------------------------------------------------------------------
r25114 | metze | 2007-09-12 14:31:19 +0200 (Wed, 12 Sep 2007) | 7 lines

handle structs and unions without typedefs better
in can_contain_deffered()

jelmer: we need to handle this more genericly, I assume
        we have a lot of other related bugs

metze
------------------------------------------------------------------------
r25166 | jelmer | 2007-09-14 20:06:51 +0200 (Fri, 14 Sep 2007) | 1 line

Simplify can_contain_deferred and add tests for it.
------------------------------------------------------------------------
r25168 | jelmer | 2007-09-14 20:26:23 +0200 (Fri, 14 Sep 2007) | 1 line

Fix include for gen_ndr/misc.h. Patch by Julien Kerihuel.
------------------------------------------------------------------------
r25185 | jelmer | 2007-09-16 01:03:34 +0200 (Sun, 16 Sep 2007) | 1 line

Check that can_contain_deferred returns true if one of the members of a type can contain deferred data.
------------------------------------------------------------------------
============================ Samba log end ==============

svn path=/trunk/; revision=22935
2007-09-24 07:00:59 +00:00
Jörg Mayer 03629ee45d ome files were left even after "make maintainer-clean". Found
with "svn status --no-ignore".


svn path=/trunk/; revision=22932
2007-09-24 06:57:52 +00:00
Bill Meier c2d927e6a2 Verify existence of required downloaded library packages during make after Makefile.nmake updated
svn path=/trunk/; revision=22769
2007-09-02 20:53:15 +00:00
Guy Harris 846633da41 Clean up "setuid-root.pl" when we do "make distclean".
svn path=/trunk/; revision=22757
2007-08-30 19:34:20 +00:00
Stig Bjørlykke debdff77c4 Huh. Fetch setuid-root.pl.in from srcdir instead.
svn path=/trunk/; revision=22754
2007-08-30 15:44:59 +00:00
Stig Bjørlykke 147e5afa74 Added setuid-root.pl.in to EXSTRA_DIST
svn path=/trunk/; revision=22753
2007-08-30 12:06:18 +00:00
Gerald Combs c63446af51 Add the setuid script missing from my last checkin.
svn path=/trunk/; revision=22736
2007-08-30 04:16:11 +00:00
Gerald Combs 92802883a6 Change the "--enable-setuid-install" option to install dumpcap and TShark
setuid instead of Wireshark.  Remove the "DANGEROUS" notices, but leave it
disabled by default.  Whine if the user runs Wireshark or TShark as root.
Add a preference to disable the whining.  Add a "setuid-root" script that
can be used to switch dumpcap and TShark's setuid-ness on and off for
development and testing.  Update the release notes and README.packaging.

svn path=/trunk/; revision=22733
2007-08-30 00:24:40 +00:00
Tomas Kukosa e256ad3713 new directive #.ASSIGN_VALUE_TO_TYPE
svn path=/trunk/; revision=22725
2007-08-29 11:47:35 +00:00
Jörg Mayer 0576eb451f Make Windows path separator look like Unix path separator.
That way, we will not have irrelevant diffs depending on
the platform the last submitter built the dissector on.

svn path=/trunk/; revision=22624
2007-08-24 06:51:10 +00:00
Bill Meier 2fa88cfca3 Don't rename to self when fuzz err; enable ^C file cleanup trap
svn path=/trunk/; revision=22601
2007-08-23 14:56:18 +00:00
Jeff Morriss 58b8fef9ea As discussed on the -dev list quite a while ago: a small tool to check Wireshark code (or at least parts of it) for "bad" things (C++ style comments and API/function calls that should not be used). I'm checking in because I almost missed some C++ style comments in a file I was contemplating checking in; this tool can help us (at least me) avoid such problems in the future.
svn path=/trunk/; revision=22509
2007-08-15 20:35:14 +00:00
Tomas Kukosa 396ceb5607 NBAP rewritten to use original ASN.1 source and updated to TS 25.433 V7.5.0 (2007-06)
svn path=/trunk/; revision=22490
2007-08-13 11:15:39 +00:00
Anders Broman 8ae37d9391 Use the latest GTK2 packages
svn path=/trunk/; revision=22482
2007-08-10 11:42:31 +00:00
Guy Harris b1e9777a81 1989 was quite a while ago. We use function prototypes extensively;
don't worry about YY_PROTO, which isn't defined with the newer shinier
versions of Flex.

svn path=/trunk/; revision=22450
2007-08-04 03:27:18 +00:00
Guy Harris c2d8a39d95 Sigh, crufty old shells. The Solaris test(1) manual says that
1) "-e" isn't supported by good old /bin/sh, so we use "-r"
	   instead;

	2) "The algorithm for determining the precedence of the
	   operators and the return value that will be generated is
	   based on the number of arguments presented to test", so we
	   explicitly parenthesize.

svn path=/trunk/; revision=22448
2007-08-04 03:11:06 +00:00
Guy Harris 517d6d57e4 Oops, forgot to check in the script for running Flex/Lex.
svn path=/trunk/; revision=22447
2007-08-04 02:36:21 +00:00
Guy Harris 5be4499ad1 Add a script as a front-end for Flex, to work around various problems,
such as the fact that Flex strips all but the last component of the "-o"
argument, and that it doesn't generate a header file to declare routines
the generated lexical analyzer defines.  Use that script when building
lexical analyzers, and, for each lexical analyzer, include the generated
header file in the generated analyzer.

svn path=/trunk/; revision=22446
2007-08-04 02:13:52 +00:00
Guy Harris cab450519f If YY_SKIP_YYWRAP is defined, don't bother defining WRAP_FUNC - with
flex 2.5.31, WRAP_FUNC will end up being defined as a value that, when
used as a function-style macro, expands to 1, so the definition of
WRAP_FUNC will get a syntax error.

svn path=/trunk/; revision=22428
2007-07-31 01:24:26 +00:00
Tomas Kukosa 5a46ea46b5 H.450 regenerated from original ASN.1 sources
svn path=/trunk/; revision=22417
2007-07-30 08:01:59 +00:00
Tomas Kukosa 3b5c406f8c QSIG fully implemented
svn path=/trunk/; revision=22361
2007-07-20 09:54:47 +00:00
Tomas Kukosa 17feb32ca9 change QSIG tables structure so as they can be generated automatically from ASN.1 in the next step
svn path=/trunk/; revision=22354
2007-07-19 11:41:10 +00:00
Tomas Kukosa 698426f6b8 support for syntax of TYPE-IDENTIFIER and ABSTRACT-SYNTAX classes
svn path=/trunk/; revision=22332
2007-07-17 09:59:35 +00:00
Jörg Mayer 4bb2dbca12 Update from samba tree revision 23135 to 23750
============================ Samba log start ============
------------------------------------------------------------------------
r23677 | abartlet | 2007-07-03 09:28:46 +0200 (Tue, 03 Jul 2007) | 6 lines
Changed paths:
   M /branches/SAMBA_4_0/source/pidl/tests/ndr_align.pl
   M /branches/SAMBA_4_0/source/pidl/tests/ndr_tagtype.pl

When I removed data_blob_equal, I clearly didn't test the PIDL code.

Fix these to use the new data_blob_cmp()

Andrew Bartlett

------------------------------------------------------------------------
r23721 | sahlberg | 2007-07-05 09:19:14 +0200 (Thu, 05 Jul 2007) | 7 lines
Changed paths:
   M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Wireshark/NDR.pm

For unions, The TAG and the ARM are aligned independently.

Move emitting ALIGN_TO_x_BYTES to after the tag has been dissected so the 
alignment only affects the ARM.



------------------------------------------------------------------------
------------------------------------------------------------------------
============================ Samba log end ==============

svn path=/trunk/; revision=22268
2007-07-08 10:20:30 +00:00
Tomas Kukosa 7c5aa2d461 small changes in value reference handling and parameterized object assignment handling
svn path=/trunk/; revision=22234
2007-07-03 11:01:21 +00:00
Tomas Kukosa 8d3fd802e3 - HSTRING value support
- accept any type in CONSTRAINED BY

svn path=/trunk/; revision=22232
2007-07-02 13:03:39 +00:00
Tomas Kukosa 546176eaaf register type of OPERATION fields &ArgumentType and &ResultType and ERROR field &ParemeterType if other type than Typereference is used
svn path=/trunk/; revision=22230
2007-07-02 12:22:05 +00:00
Tomas Kukosa 992aa0798d - implementation of OPERATION and ERROR objects support started
- new #.TABLE... directives to printout objects into output files 

svn path=/trunk/; revision=22223
2007-06-29 11:28:35 +00:00
Tomas Kukosa 2c33ab54e7 check conflict in CLASS fields redefinition
svn path=/trunk/; revision=22203
2007-06-27 14:26:17 +00:00
Tomas Kukosa 705f89de7a - INSTANCE OF type support
- fix bug in empty SET handling
- partial support for OpenTypeFieldVal
- allow useful object classes in ObjectFieldSpec and ObjectSetFieldSpec

svn path=/trunk/; revision=22202
2007-06-27 08:13:53 +00:00
Tomas Kukosa 283c094ec3 comment out some forgotten debug printouts
svn path=/trunk/; revision=22185
2007-06-25 10:26:21 +00:00
Tomas Kukosa c2172dbc5b - fix field type FT_... for SelectionType
- fix OPTIONAL handling in CLASS definition
- Q.932 ROS regenerated

svn path=/trunk/; revision=22184
2007-06-25 08:58:27 +00:00
Tomas Kukosa 2c362d3e8d - improve compilation (passing type information) if modules are not merged with -p option
- start "module grouping" compilation feature

svn path=/trunk/; revision=22063
2007-06-07 06:05:36 +00:00
Tomas Kukosa b4d36142ed build-in OPERATION and ERROR classes definition
svn path=/trunk/; revision=22056
2007-06-06 09:46:35 +00:00
Tomas Kukosa 1dcf2aaef0 use ASN.1 type names in #.FN_BODY (instead of Wireshark type names)
svn path=/trunk/; revision=22054
2007-06-06 08:12:27 +00:00
Tomas Kukosa 0fec7475c0 replace '&' with '_' in asn2c() function
svn path=/trunk/; revision=22046
2007-06-05 13:43:45 +00:00
Tomas Kukosa 31e45c7a21 not allow #.FN_HDR/FTR for Wireshark types but only for ASN.1 types
it makes interconnection between .cnf file and ASN.1 source more readable
(changes for #.FN_BODY will follow)

svn path=/trunk/; revision=22043
2007-06-05 12:00:57 +00:00
Tomas Kukosa 368528502e few small changes to compile INAP (Q.1248.x) from original ASN.1 source
svn path=/trunk/; revision=22042
2007-06-05 08:33:39 +00:00
Tomas Kukosa eb782d0cea - CLASS definitions support including exports through the *-exp.cnf file
- support of extension in middle of SEQUENCE root elements
- new option EMBEDDED_PDV_CB to set default callback
- ChoiceValue support at syntax level
- ValueSet support at syntax level
- exception identifier support
- ValueFromObject support at syntax level
- next minor changes (to compile X.880 and INAP)

- dissectors using classes regenerated

svn path=/trunk/; revision=22036
2007-06-04 14:41:38 +00:00
Anders Broman 4393bceae5 INAP:
- Use (some) IN CS4 asn1 files Q.1248.1 Q.1248.2 Q.1248.3

BER/asn2wrs:
-  Add basic support for EmbeddedPDVType

svn path=/trunk/; revision=22031
2007-06-03 19:58:59 +00:00
Anders Broman 7c5ec2a1e0 Syntax suport for Embedded pdv.
svn path=/trunk/; revision=22025
2007-06-02 12:26:13 +00:00
Tomas Kukosa 7cd09b8fd6 - fix bug in TaggedType support
svn path=/trunk/; revision=22003
2007-05-30 14:22:26 +00:00
Tomas Kukosa 5445d333de - better support if more modules are compiled together
- BSTRING support
- bug fix which sometimes duplicates items in SEQ/CHOICE extension

svn path=/trunk/; revision=22002
2007-05-30 14:13:26 +00:00
Guy Harris 5a43799a17 Use G_GINT64_MODIFIER, rather than the PRI[douxX]64 macros, for GLib
routines and routines using those routines.  GLib might use different
modifiers for 64-bit quantities than the platform's C library does.

svn path=/trunk/; revision=21990
2007-05-29 18:52:42 +00:00
Tomas Kukosa 41ac062479 - COMPONENTS OF implementation (can be used only inside one module or more modules compiled together, can not be done across exported/imported types)
- if protocol name contains dot '.' it is replaced with dash '-' for default output filename
- fix bug in more modules output handling if they are not merged together but output is done one by one
- new #.OPT option EXTERNAL_TYPE_CB for default EXTERNAL type callback
- start of X.880 support implementation

svn path=/trunk/; revision=21984
2007-05-29 14:32:46 +00:00
Tomas Kukosa 77a163a6e3 fix SelectionType creation for export (if the type is only exported but not used in module)
svn path=/trunk/; revision=21973
2007-05-28 11:10:41 +00:00
Tomas Kukosa 28b739896d support of SelectionType
e.g. in TCAP
Component{...} ::= CHOICE {
  basicROS  ROS{...},
  returnResultNotLast [7] returnResult < ROS{..}
}

svn path=/trunk/; revision=21972
2007-05-28 10:55:03 +00:00
Tomas Kukosa ddc09877e2 small improvements in value handling, defined INTEGER value can be used in OID value
svn path=/trunk/; revision=21969
2007-05-28 07:10:09 +00:00
Jörg Mayer 5c4151bb8f Update from samba tree revision 23054 to 23135
============================ Samba log start ============
------------------------------------------------------------------------
r23069 | metze | 2007-05-22 13:23:36 +0200 (Tue, 22 May 2007) | 3 lines
Changed paths:
   M /branches/SAMBA_4_0/source/pidl/tests/Util.pm

print out the command, to find out the problem on host 'tridge'

metze
------------------------------------------------------------------------
r23071 | metze | 2007-05-22 14:45:58 +0200 (Tue, 22 May 2007) | 3 lines
Changed paths:
   M /branches/SAMBA_4_0/source/pidl/tests/Util.pm

print the command on failure only

metze
------------------------------------------------------------------------
------------------------------------------------------------------------
============================ Samba log end ==============

svn path=/trunk/; revision=21932
2007-05-25 08:34:15 +00:00
Tomas Kukosa 3f071c757a - improvements in registering dissectors to OID table (value defined in ASN.1 can be used)
- new #.END_OF_CNF directive

svn path=/trunk/; revision=21916
2007-05-24 07:19:21 +00:00
Tomas Kukosa e6e55fd517 small fix in duplicate type warning
svn path=/trunk/; revision=21911
2007-05-23 19:35:29 +00:00
Tomas Kukosa fe5ee23c89 - support of CONTAINING constraint in OCTET STRING and BIT STRING
- fix handling of tag for EXTERNAL type
- change automatic postfix for duplicate names from '...%d' to '..._%02d'

svn path=/trunk/; revision=21906
2007-05-23 13:42:05 +00:00
Anders Broman 81ee0e3c42 Copy paste error, actx duplicated.
svn path=/trunk/; revision=21892
2007-05-22 21:13:55 +00:00
Anders Broman dca634c4de Prepare for the use of the new -X parameter for BER encoded protocols.
svn path=/trunk/; revision=21889
2007-05-22 16:17:54 +00:00
Jörg Mayer 5e33afbf50 Don't generate enums that end in a comma
svn path=/trunk/; revision=21888
2007-05-22 16:14:28 +00:00
Tomas Kukosa 16c4aa8e38 - fix asn2wrs crash if typereference assignment has non-default body
- mode directives for assignments omitting 
  (#.NO_OMIT_ASSGN, #.OMIT_ALL_ASSIGNMENTS, #.OMIT_ASSIGNMENTS_EXCEPT, #.OMIT_ALL_TYPE_ASSIGNMENTS, #.OMIT_TYPE_ASSIGNMENTS_EXCEPT, #.OMIT_ALL_VALUE_ASSIGNMENTS, #.OMIT_VALUE_ASSIGNMENTS_EXCEPT)

svn path=/trunk/; revision=21824
2007-05-18 12:48:28 +00:00
Tomas Kukosa 58105364d5 fix crash if C enum for ENUMERATED type is created
svn path=/trunk/; revision=21786
2007-05-15 12:50:13 +00:00
Tomas Kukosa e62aef53da fix bug - compiler crashes if already imported value or class is defined
svn path=/trunk/; revision=21785
2007-05-15 11:41:45 +00:00
Tomas Kukosa 12abbdb118 command line option -X for "new BER" CHOICE and SEQUENCE table format (type oriented instead of field oriented)
svn path=/trunk/; revision=21779
2007-05-15 08:55:12 +00:00
Tomas Kukosa 35da9bda8a support for value range and unions in permitted alphabet
svn path=/trunk/; revision=21777
2007-05-15 08:15:34 +00:00
Anders Broman f08cd1e5e3 actx in the rest of dissect_ber..()l
svn path=/trunk/; revision=21773
2007-05-15 05:49:43 +00:00
Gerald Combs 253eee10e2 Update to the latest Win32 libraries.
svn path=/trunk/; revision=21770
2007-05-14 17:07:34 +00:00
Tomas Kukosa 25c299ea4e - support of constraint unions
- support of FN_VARIANT parameter for OpenType
- many small changes

svn path=/trunk/; revision=21758
2007-05-14 13:46:09 +00:00
Anders Broman 0bc558f88d actx in ber_external
svn path=/trunk/; revision=21755
2007-05-13 22:01:17 +00:00
Anders Broman c01f382974 Second step in introducing asn context to BER dissectors just like in PER.
svn path=/trunk/; revision=21753
2007-05-13 20:58:29 +00:00
Stephen Fisher 511188e5a0 Copy environment variable HTTP_PROXY when set to http_proxy so wget can grab it.
Also add $Id$ tag

svn path=/trunk/; revision=21750
2007-05-11 22:54:54 +00:00
Jörg Mayer 26aae8fd12 Update from samba tree revision 22657 to 22761
============================ Samba log start ============
------------------------------------------------------------------------
r22667 | metze | 2007-05-04 12:44:41 +0200 (Fri, 04 May 2007) | 3 lines
Changed paths:
   M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba4/Header.pm

revert revision 22640 as it breaks nested structs in idl

metze
------------------------------------------------------------------------
r22741 | jelmer | 2007-05-07 14:31:42 +0200 (Mon, 07 May 2007) | 1 line
Changed paths:
   M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Wireshark/NDR.pm

Add MSVC-specific pragma's for Wireshark. Patch from Ronnie.
------------------------------------------------------------------------
r22742 | jelmer | 2007-05-07 14:41:23 +0200 (Mon, 07 May 2007) | 1 line
Changed paths:
   M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Wireshark/NDR.pm

Fix tests.
------------------------------------------------------------------------
------------------------------------------------------------------------
============================ Samba log end ==============

svn path=/trunk/; revision=21729
2007-05-08 17:39:28 +00:00
Graeme Lunt cf56e76be9 Updated splash screen for Wireshark that shows the initialisation progress.
The splash screen shows a progress bar and a percentage complete - like the progress dialog.
As dissectors are initialised and handed off the name is shown. However, the names of plugin dissectors are not shown.
The update to the make-dissector-reg shell script has been tested, though I think generally the python version is used.


svn path=/trunk/; revision=21716
2007-05-07 17:55:42 +00:00
Tomas Kukosa a38b44a647 - simple Information Objects support
- all definitions in ASN.1 source are skipped and need not to be commented out
  - #.CLASS directive can define types for Object Class Fields
- do not append 'xxx' postfix to parametrized types (changes H.235 and H.450 in accordance with it)
- change QSIG ASN.1 source to be more identical to original one

svn path=/trunk/; revision=21715
2007-05-07 12:59:31 +00:00
Anders Broman 4c692a62b6 Start introducing actx to ber functions.
svn path=/trunk/; revision=21705
2007-05-06 22:34:05 +00:00
Tomas Kukosa d58b1031de - new #.OPT directive which allows to use command line options from conformance file (and more options in the future)
- option -F|CREATE_FIELDS used from conformance file can have type parameter, field functions are created only for its members

svn path=/trunk/; revision=21682
2007-05-04 13:11:34 +00:00
Tomas Kukosa 48b11b6f15 - fix creating PDU_NEW functions, return the right value
- allow FN_PARS to be spreaded over more lines

svn path=/trunk/; revision=21675
2007-05-04 06:55:48 +00:00
Jörg Mayer 904640fdb4 Note: make test for the following update generates 1 error:
---------
tests/header..............NOK 14#   Failed test 'struct declaration'
#   in tests/header.pl at line 49.
#                   '/* header auto-generated by pidl */
#
# #include <core.h>
# #include <stdint.h>
#
# #ifndef _HEADER_p
# #define _HEADER_p
#
# struct x#endif /* _HEADER_p */
# '
#     doesn't match '(?ms-xi:struct x;)'
# Looks like you failed 1 test of 15.
tests/header..............dubious
        Test returned status 1 (wstat 256, 0x100)
DIED. FAILED test 14
---------

Update from samba tree revision 22314 to 22657
============================ Samba log start ============
------------------------------------------------------------------------
r22357 | jelmer | 2007-04-19 03:26:15 +0200 (Thu, 19 Apr 2007) | 2 lines
Changed paths:
   M /branches/SAMBA_4_0
   M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba3/ClientNDR.pm
   M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba4/EJS.pm
   M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm
   M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba4/TDR.pm
   M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Wireshark/NDR.pm
   M /branches/SAMBA_4_0/source/pidl/tests/wireshark-ndr.pl

Don't use 'our'

------------------------------------------------------------------------
r22453 | jelmer | 2007-04-22 12:42:33 +0200 (Sun, 22 Apr 2007) | 1 line
Changed paths:
   M /branches/SAMBA_4_0
   M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba4/TDR.pm
   M /branches/SAMBA_4_0/source/pidl/tests/tdr.pl

Fix TDR testsuite without using our.
------------------------------------------------------------------------
r22456 | jelmer | 2007-04-22 15:57:07 +0200 (Sun, 22 Apr 2007) | 1 line
Changed paths:
   M /branches/SAMBA_4_0
   M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba4/EJS.pm
   M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Wireshark/NDR.pm
   M /branches/SAMBA_4_0/source/pidl/pidl
   M /branches/SAMBA_4_0/source/pidl/tests/samba-ejs.pl
   M /branches/SAMBA_4_0/source/pidl/tests/wireshark-ndr.pl

Merge wireshark and ejs test improvements.
------------------------------------------------------------------------
r22457 | jelmer | 2007-04-22 16:19:22 +0200 (Sun, 22 Apr 2007) | 1 line
Changed paths:
   M /branches/SAMBA_4_0
   M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba3/ClientNDR.pm
   M /branches/SAMBA_4_0/source/pidl/pidl
   M /branches/SAMBA_4_0/source/pidl/tests/samba3-cli.pl

Fix tests for Samba3 client generator.
------------------------------------------------------------------------
r22462 | jelmer | 2007-04-22 17:59:34 +0200 (Sun, 22 Apr 2007) | 1 line
Changed paths:
   M /branches/SAMBA_4_0
   M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm
   M /branches/SAMBA_4_0/source/pidl/pidl
   M /branches/SAMBA_4_0/source/pidl/tests/Util.pm
   M /branches/SAMBA_4_0/source/pidl/tests/samba-ndr.pl

Fix test suite for ndr parser without using 'our'
------------------------------------------------------------------------
r22520 | jelmer | 2007-04-25 18:10:54 +0200 (Wed, 25 Apr 2007) | 1 line
Changed paths:
   M /branches/SAMBA_4_0
   M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Wireshark/Conformance.pm
   M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Wireshark/NDR.pm
   M /branches/SAMBA_4_0/source/pidl/tests/wireshark-conf.pl

Fix the TYPE command.
------------------------------------------------------------------------
r22617 | metze | 2007-05-01 03:57:17 +0200 (Tue, 01 May 2007) | 4 lines
Changed paths:
   M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/NDR.pm

assume we have defered elements if the type is just provides via
'declare' this should fix the problem with the winbind IRPC calls

metze
------------------------------------------------------------------------
r22618 | metze | 2007-05-01 04:00:57 +0200 (Tue, 01 May 2007) | 8 lines
Changed paths:
   M /branches/SAMBA_4_0/source/pidl/idl.yp
   M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/IDL.pm

handle the properties related to the type
and not to 'declare' to avoid a pidl warning with:

declare [switch_type(uint16)] union netr_Validation;

void foo([in] uint16 level, [in,switch_is(level)] netrValidation info);

metze
------------------------------------------------------------------------
r22640 | metze | 2007-05-02 20:00:02 +0200 (Wed, 02 May 2007) | 4 lines
Changed paths:
   M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba4/Header.pm

- generate nicer output
- fix compiler warning about unused ';'

metze
------------------------------------------------------------------------
------------------------------------------------------------------------
============================ Samba log end ==============

svn path=/trunk/; revision=21671
2007-05-03 21:56:22 +00:00
Anders Broman 98cb9db12d Split out asn1 common functions. Start of BER EXTERNAL.
svn path=/trunk/; revision=21670
2007-05-03 21:52:57 +00:00
Tomas Kukosa 3ecac7ddd1 - REAL type and values are supported
- if a value of some INTEGER type is defined then it is assigned to this type like a named value
i.e.
MyType ::= INTEGER
mv01 MyType ::= 1
is equal to
MyType ::= INTEGER { mv01 (1) }

svn path=/trunk/; revision=21663
2007-05-03 11:42:33 +00:00
Tomas Kukosa 6f80d9228f - better reporting of syntax errors (or unsupported syntax) in ASN.1 source
- support of EXTERNAL type
- support of ObjectDescriptor for PER
- new #.CLASS directive for supporting some class workarounds

svn path=/trunk/; revision=21642
2007-05-02 12:18:27 +00:00
Tomas Kukosa 9f6c1ed0bb - new #.Exports parameter VALS_WITH_TABLE which "exports" whole table into header file
/it is only one way how to use it in Windows plugins/
- better handling of imports and definitions if more ASN.1 sources are compiled together
- fix tag handling on top level of PDU
- new -I command line option for path(s) of conformance files including

svn path=/trunk/; revision=21600
2007-04-27 07:35:01 +00:00
Tomas Kukosa dc9a2c4c14 new parameter EXTERN for #.EXPORTS directive
svn path=/trunk/; revision=21561
2007-04-25 11:14:14 +00:00
Tomas Kukosa 6c2acdcfba fix bug in handling of tagged type reference
svn path=/trunk/; revision=21559
2007-04-25 06:33:24 +00:00
Tomas Kukosa 635171a4c0 added missing dependency in tagged type
svn path=/trunk/; revision=21475
2007-04-19 12:58:31 +00:00
Tomas Kukosa 0bb959a11a - new -L command line option to suppress #line directives from .cnf file
- new #.MAKE_ENUM and #.MAKE_DEFINES directives to generate enum/#define for enumerated types (ENUMERATED or INTEGER with named values)

svn path=/trunk/; revision=21466
2007-04-18 08:55:28 +00:00
Gerald Combs fc2e2a7c3b Use the older-style ST_MTIME instead of st_mtime. This should fix backward
compatibility.

svn path=/trunk/; revision=21459
2007-04-17 17:13:55 +00:00
Jörg Mayer ac582f5d97 Update from samba tree revision 22006 to 22314
============================ Samba log start ============
------------------------------------------------------------------------
r22029 | jpeach | 2007-04-02 19:06:14 +0200 (Mon, 02 Apr 2007) | 2 lines
Changed paths:
   M /branches/SAMBA_4_0/source/lib/registry/config.mk
   M /branches/SAMBA_4_0/source/lib/replace/samba.m4
   M /branches/SAMBA_4_0/source/main.mk
   M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba4.pm

Make sure we respect $srcdir correctly for the srcdir != builddir case.

------------------------------------------------------------------------
------------------------------------------------------------------------
============================ Samba log end ==============


svn path=/trunk/; revision=21458
2007-04-17 16:51:24 +00:00
Gerald Combs b190b5e759 Fixup whitespace.
svn path=/trunk/; revision=21419
2007-04-13 22:49:54 +00:00
Tomas Kukosa f764553978 support of tagged types for BER - i.e. tagged assignments, more than one level tags in SEQUENCE/CHOICE
it has to be enabled with -T option as it is experimental

svn path=/trunk/; revision=21407
2007-04-13 14:19:26 +00:00
Gerald Combs a0afc5d832 Add a registration symbol cache to make-dissector-reg.py. When you
update a dissector and recompile, make-dissector-reg.py can now pull
its list of registration routines from a cache instead of having to
scan through every dissector.  The time to create register.c has gone
from 20 to 30 seconds down to 2 on my desktop machine.

The cache file is a Python pickle data stream.  It should be portable
across architectures, so we may be able to add it to the distribution
at some point.

svn path=/trunk/; revision=21348
2007-04-06 16:15:36 +00:00
Graham Bloice 85c33a07cb Remove build detritus
svn path=/trunk/; revision=21347
2007-04-06 15:51:36 +00:00
Gerald Combs 90a9317e4e Loosen up our restrictions so that plugins can compile.
svn path=/trunk/; revision=21340
2007-04-05 22:42:34 +00:00
Gerald Combs fdbcca2123 In epan/dissectors/Makefile.nmake, fix a typo.
In make-dissector-reg.py, throw an error if we don't have enough files
to process, or if we don't generate enough registrations.  "Enough"
is arbitrarily set to 100.

This should de-purple the buildbot.  (I'm sure there's a "smoke on the
water" joke in there somewhere.)

svn path=/trunk/; revision=21338
2007-04-05 21:38:39 +00:00
Jörg Mayer 6d009cc957 Manually add the patch mentioned in
http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=21262


svn path=/trunk/; revision=21269
2007-03-29 08:10:29 +00:00
Jörg Mayer 503f881f50 Update from samba tree revision 21970 to 22006
============================ Samba log start ============
------------------------------------------------------------------------
r21995 | jelmer | 2007-03-28 01:04:08 +0200 (Wed, 28 Mar 2007) | 5 lines
Changed paths:
   M /branches/SAMBA_4_0
   M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Wireshark/NDR.pm

Patch from Ronnie Sahlberg.

Change the signatures for all functions it generates to specify
_U_ so that GCC "parameter not used" warnings are suppressed.

------------------------------------------------------------------------
r21996 | jelmer | 2007-03-28 01:22:41 +0200 (Wed, 28 Mar 2007) | 4 lines
Changed paths:
   M /branches/SAMBA_4_0
   M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Wireshark/NDR.pm

Fix a bug for invalid casts of pointers.

Patch by Ronnie Sahlberg.

------------------------------------------------------------------------
r22004 | jelmer | 2007-03-29 00:52:37 +0200 (Thu, 29 Mar 2007) | 4 lines
Changed paths:
   M /branches/SAMBA_4_0
   M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Wireshark/NDR.pm

Check for dereferencing null pointers. 

Patch by Ronnie Sahlberg.

------------------------------------------------------------------------
------------------------------------------------------------------------
============================ Samba log end ==============

svn path=/trunk/; revision=21268
2007-03-29 07:49:48 +00:00
Tomas Kukosa 2cc5068736 Ply updated to v2.3
svn path=/trunk/; revision=21225
2007-03-27 09:01:29 +00:00