>From ac78b22ce8520cd9431e57ff2925317363e7260b Mon Sep 17 00:00:00 2001 From: Matthieu Patou Date: Tue, 1 Oct 2013 11:37:19 -0700 Subject: [PATCH 02/13] librpc: add idl for DFS-R (frsrtans) blobs Signed-off-by: Matthieu Patou --- librpc/idl/frstransblobs.idl | 29 +++++++++++++++++++++++++++++ librpc/idl/wscript_build | 2 +- librpc/wscript_build | 5 +++++ source4/librpc/wscript_build | 3 ++- 4 files changed, 37 insertions(+), 2 deletions(-) create mode 100644 librpc/idl/frstransblobs.idl diff --git a/librpc/idl/frstransblobs.idl b/librpc/idl/frstransblobs.idl new file mode 100644 index 0000000..b6ee30d --- /dev/null +++ b/librpc/idl/frstransblobs.idl @@ -0,0 +1,29 @@ +#include "idl_types.h" + +//import "drsuapi.idl", "misc.idl", "samr.idl", "lsa.idl", "security.idl"; + +[ + uuid("12345778-1234-bcde-0001-000000000001"), + version(0.0), + pointer_default(unique), + //helper("../librpc/ndr/ndr_drsblobs.h"), + helpstring("DFS-R blobs") +] +interface frstransblobs { + + typedef [flag(NDR_NOALIGN)] struct { + [charset(DOS),value("XBLO")] uint8 Block_Signature[4]; + uint32 compressed_size; + uint32 uncompressed_size; + uint8 data[compressed_size]; + } compressedBlock; + + typedef [public,flag(NDR_NOALIGN)] struct { + [charset(DOS),value("FRSX")] uint8 Signature[4]; + compressedBlock block; + } compressedDataFormat; + + void decode_compressedDataFormat( + [in] compressedDataFormat data + ); +} diff --git a/librpc/idl/wscript_build b/librpc/idl/wscript_build index 854a2e2..d399df4 100644 --- a/librpc/idl/wscript_build +++ b/librpc/idl/wscript_build @@ -12,7 +12,7 @@ bld.SAMBA_PIDL_LIST('PIDL', drsblobs.idl efs.idl frstrans.idl mgmt.idl netlogon.idl notify.idl policyagent.idl scerpc.idl svcctl.idl wkssvc.idl eventlog6.idl backupkey.idl - fsrvp.idl''', + fsrvp.idl frstransblobs.idl''', options='--header --ndr-parser --samba3-ndr-server --server --client --python', output_dir='../gen_ndr') diff --git a/librpc/wscript_build b/librpc/wscript_build index 2017a29..69fc5c8 100644 --- a/librpc/wscript_build +++ b/librpc/wscript_build @@ -75,6 +75,11 @@ bld.SAMBA_SUBSYSTEM('NDR_FRSTRANS', public_deps='ndr' ) +bld.SAMBA_SUBSYSTEM('NDR_FRSTRANSBLOBS', + source='gen_ndr/ndr_frstransblobs.c', + public_deps='ndr' + ) + bld.SAMBA_SUBSYSTEM('NDR_DFSBLOBS', source='gen_ndr/ndr_dfsblobs.c', public_deps='ndr' diff --git a/source4/librpc/wscript_build b/source4/librpc/wscript_build index f49c30d..4b73c3b 100755 --- a/source4/librpc/wscript_build +++ b/source4/librpc/wscript_build @@ -84,7 +84,8 @@ bld.SAMBA_SUBSYSTEM('ndr-table', NDR_SASL_HELPERS NDR_NOTIFY NDR_WINBIND NDR_FRSRPC NDR_FRSAPI NDR_FRSTRANS NDR_NFS4ACL NDR_NTP_SIGND NDR_DCOM NDR_WMI NDR_NAMED_PIPE_AUTH NDR_NTLMSSP NDR_DFSBLOBS NDR_DNSP - NDR_NTPRINTING NDR_DNS NDR_BACKUPKEY NDR_PREG NDR_WBINT''', + NDR_NTPRINTING NDR_DNS NDR_BACKUPKEY NDR_PREG NDR_WBINT + NDR_FRSTRANSBLOBS''', depends_on='GEN_NDR_TABLES' ) -- 1.8.1.2