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

38 Commits

Author SHA1 Message Date
Stefan Metzmacher
be25cdebcb librpc: remove special support for fixed length strings
Fixed arrays with the charset() attribute do the same

metze
(This used to be commit 9620b86e96e8065c0ff6db0d95130ab53581d468)
2008-02-12 16:16:35 +01:00
Jelmer Vernooij
a5b8999f23 r26427: Avoid global_smb_iconv_convenience.
(This used to be commit bf072c6fb37b3e6a71c0c747b9fbeaa01480229e)
2007-12-21 05:49:53 +01:00
Jelmer Vernooij
39ee38d9c1 r26316: Use contexts for conversion functions.
(This used to be commit f6420d933b5b011d428974f3a2a57edf19e6f482)
2007-12-21 05:48:30 +01:00
Jelmer Vernooij
a84863372c r26261: Use enum type.
(This used to be commit 06233de54bc14d52e329d8eca2468b329b69593a)
2007-12-21 05:47:35 +01:00
Stefan Metzmacher
7dcaee5503 r26051: ndr_string: don't use ndr_pull_save anymore
metze
(This used to be commit adda63122e0afd5e10c834cbab8baee1ef1a3a24)
2007-12-21 05:45:48 +01:00
Stefan Metzmacher
afa5f256e9 r25916: ndr: change NTSTAUS into enum ndr_err_code (basic stuff)
librpc/ndr/

metze
(This used to be commit 7e157bbcfd416c3d5c32c1e9fdc746bbee5967bb)
2007-12-21 05:44:55 +01:00
Jelmer Vernooij
cd962355ab r25000: Fix some more C++ compatibility warnings.
(This used to be commit 08bb1ef643ab906f1645cf6f32763dc73b1884e4)
2007-10-10 15:05:27 -05:00
Andrew Tridgell
0479a2f1cb r23792: convert Samba4 to GPLv3
There are still a few tidyups of old FSF addresses to come (in both s3
and s4). More commits soon.
(This used to be commit fcf38a38ac691abd0fa51b89dc951a08e89fdafa)
2007-10-10 14:59:12 -05:00
Stefan Metzmacher
3847155cc4 r21405: add support for [flag(STR_NOTERM|NDR_REMAINING)] string_array foo;
this is handles the content of the 'Packages' element in the supplementalCredetials

metze
(This used to be commit 07fe22f82ebe66464ef73274a109d1e21a0d7f0f)
2007-10-10 14:48:26 -05:00
Stefan Metzmacher
03e0d675cf r21391: add supporting for
uint16 size;
[relative,subcontext(0),subcontext_size(size),flag(STR_NOTERM|NDR_REMAINING)] string *string;

as

uint16 size;
[relative,charset(UTF16)] uint8 *string[size];

isn't supported by pidl yet...

metze
(This used to be commit 9fcfa658430f04658c692eb26db9280fda6e4e25)
2007-10-10 14:48:25 -05:00
Stefan Metzmacher
da722e8520 r16996: use the correct types, merge from samba3
metze
(This used to be commit dd81e7e5c71af36499746ba100ce48fedd240dce)
2007-10-10 14:10:07 -05:00
Andrew Tridgell
a40ce7f9f6 r14958: fixed big-endian dcerpc connections for the new string handling code
(This used to be commit 0617aebbbcd27126aab71bc0502a736d7eee1d72)
2007-10-10 14:00:45 -05:00
Andrew Tridgell
66a0d69256 r14917: fixed length strings don't count any trailing nulls in the length
(This used to be commit 28d9a4d1a7aab0852f7f718621830f06cd7ff39b)
2007-10-10 14:00:16 -05:00
Andrew Tridgell
c1a9486faf r14904: fixed LIBNDR_FLAG_STR_CHARLEN (thanks to Metze for noticing this)
(This used to be commit 9569bf5374f92815ce1940f752aaff4a6913b4c0)
2007-10-10 14:00:13 -05:00
Andrew Tridgell
6312201a43 r14903: rewrote ndr_push_string() to be much simpler, and correctly handle
UTF8 strings. This should fix the german umlaut problem reported by
michael@drueing.de
(This used to be commit 73ba1215e0c9283296c16f36c91f5a966f3cc9f4)
2007-10-10 14:00:13 -05:00
Jelmer Vernooij
35349a58df r14542: Remove librpc, libndr and libnbt from includes.h
(This used to be commit 51b4270513752d2eafbe77f9de598de16ef84a1f)
2007-10-10 13:58:42 -05:00
Jelmer Vernooij
c71c86c524 r13842: Make some more functions public.
(This used to be commit aac1b99b362993352d80692afa55c38fc851c016)
2007-10-10 13:52:15 -05:00
Jelmer Vernooij
912f556dba r12651: Remove STR_LARGE_SIZE as it's no longer used
(This used to be commit 8e95aee6fba4d3632f4718428bdb1f07cb58fab4)
2007-10-10 13:49:35 -05:00
Jelmer Vernooij
f54ef2a8f6 r12650: Remove support for NULLTERM flag (is already covered by tridge's
fixes to [validate])
(This used to be commit aa880bf1966889b1cd0b0b7d4d837dff79f0447e)
2007-10-10 13:49:34 -05:00
Jelmer Vernooij
d4de4c2d21 r12608: Remove some unused #include lines.
(This used to be commit 70e7449318aa0e9d2639c76730a7d1683b2f4981)
2007-10-10 13:49:03 -05:00
Jelmer Vernooij
b9fa7bc48e r12558: Support [flag(NULLTERM)] on [charset()] arrays
(This used to be commit 2e5a6eb219feab3208f63d727340a852bfdb0b3f)
2007-10-10 13:47:57 -05:00
Jelmer Vernooij
087dd76232 r11141: Re-add paranoid string terminator check
(This used to be commit 55805b5ed9493160ff17c26d2e1361947f368707)
2007-10-10 13:44:54 -05:00
Jelmer Vernooij
31ffec1d41 r11107: Include 0 byte
(This used to be commit 407df9628e383822680af766dd94532e59397382)
2007-10-10 13:44:50 -05:00
Jelmer Vernooij
f598135c6b r11105: Warn if conformant arrays are not at the end of a struct
Support conformant [string] arrays
Eliminate utf8string

