1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-05 09:18:06 +03:00
samba-mirror/source4/librpc/idl/efs.idl
Jelmer Vernooij 7603394aec r9162: Fix a couple of data types
(This used to be commit 7329dd25f5)
2007-10-10 13:31:26 -05:00

109 lines
2.1 KiB
Plaintext

#include "idl_types.h"
/*
IDL definitions from original packet-dcerpc-efs.c
by Jean-Baptiste Marchand
*/
[
uuid("c681d488-d850-11d0-8c52-00c04fd90f7e"),
version(1.0),
depends(security),
pointer_default(unique)
] interface efs
{
WERROR EfsRpcOpenFileRaw(
[out,ref] policy_handle *pvContext,
[in] unistr FileName,
[in] uint32 Flags
);
WERROR EfsRpcReadFileRaw(
[in,ref] policy_handle *pvContext
/* incomplete */
);
WERROR EfsRpcWriteFileRaw(
[in,ref] policy_handle *pvContext
/* incomplete */
);
void EfsRpcCloseRaw(
[in,out,ref] policy_handle *pvContext
);
WERROR EfsRpcEncryptFileSrv(
[in] unistr Filename
);
WERROR EfsRpcDecryptFileSrv(
[in] unistr FileName,
[in] uint32 Reserved
);
typedef struct {
uint32 cbData;
[size_is(cbData), unique] uint8 *pbData;
} EFS_HASH_BLOB;
typedef struct {
uint32 cbTotalLength;
[unique] dom_sid *pUserSid;
[unique] EFS_HASH_BLOB *pHash;
[unique] unistr *lpDisplayInformation;
} ENCRYPTION_CERTIFICATE_HASH;
typedef struct {
uint32 nCert_Hash;
/* this is a pointer to an array of pointers */
[size_is(nCert_Hash)] ENCRYPTION_CERTIFICATE_HASH *pUsers[*];
} ENCRYPTION_CERTIFICATE_HASH_LIST;
WERROR EfsRpcQueryUsersOnFile(
[in] unistr FileName,
[out,ref,unique] ENCRYPTION_CERTIFICATE_HASH_LIST **pUsers
);
WERROR EfsRpcQueryRecoveryAgents(
[in] unistr FileName,
[out,ref,unique] ENCRYPTION_CERTIFICATE_HASH_LIST **pRecoveryAgents
);
WERROR EfsRpcRemoveUsersFromFile(
[in] unistr FileName
/* [in] ENCRYPTION_CERTIFICATE_LIST Hashes*/
);
WERROR EfsRpcAddUsersToFile(
[in] unistr FileName
/* [in] ENCRYPTION_CERTIFICATE_LIST Hashes*/
);
typedef struct {
uint32 dwCertEncodingType;
uint32 cbData;
[size_is(cbData)] [unique] uint8 *pbData;
} EFS_CERTIFICATE_BLOB;
typedef struct {
uint32 TotalLength;
[unique] dom_sid *pUserSid;
[unique] EFS_CERTIFICATE_BLOB *pCertBlob;
} ENCRYPTION_CERTIFICATE;
WERROR EfsRpcSetFileEncryptionKey(
[in] [unique] ENCRYPTION_CERTIFICATE *pEncryptionCertificate
);
WERROR EfsRpcNotSupported(
);
WERROR EfsRpcFileKeyInfo(
);
WERROR EfsRpcDuplicateEncryptionInfoFile(
);
}