summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2010-09-20 11:20:37 +0200
committerMichael Adam <obnox@samba.org>2010-09-21 06:53:32 +0200
commit5fe2abb2f85afe2e8655257446c7dd03a08b2d57 (patch)
treeb1fcd53e20cf6de31d1e417ca3edc42a088d4503
parente869af9e0e6e460d8ae225310f58f458e094e86f (diff)
downloadsamba-5fe2abb2f85afe2e8655257446c7dd03a08b2d57.tar.gz
samba-5fe2abb2f85afe2e8655257446c7dd03a08b2d57.tar.bz2
samba-5fe2abb2f85afe2e8655257446c7dd03a08b2d57.zip
s3:services_db: remove unused legacy function svcctl_fetch_regvalues().
-rw-r--r--source3/include/proto.h1
-rw-r--r--source3/services/services_db.c37
2 files changed, 0 insertions, 38 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h
index a77c90f308..3349e028fb 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -4404,7 +4404,6 @@ const char *svcctl_get_string_value(TALLOC_CTX *ctx, const char *key_name,
struct security_token *token);
const char *svcctl_lookup_dispname(TALLOC_CTX *ctx, const char *name, struct security_token *token );
const char *svcctl_lookup_description(TALLOC_CTX *ctx, const char *name, struct security_token *token );
-struct regval_ctr *svcctl_fetch_regvalues( const char *name, struct security_token *token );
/* The following definitions come from services/svc_netlogon.c */
diff --git a/source3/services/services_db.c b/source3/services/services_db.c
index bd34ad113c..4afbf61581 100644
--- a/source3/services/services_db.c
+++ b/source3/services/services_db.c
@@ -691,40 +691,3 @@ const char *svcctl_lookup_description(TALLOC_CTX *ctx, const char *name, struct
return description;
}
-
-/********************************************************************
-********************************************************************/
-
-struct regval_ctr *svcctl_fetch_regvalues(const char *name, struct security_token *token)
-{
- struct registry_key_handle *key = NULL;
- struct regval_ctr *values = NULL;
- char *path = NULL;
- WERROR wresult;
-
- /* now add the security descriptor */
-
- if (asprintf(&path, "%s\\%s", KEY_SERVICES, name) < 0) {
- return NULL;
- }
- wresult = regkey_open_internal( NULL, &key, path, token,
- REG_KEY_READ );
- if ( !W_ERROR_IS_OK(wresult) ) {
- DEBUG(0,("svcctl_fetch_regvalues: key lookup failed! [%s] (%s)\n",
- path, win_errstr(wresult)));
- SAFE_FREE(path);
- return NULL;
- }
- SAFE_FREE(path);
-
- wresult = regval_ctr_init(NULL, &values);
- if (!W_ERROR_IS_OK(wresult)) {
- DEBUG(0,("svcctl_fetch_regvalues: talloc() failed!\n"));
- TALLOC_FREE( key );
- return NULL;
- }
- fetch_reg_values( key, values );
-
- TALLOC_FREE( key );
- return values;
-}