diff options
author | Andrew Tridgell <tridge@samba.org> | 2004-12-18 04:38:43 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:07:29 -0500 |
commit | ed42a64901ba0a7ad8cbaac582600688af1b7d72 (patch) | |
tree | b68217a14fbd61d1f58b702d7ecc5b9ee66f2ce5 /source4/lib | |
parent | b02c5abfb470575a67ced192b2913b5a1c73dd3e (diff) | |
download | samba-ed42a64901ba0a7ad8cbaac582600688af1b7d72.tar.gz samba-ed42a64901ba0a7ad8cbaac582600688af1b7d72.tar.bz2 samba-ed42a64901ba0a7ad8cbaac582600688af1b7d72.zip |
r4263: added support for the trans2 RAW_SEARCH_EA_LIST information
level. This is quite a strange level that we've never seen before, but
is used by the os2 workplace shell.
note w2k screws up this level when unicode is negotiated, so it only
passes the RAW-SEARCH test when you force non-unicode
(This used to be commit 25189b8fbf6515d573e3398dc9fca56505dc37b9)
Diffstat (limited to 'source4/lib')
-rw-r--r-- | source4/lib/data_blob.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/source4/lib/data_blob.c b/source4/lib/data_blob.c index a4506fee45..1551879933 100644 --- a/source4/lib/data_blob.c +++ b/source4/lib/data_blob.c @@ -160,3 +160,16 @@ char *data_blob_hex_string(TALLOC_CTX *mem_ctx, DATA_BLOB *blob) return hex_string; } + +/* + useful for constructing data blobs in test suites, while + avoiding const warnings +*/ +DATA_BLOB data_blob_string_const(const char *str) +{ + DATA_BLOB blob; + blob.data = discard_const(str); + blob.length = strlen(str); + return blob; +} + |