From 7a8e34fe868158ee5591e1640477d28c62de5b67 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Mon, 17 May 2010 13:39:42 +1000 Subject: s3:split secrets.c to put machine account secrets in a new file MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- source3/include/proto.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'source3/include') 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); -- cgit