diff options
author | Andrew Tridgell <tridge@samba.org> | 2005-07-09 05:28:42 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:19:26 -0500 |
commit | 7efeb8f451345b54ce125bcbb601ba2475ef9e59 (patch) | |
tree | c271dd1897070b31b2f7dcc977dd8ead73dab6e2 /source4/scripting/ejs/ejsrpc.h | |
parent | 8ca17e2f47cb171d615784b2449106135e27f1c2 (diff) | |
download | samba-7efeb8f451345b54ce125bcbb601ba2475ef9e59.tar.gz samba-7efeb8f451345b54ce125bcbb601ba2475ef9e59.tar.bz2 samba-7efeb8f451345b54ce125bcbb601ba2475ef9e59.zip |
r8256: - allow rpc calls from non-command line ejs contexts by creating a set
of null credentials to use if cmdline_credentials is not setup
- hide the length and size elements of a lsa_String from js scripts,
so you can use a lsa_String just as an ordinary string without
knowing its a structure. We won't do this with all structures, just
a few core ones that are used often enough to warrant it.
- make sure returned ldb arrays have a length property
(This used to be commit 12d2092dd8668de41776132ccbcd634790c371a9)
Diffstat (limited to 'source4/scripting/ejs/ejsrpc.h')
-rw-r--r-- | source4/scripting/ejs/ejsrpc.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source4/scripting/ejs/ejsrpc.h b/source4/scripting/ejs/ejsrpc.h index d86c4eb71f..c45b66d385 100644 --- a/source4/scripting/ejs/ejsrpc.h +++ b/source4/scripting/ejs/ejsrpc.h @@ -90,6 +90,7 @@ NTSTATUS ejs_push_dom_sid(struct ejs_rpc *ejs, NTSTATUS ejs_push_null(struct ejs_rpc *ejs, struct MprVar *v, const char *name); BOOL ejs_pull_null(struct ejs_rpc *ejs, struct MprVar *v, const char *name); + #define EJS_ALLOC_SIZE(ejs, s, size) do { \ (s) = talloc_size(ejs, size); \ if (!(s)) return ejs_panic(ejs, "out of memory"); \ |