This breaks xattr binary compatibility with previous versions - is that a
problem?
(This used to be commit 7596c708ba6642473319a1b699a5a910a639e50d)
2007-10-10 13:44:50 -05:00
Stefan Metzmacher
f1c5227078 r10637: use the correct memory context in the ndr_pull_* function
to build the talloc hierachie correct

metze
(This used to be commit afd9dda5773d381550bdb061a8e345b33e1fc371)
2007-10-10 13:39:14 -05:00
Stefan Metzmacher
172089214e r9795: fix the ndr_pull_string code to handle, some special cases,
where the idl was something like this:

uint32 size;
[size_is(size+1)] wchar_t *string;

we always need a pair of NDR_PULL_NEEDED_BYTES() and ndr_pull_advance(),
with the same size passed in.

metze
(This used to be commit 8eb75bd5ac5869f11f930ec872ec8a46fba9361b)
2007-10-10 13:35:02 -05:00
Jelmer Vernooij
df3248f108 r9441: Use "const char *" for fixed-size arrays with charset() because
these can require more elements in the local charset (usually UTF8) then
in the wire one.
(This used to be commit a0e63c2691f596cdacbc2e15404829ebca075429)
2007-10-10 13:34:15 -05:00
Jelmer Vernooij
997da16d6c r9440: Fix bug introduced by new zero-padding code. Caught by the buildfarm.
(This used to be commit 9be03c057e229e9cf7fe8b1db04adb9d2f1efc64)
2007-10-10 13:34:14 -05:00
Jelmer Vernooij
7c77a16e40 r9439: Make sure the remainder of the array is always initialized if the buffer is
larger then the string to be pushed.
(This used to be commit 70b52e26f31b00637ed7f90f77ff0b2794dad729)
2007-10-10 13:34:14 -05:00
Andrew Tridgell
d452cd061c r9300: cope with zero length in ndr_pull_charset()
(This used to be commit 1ae255aba44f4444486ae5bc634c8ab1a6328c87)
2007-10-10 13:33:22 -05:00
Andrew Tridgell
5ed139f096 r8261: charset style strings in pidl should be const, just like old style ndr strings
(This used to be commit aa0e1d6699959571963d6e6fb455b33c4436dcdf)
2007-10-10 13:19:27 -05:00
Stefan Metzmacher
3d3a86f95d r8227: add STR_LARGE_SIZE flag, to support strings where the size is length+1,
metze
(This used to be commit cdd03fe87d0120ab3e18566bfc20df5955f9fb3c)
2007-10-10 13:19:22 -05:00
Stefan Metzmacher
cee17efc7c r8045: fix valgrind warning, add zero padding when the string doesn't fill the full FIXLEN
metze
(This used to be commit d8175b01db69436d8af64b97d7b7beca4ba4b552)
2007-10-10 13:19:02 -05:00
Jelmer Vernooij
d4d6d0d2e5 r7706: Move ParseExpr() to util.
(This used to be commit 72efb695291f0ad3cdc80daa9f979454f6a81c04)
2007-10-10 13:18:24 -05:00
Jelmer Vernooij
82dfe0b29b r7702: Implement [charset()] attribute.
(This used to be commit 7012e10bb6252a7e602e80f05c914a783610088c)
2007-10-10 13:18:23 -05:00
Jelmer Vernooij
cd39847e81 r7695: Add support for the [string] attribute that works in the traditional sense. Not
used anywhere yet.
(This used to be commit a73a35cfc7b5b92cd95bd0d0fbd64d04acecccf3)
2007-10-10 13:18:23 -05:00
Stefan Metzmacher
591ff7675d r6572: add "string_array" as new scalar type for handling SPOOLSS string array's
metze
(This used to be commit 23b529ee090e1858fc18794b949f7e466fa82b0e)
2007-10-10 13:16:26 -05:00
Stefan Metzmacher
14b63614fa r6519: move string handling functions to a seperate file
metze
(This used to be commit a29d52817ce943c15f6896b74273df739867c8f7)
2007-10-10 13:16:21 -05:00