summaryrefslogtreecommitdiff
path: root/source3/include/proto.h
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2010-05-17 13:39:42 +1000
committerGünther Deschner <gd@samba.org>2010-05-18 21:39:42 +0200
commit7a8e34fe868158ee5591e1640477d28c62de5b67 (patch)
treed36088a3e3e1a3928bb77bb9d3dbb3389d74ebc8 /source3/include/proto.h
parent1ffc65d462ab7ebb61efc30e8305e70789d219fb (diff)
downloadsamba-7a8e34fe868158ee5591e1640477d28c62de5b67.tar.gz
samba-7a8e34fe868158ee5591e1640477d28c62de5b67.tar.bz2
samba-7a8e34fe868158ee5591e1640477d28c62de5b67.zip
s3:split secrets.c to put machine account secrets in a new file
This helps the s3compat effort by allowing these functions to be replaced by functions that query the cli_credentials and secrets.ldb APIs. Also, this changes a couple of DOM_SID to struct dom_sid along the way. Andrew Bartlett Signed-off-by: Günther Deschner <gd@samba.org>
Diffstat (limited to 'source3/include/proto.h')
-rw-r--r--source3/include/proto.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h
index 9a2320b935..761d0d2bc1 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -4341,10 +4341,10 @@ bool sid_to_gid(const DOM_SID *psid, gid_t *pgid);
/* The following definitions come from passdb/machine_sid.c */
-DOM_SID *get_global_sam_sid(void);
+struct dom_sid *get_global_sam_sid(void);
void reset_global_sam_sid(void) ;
-bool sid_check_is_domain(const DOM_SID *sid);
-bool sid_check_is_in_our_domain(const DOM_SID *sid);
+bool sid_check_is_domain(const struct dom_sid *sid);
+bool sid_check_is_in_our_domain(const struct dom_sid *sid);
/* The following definitions come from passdb/passdb.c */
@@ -4612,8 +4612,8 @@ void secrets_shutdown(void);
void *secrets_fetch(const char *key, size_t *size);
bool secrets_store(const char *key, const void *data, size_t size);
bool secrets_delete(const char *key);
-bool secrets_store_domain_sid(const char *domain, const DOM_SID *sid);
-bool secrets_fetch_domain_sid(const char *domain, DOM_SID *sid);
+bool secrets_store_domain_sid(const char *domain, const struct dom_sid *sid);
+bool secrets_fetch_domain_sid(const char *domain, struct dom_sid *sid);
bool secrets_store_domain_guid(const char *domain, struct GUID *guid);
bool secrets_fetch_domain_guid(const char *domain, struct GUID *guid);
void *secrets_get_trust_account_lock(TALLOC_CTX *mem_ctx, const char *domain);
@@ -4626,9 +4626,9 @@ bool secrets_fetch_trust_account_password(const char *domain, uint8 ret_pwd[16],
time_t *pass_last_set_time,
enum netr_SchannelType *channel);
bool secrets_fetch_trusted_domain_password(const char *domain, char** pwd,
- DOM_SID *sid, time_t *pass_last_set_time);
+ struct dom_sid *sid, time_t *pass_last_set_time);
bool secrets_store_trusted_domain_password(const char* domain, const char* pwd,
- const DOM_SID *sid);
+ const struct dom_sid *sid);
bool secrets_delete_machine_password(const char *domain);
bool secrets_delete_machine_password_ex(const char *domain);
bool secrets_delete_domain_sid(const char *domain);