1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-25 06:04:04 +03:00

369 Commits

Author SHA1 Message Date
Andrew Tridgell
0d063725e1 r1671: make [relative] pointers in idl much more generic, treating them just
like normal pointers in most cases. This means we can now support
relative pointers to unions, builtin types etc, whereas we could only
previously support relative pointers to structures.

metze needs this for the PAC decoding.
2007-10-10 12:57:48 -05:00
Tim Potter
d9b4e45f46 r1611: Put a brace on a new line. 2007-10-10 12:57:44 -05:00
Tim Potter
daf2aea67c r1595: Always use a loop variable named $e when iterating over lists of
elements.
2007-10-10 12:57:43 -05:00
Tim Potter
10e3ba03df r1594: Remove some array checks that we can't do because we don't store state
between scalar and buffer passes.

Fix array handling - most of the samr queryuserinfo calls now parse
properly!
2007-10-10 12:57:43 -05:00
Tim Potter
7fab5c4ecb r1593: Fix bug in get_subtree() where we were always looking at the head of
the list of subtrees.
2007-10-10 12:57:43 -05:00
Tim Potter
8fad205c51 r1592: Fix up subtrees for non-scalar types instead of hardcoding module subtree.
Arrays currently broken though.  )-:
2007-10-10 12:57:43 -05:00
Tim Potter
5bc6116260 r1586: Finally, a technique for putting buffers in scalars in the same
protocol tree that actually works.  Instead of trying really hard
to do this in code, just remember a list of strings and subtrees
for every tree.  (This does require the addition of a void *user_data
field to ethereal's proto_node structure).
2007-10-10 12:57:42 -05:00
Tim Potter
0f7b473b4a r1540: - Remove return statements when a parse error is detected as ethereal
will do this for us.

- Fix a format string error

- Use subtrees for scalar and buffer elements

- Add subtree support for function request/responses

- Formatting fixups
2007-10-10 12:57:40 -05:00
Tim Potter
4099e10d43 r1535: Create a subtree for each array element. 2007-10-10 12:57:40 -05:00
Tim Potter
3f5c087c40 r1534: Alternate method of grouping togethers buffers and scalars which actually
seems to work.  We create a subtree one level higher instead of in the
parse function.
2007-10-10 12:57:40 -05:00
Stefan Metzmacher
fef597a76c r1483: build dynconfig.c also with PICFLAGS
metze
2007-10-10 12:57:34 -05:00
Andrew Tridgell
910ca17486 r1464: the recent build changes completely lost the speed advantage of using
PCH (in fact, it meant that PCH was a slowdown, not a speedup). To
gain speed with PCH you must ensure that the .gch file is compiled
with _exactly_ the same options as the normal object files.

this fixes the .gch build options
2007-10-10 12:57:32 -05:00
Andrew Bartlett
54c3d98baf r1458: Add a new configure option, to make it possible to both find errors,
and compile with gtk.

The --enable-developer option was just too noisy with buggy GTK headers.

Andrew Bartlett
2007-10-10 12:56:58 -05:00
Stefan Metzmacher
afe2efd143 r1377: add examples for config.mk sections
so you want/need to use the new build system
just look at the top of build/smb_build/public.m4

and look at the examples in the rest of the tree

metze
2007-10-10 12:56:54 -05:00
Stefan Metzmacher
4422547711 r1323: allow '-' in IDENTIFIERS
accept '--' comments

implement the
<name> DEFINITIONS ::=

BEGIN
...
END

syntax

metze
2007-10-10 12:56:50 -05:00
Stefan Metzmacher
52674db282 r1321: find the '::=' directly by th lexer
metze
2007-10-10 12:56:50 -05:00
Stefan Metzmacher
d752eb660f r1310: one more #line statement
metze
2007-10-10 12:56:50 -05:00
Stefan Metzmacher
390c03b929 r1309: use #line 1 "filename.pl"
(for better bug tracking)

when generating config.smb_build.pl

metze
2007-10-10 12:56:50 -05:00
Stefan Metzmacher
4daf1bafc7 r1308: move smb_panic() to lib/fault.c
merge the backtrace stuff from 3.0

metze
2007-10-10 12:56:50 -05:00
Stefan Metzmacher
1727ef2bb9 r1307: remove unused stuff from pasn1
metze
2007-10-10 12:56:50 -05:00
Stefan Metzmacher
ddcaf7b63a r1306: commit the first steps of my ASN.1 compiler
called 'pasn1', it works like 'pidl'

and we may can autogenerate ASN.1 code out of it.
(NOTE: the complete LDAP ASN.1 definition is in the RFC 2251,
 and maybe some others too :-)

I'm not completly shure if we'll use it in future,
but I commit it so that it won't be lost...

metze
2007-10-10 12:56:49 -05:00
Tim Potter
de5984c956 r1268: varient -> variant 2007-10-10 12:56:46 -05:00
Tim Potter
bf8e255d2e r1174: Remove $var_prefix parameter for all functions. We don't need it for
ethereal.
2007-10-10 12:56:43 -05:00
Tim Potter
53313775a8 r1167: Misc cleanups:
- shorten COL_INFO message
  - make parser error messages prettier
  - separate variable declarations from function body with newline
  - only generate variables for requests/responses when they have the
    in/out property
2007-10-10 12:56:43 -05:00
Tim Potter
904de85c88 r1166: Convert (commented out) ndr_pull_error() calls into proto_tree_add_text()
calls so egregious parse errors are displayed in the ethereal gui.
2007-10-10 12:56:43 -05:00
Tim Potter
d3183d781e r1164: Whoops - remove debugging printfs and Data::Dumper reference.
Give unions their own subtree as well as structures.
2007-10-10 12:56:42 -05:00
Tim Potter
1d29a4fd87 r1162: Give each struct it's own subtree in the ethereal gui. Much more
readable!
2007-10-10 12:56:42 -05:00
Tim Potter
a6c95fbd6f r1160: Some minor cosmetic fixes to make the generated code look nicer. 2007-10-10 12:56:41 -05:00
Tim Potter
80bc9c9c59 r1159: Implement functions to dissect 64-bit values (nttime, hyper_t, int64,
uint64).

Rename parameter e_ndr to ndr.
2007-10-10 12:56:41 -05:00
Tim Potter
80f1445507 r1158: Fix bug in dissection of array count. Arrays mostly work now with the
exception of a union related bug.
2007-10-10 12:56:41 -05:00
Tim Potter
c194f2cf07 r1153: We can now dissect security descriptors. 2007-10-10 12:56:41 -05:00
Tim Potter
f29fb9a3fc r1152: Checkin of workarea. The parser can now dissect a big chunk of the samr
operations.  Security descriptors and unions are still left to do.
2007-10-10 12:56:41 -05:00
Andrew Tridgell
60838a0f94 r1149: fixed the handling of NDR_SET_VALUES in the debug print of rpc structures in the generated rpc server code 2007-10-10 12:56:41 -05:00
Andrew Tridgell
0a67b9c324 r1148: fixed a minor formatting error in generated code 2007-10-10 12:56:41 -05:00
Andrew Tridgell
ad3324a79c r1133: - add ndr_pull_ptr() as a separate call instead of ndr_pull_uint32()
(useful for debugging IDL)

- fixed a couple of places that auto-generate incorrect printf style arguments
  for ndr_pull_error()
2007-10-10 12:56:39 -05:00
Tim Potter
b3bc3d2ef4 r1100: Comment out functions that we now get from other sources (misc.idl and
lsarpc.idl).

Add stub for ndr_pull_relative() function.
2007-10-10 12:56:38 -05:00
Tim Potter
19442e07d0 r1099: Set $module variable to name of module.
Only generate code for module registration if we could find a UUID.

Tweaks to get [relative] compiling.
2007-10-10 12:56:38 -05:00
Tim Potter
5c3c3d3e72 r1083: Generate prototypes for structs and unions marked "public" in the idl.
Delete various hacks to work around not doing this before.
2007-10-10 12:56:37 -05:00
Stefan Metzmacher
798cbed5a3 r1073: import DYNEXP flags to smb_build
and use @{$SMB_BUILD_CTX->{BUILD_ENV}{LD}{DYNEXP}} for the flags

I'll use this for all vars which are currently using AC_SUBST(),
so we can skip Makefile.in...

(this should fix the build on us4...)

metze
2007-10-10 12:56:36 -05:00
Andrew Tridgell
55e0b014fe r1048: - moved the schannel definitions into a separate schannel.idl
- added server side support for schannel type 23. This allows WinXP to establish a schannel connection
  to Samba4 as an ADS DC

- added client side support for schannel type 23, but disabled it as currently the client
  code has now way of getting the fully qualified domain name (which is needed)

- report dcerpc faults in the server code in the log
2007-10-10 12:56:34 -05:00
Tim Potter
f18dc9eb88 r1047: Now samr eparser compiles, links and doesn't crash ethereal. 2007-10-10 12:56:34 -05:00
Tim Potter
7ff7737832 r1045: Wow - we actually compile (but not link) the autogenerated parser from
samr.  The array handling is a bit of a mess though.
2007-10-10 12:56:34 -05:00
Jelmer Vernooij
0209dce1eb r1037: Always export all symbols 2007-10-10 12:56:33 -05:00
Jelmer Vernooij
8238acef47 r1036: Get module initialisation function correct when building shared 2007-10-10 12:56:31 -05:00
Jelmer Vernooij
7949dc25ab r1035: Support shared modules again 2007-10-10 12:56:31 -05:00
Andrew Tridgell
dffe916516 r1014: change the handling of r->out to auto-zero the structure, and auto-copy
in,out,ref vars
2007-10-10 12:56:26 -05:00
Stefan Metzmacher
20f848aeef r1006: print out the SVN revision by configure,
so that the build farm can use it

metze
2007-10-10 12:56:26 -05:00
Tim Potter
fc3c5d6fab r1003: Removed e_ndr stuff - too verbose.
Merged across populating %needed with hf index members for functions
from old version of eparser.
2007-10-10 12:56:25 -05:00
Tim Potter
595b6e0f2c r1002: Add helper files for eparser output. 2007-10-10 12:56:25 -05:00
Tim Potter
60942eaa3a r987: Start replacing ndr_* functions with e_ndr_* and removing stuff related
to storing data in structure members.
2007-10-10 12:56:25 -05:00