diff options
author | Volker Lendecke <vl@samba.org> | 2010-03-01 16:18:23 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2010-03-01 17:53:22 +0100 |
commit | d6a687250625b62242efc8be0aa50ffc448a503a (patch) | |
tree | 922043b9c9ac87064436d6bb0925e8f3696b4415 /source3/include | |
parent | c103fbc919d0f5df24fbfefd5153683ab938b779 (diff) | |
download | samba-d6a687250625b62242efc8be0aa50ffc448a503a.tar.gz samba-d6a687250625b62242efc8be0aa50ffc448a503a.tar.bz2 samba-d6a687250625b62242efc8be0aa50ffc448a503a.zip |
s3: Abstract access to sessionid.tdb, similar to conn_tdb.c
Diffstat (limited to 'source3/include')
-rw-r--r-- | source3/include/proto.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h index 39aca5f76a..93156f8779 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -7007,6 +7007,19 @@ bool session_claim(user_struct *vuser); void session_yield(user_struct *vuser); int list_sessions(TALLOC_CTX *mem_ctx, struct sessionid **session_list); +/* The following definitions come from lib/sessionid_tdb.c */ + +bool sessionid_init(void); +struct db_record *sessionid_fetch_record(TALLOC_CTX *mem_ctx, const char *key); +int sessionid_traverse(int (*fn)(struct db_record *rec, const char *key, + struct sessionid *session, + void *private_data), + void *private_data); +int sessionid_traverse_read(int (*fn)(const char *key, + struct sessionid *session, + void *private_data), + void *private_data); + /* The following definitions come from smbd/sesssetup.c */ NTSTATUS parse_spnego_mechanisms(DATA_BLOB blob_in, |