diff options
author | Stefan Metzmacher <metze@samba.org> | 2008-12-15 18:46:37 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2008-12-29 21:10:49 +0100 |
commit | 0544734309feea44e8d449737a9934231f63693d (patch) | |
tree | 98286bf9580d96ae2ef26d8610efadb461e0c7e4 /source3/include/proto.h | |
parent | 60b366369e7653d9981b4ebd147667400974ccb9 (diff) | |
download | samba-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/proto.h')
-rw-r--r-- | source3/include/proto.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h index 08260517ff..b874beb30b 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -4440,8 +4440,9 @@ NTSTATUS local_password_change(const char *user_name, const char *new_passwd, char **pp_err_str, char **pp_msg_str); -bool init_sam_from_buffer_v3(struct samu *sampass, uint8 *buf, uint32 buflen); -uint32 init_buffer_from_sam_v3 (uint8 **buf, struct samu *sampass, bool size_only); +bool init_samu_from_buffer(struct samu *sampass, uint32_t level, + uint8 *buf, uint32 buflen); +uint32 init_buffer_from_samu (uint8 **buf, struct samu *sampass, bool size_only); bool pdb_copy_sam_account(struct samu *dst, struct samu *src ); bool pdb_update_bad_password_count(struct samu *sampass, bool *updated); bool pdb_update_autolock_flag(struct samu *sampass, bool *updated); |