diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2007-09-08 13:34:42 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 15:05:41 -0500 |
commit | 7a287e07043cf937e22f8051c1a324d8a30c53e1 (patch) | |
tree | fc71bd59d3ce06427d666e8687f8e981c5d13e8c /source4/param/secrets.h | |
parent | dccf3f99e45137b6cd18c1de1c79808ad67130d1 (diff) | |
download | samba-7a287e07043cf937e22f8051c1a324d8a30c53e1.tar.gz |
r25028: Fix more warnings.
(This used to be commit 3aa7ee4a0d8837471deeaa1c5a1f4a0d2a14aa6e)
Diffstat (limited to 'source4/param/secrets.h')
-rw-r--r-- | source4/param/secrets.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/source4/param/secrets.h b/source4/param/secrets.h index 44ffdbd8a68..5aabb849c5c 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 */ |