1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

passdb/secrets: add secrets_db_ctx() to get the db_context

metze
This commit is contained in:
Stefan Metzmacher 2008-04-01 11:00:59 +02:00
parent 983fd58805
commit 986bc7e8b2

View File

@ -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
*/