From: Stefan Metzmacher Date: Tue, 1 Apr 2008 09:00:59 +0000 (+0200) Subject: passdb/secrets: add secrets_db_ctx() to get the db_context X-Git-Tag: samba-3.3.0pre1~2969 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=986bc7e8b260265da019b67ec751509eb589d24b;p=thirdparty%2Fsamba.git passdb/secrets: add secrets_db_ctx() to get the db_context metze --- diff --git a/source/passdb/secrets.c b/source/passdb/secrets.c index 06bbd96353c..8d08d90dcf7 100644 --- a/source/passdb/secrets.c +++ b/source/passdb/secrets.c @@ -89,6 +89,15 @@ bool secrets_init(void) return True; } +struct db_context *secrets_db_ctx(void) +{ + if (!secrets_init()) { + return NULL; + } + + return db_ctx; +} + /* * close secrets.tdb */