summaryrefslogtreecommitdiff
path: root/libcli/auth/schannel_state_tdb.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2010-06-23 10:31:50 +1000
committerJeremy Allison <jra@samba.org>2010-06-25 11:57:23 -0700
commit825b2f456c136b33d139ee76e58426437bce65b8 (patch)
tree69f640e2f0c2bf872bf78f5f33bd648a695bb718 /libcli/auth/schannel_state_tdb.c
parent6d973607c3bfec6d82347727b1bf800348c74202 (diff)
downloadsamba-825b2f456c136b33d139ee76e58426437bce65b8.tar.gz
samba-825b2f456c136b33d139ee76e58426437bce65b8.tar.bz2
samba-825b2f456c136b33d139ee76e58426437bce65b8.zip
libcli/auth make open_schannel_session_store() public
This will allow TDB_CLEAR_IF_FIRST to be used Signed-off-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'libcli/auth/schannel_state_tdb.c')
-rw-r--r--libcli/auth/schannel_state_tdb.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/libcli/auth/schannel_state_tdb.c b/libcli/auth/schannel_state_tdb.c
index 9e767810a1..0e4ab06515 100644
--- a/libcli/auth/schannel_state_tdb.c
+++ b/libcli/auth/schannel_state_tdb.c
@@ -35,15 +35,12 @@
#define SECRETS_SCHANNEL_STATE "SECRETS/SCHANNEL"
/******************************************************************************
- Open or create the schannel session store tdb.
+ Open or create the schannel session store tdb. Non-static so it can
+ be called from parent processes to corectly handle TDB_CLEAR_IF_FIRST
*******************************************************************************/
-#define SCHANNEL_STORE_VERSION_1 1
-#define SCHANNEL_STORE_VERSION_2 2 /* should not be used */
-#define SCHANNEL_STORE_VERSION_CURRENT SCHANNEL_STORE_VERSION_1
-
-static struct tdb_wrap *open_schannel_session_store(TALLOC_CTX *mem_ctx,
- const char *private_dir)
+struct tdb_wrap *open_schannel_session_store(TALLOC_CTX *mem_ctx,
+ const char *private_dir)
{
TDB_DATA vers;
uint32_t ver;