diff options
author | Günther Deschner <gd@samba.org> | 2011-02-17 16:10:28 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2011-07-31 22:37:26 +0200 |
commit | 51481c5912288368fd9c8ed4aebbe22a2a330ddc (patch) | |
tree | 4165bdef073c6c7fabef2bb11067b0f89b48a08b /source3/include | |
parent | 3fd1652104717cf9b7eead1979a718e1163341af (diff) | |
download | samba-51481c5912288368fd9c8ed4aebbe22a2a330ddc.tar.gz samba-51481c5912288368fd9c8ed4aebbe22a2a330ddc.tar.bz2 samba-51481c5912288368fd9c8ed4aebbe22a2a330ddc.zip |
s3-secrets: add lsa_secret passdb api.
Guenther
Diffstat (limited to 'source3/include')
-rw-r--r-- | source3/include/secrets.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/source3/include/secrets.h b/source3/include/secrets.h index 01e635c580..4c23335b58 100644 --- a/source3/include/secrets.h +++ b/source3/include/secrets.h @@ -125,4 +125,18 @@ bool secrets_store_generic(const char *owner, const char *key, const char *secre char *secrets_fetch_generic(const char *owner, const char *key); bool secrets_delete_generic(const char *owner, const char *key); +/* The following definitions come from passdb/secrets_lsa.c */ +NTSTATUS lsa_secret_get(TALLOC_CTX *mem_ctx, + const char *secret_name, + DATA_BLOB *secret_current, + NTTIME *secret_current_lastchange, + DATA_BLOB *secret_old, + NTTIME *secret_old_lastchange, + struct security_descriptor **sd); +NTSTATUS lsa_secret_set(const char *secret_name, + DATA_BLOB *secret_current, + DATA_BLOB *secret_old, + struct security_descriptor *sd); +NTSTATUS lsa_secret_delete(const char *secret_name); + #endif /* _SECRETS_H */ |