From 859a1e04fb2cb05144c91d30cc5f88a6bfd16596 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Tue, 4 May 2010 11:44:12 +0200 Subject: s3-spoolss: Added winreg security descriptor functions. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Günther Deschner --- source3/rpc_server/srv_spoolss_util.h | 38 +++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) (limited to 'source3/rpc_server/srv_spoolss_util.h') diff --git a/source3/rpc_server/srv_spoolss_util.h b/source3/rpc_server/srv_spoolss_util.h index fbb34bb158..9b79ce5b67 100644 --- a/source3/rpc_server/srv_spoolss_util.h +++ b/source3/rpc_server/srv_spoolss_util.h @@ -129,6 +129,44 @@ WERROR winreg_get_printer(TALLOC_CTX *mem_ctx, const char *printer, struct spoolss_PrinterInfo2 **pinfo2); +/** + * @brief Get the security descriptor for a printer. + * + * @param[in] mem_ctx The talloc memory context to use. + * + * @param[in] server_info The server supplied session info. + * + * @param[in] sharename The share name. + * + * @param[out] psecdesc A pointer to store the security descriptor. + * + * @return On success WERR_OK, a corresponding DOS error is + * something went wrong. + */ +WERROR winreg_get_printer_secdesc(TALLOC_CTX *mem_ctx, + struct auth_serversupplied_info *server_info, + const char *sharename, + struct spoolss_security_descriptor **psecdesc); + +/** + * @brief Set the security descriptor for a printer. + * + * @param[in] mem_ctx The talloc memory context to use. + * + * @param[in] server_info The server supplied session info. + * + * @param[in] sharename The share name. + * + * @param[in] secdesc The security descriptor to save. + * + * @return On success WERR_OK, a corresponding DOS error is + * something went wrong. + */ +WERROR winreg_set_printer_secdesc(TALLOC_CTX *mem_ctx, + struct auth_serversupplied_info *server_info, + const char *sharename, + const struct spoolss_security_descriptor *secdesc); + /** * @internal * -- cgit