summaryrefslogtreecommitdiff
path: root/source4/param
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2007-09-08 13:34:42 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 15:05:41 -0500
commit7a287e07043cf937e22f8051c1a324d8a30c53e1 (patch)
treefc71bd59d3ce06427d666e8687f8e981c5d13e8c /source4/param
parentdccf3f99e45137b6cd18c1de1c79808ad67130d1 (diff)
downloadsamba-7a287e07043cf937e22f8051c1a324d8a30c53e1.tar.gz
samba-7a287e07043cf937e22f8051c1a324d8a30c53e1.tar.bz2
samba-7a287e07043cf937e22f8051c1a324d8a30c53e1.zip
r25028: Fix more warnings.
(This used to be commit 3aa7ee4a0d8837471deeaa1c5a1f4a0d2a14aa6e)
Diffstat (limited to 'source4/param')
-rw-r--r--source4/param/config.mk1
-rw-r--r--source4/param/secrets.h15
2 files changed, 14 insertions, 2 deletions
diff --git a/source4/param/config.mk b/source4/param/config.mk
index cac95a63dd..5ed1097296 100644
--- a/source4/param/config.mk
+++ b/source4/param/config.mk
@@ -46,6 +46,5 @@ PRIVATE_DEPENDENCIES = LIBLDB
################################################
[SUBSYSTEM::SECRETS]
-PRIVATE_PROTO_HEADER = secrets_proto.h
OBJ_FILES = secrets.o
PRIVATE_DEPENDENCIES = DB_WRAP UTIL_TDB
diff --git a/source4/param/secrets.h b/source4/param/secrets.h
index 44ffdbd8a6..5aabb849c5 100644
--- a/source4/param/secrets.h
+++ b/source4/param/secrets.h
@@ -34,6 +34,19 @@ struct machine_acct_pass {
#define SECRETS_KRBTGT_SEARCH "(&((|(realm=%s)(flatname=%s))(samAccountName=krbtgt)))"
#define SECRETS_PRINCIPAL_SEARCH "(&(|(realm=%s)(flatname=%s))(servicePrincipalName=%s))"
-#include "param/secrets_proto.h"
+/**
+ * Use a TDB to store an incrementing random seed.
+ *
+ * Initialised to the current pid, the very first time Samba starts,
+ * and incremented by one each time it is needed.
+ *
+ * @note Not called by systems with a working /dev/urandom.
+ */
+void secrets_shutdown(void);
+bool secrets_init(void);
+struct ldb_context *secrets_db_connect(TALLOC_CTX *mem_ctx);
+struct dom_sid *secrets_get_domain_sid(TALLOC_CTX *mem_ctx,
+ const char *domain);
+
#endif /* _SECRETS_H */