summaryrefslogtreecommitdiff
path: root/source3/include/passdb.h
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2008-12-15 18:46:37 +0100
committerStefan Metzmacher <metze@samba.org>2008-12-29 21:10:49 +0100
commit0544734309feea44e8d449737a9934231f63693d (patch)
tree98286bf9580d96ae2ef26d8610efadb461e0c7e4 /source3/include/passdb.h
parent60b366369e7653d9981b4ebd147667400974ccb9 (diff)
downloadsamba-0544734309feea44e8d449737a9934231f63693d.tar.gz
samba-0544734309feea44e8d449737a9934231f63693d.tar.bz2
samba-0544734309feea44e8d449737a9934231f63693d.zip
s3:passdb: make marshalling struct samu from and to a buffer more generic
This marshalling isn't specific to tdbsam and it's ugly to have the related functions in two different files. metze
Diffstat (limited to 'source3/include/passdb.h')
-rw-r--r--source3/include/passdb.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/source3/include/passdb.h b/source3/include/passdb.h
index 744b723c83..bd0929fc75 100644
--- a/source3/include/passdb.h
+++ b/source3/include/passdb.h
@@ -95,7 +95,13 @@ typedef struct logon_cache_struct {
uint16 bad_password_count;
time_t bad_password_time;
} LOGIN_CACHE;
-
+
+#define SAMU_BUFFER_V0 0
+#define SAMU_BUFFER_V1 1
+#define SAMU_BUFFER_V2 2
+#define SAMU_BUFFER_V3 3
+#define SAMU_BUFFER_LATEST SAMU_BUFFER_V3
+
struct samu {
struct pdb_methods *methods;