summaryrefslogtreecommitdiff
path: root/libcli/security
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-07-23 09:54:31 +0200
committerStefan Metzmacher <metze@samba.org>2011-07-23 09:55:54 +0200
commit82413e829e03cc73b2caccea09e33f900fa99a4e (patch)
tree148663e568f11896f49e93ef9b3f15bb1c4819ba /libcli/security
parent6219bb98999876c9729f2c1923841709b13313d5 (diff)
downloadsamba-82413e829e03cc73b2caccea09e33f900fa99a4e.tar.gz
samba-82413e829e03cc73b2caccea09e33f900fa99a4e.tar.bz2
samba-82413e829e03cc73b2caccea09e33f900fa99a4e.zip
libcli/security: add some const to marshall_sec_desc[_buf]()
metze
Diffstat (limited to 'libcli/security')
-rw-r--r--libcli/security/secdesc.c4
-rw-r--r--libcli/security/secdesc.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/libcli/security/secdesc.c b/libcli/security/secdesc.c
index 2c8fbc59ca..fcd0828963 100644
--- a/libcli/security/secdesc.c
+++ b/libcli/security/secdesc.c
@@ -261,7 +261,7 @@ struct security_descriptor *dup_sec_desc(TALLOC_CTX *ctx, const struct security_
Convert a secdesc into a byte stream
********************************************************************/
NTSTATUS marshall_sec_desc(TALLOC_CTX *mem_ctx,
- struct security_descriptor *secdesc,
+ const struct security_descriptor *secdesc,
uint8_t **data, size_t *len)
{
DATA_BLOB blob;
@@ -287,7 +287,7 @@ NTSTATUS marshall_sec_desc(TALLOC_CTX *mem_ctx,
********************************************************************/
NTSTATUS marshall_sec_desc_buf(TALLOC_CTX *mem_ctx,
- struct sec_desc_buf *secdesc_buf,
+ const struct sec_desc_buf *secdesc_buf,
uint8_t **data, size_t *len)
{
DATA_BLOB blob;
diff --git a/libcli/security/secdesc.h b/libcli/security/secdesc.h
index 1e6d2e574d..b8190a1e56 100644
--- a/libcli/security/secdesc.h
+++ b/libcli/security/secdesc.h
@@ -56,14 +56,14 @@ struct security_descriptor *dup_sec_desc(TALLOC_CTX *ctx, const struct security_
Convert a secdesc into a byte stream
********************************************************************/
NTSTATUS marshall_sec_desc(TALLOC_CTX *mem_ctx,
- struct security_descriptor *secdesc,
+ const struct security_descriptor *secdesc,
uint8_t **data, size_t *len);
/*******************************************************************
Convert a secdesc_buf into a byte stream
********************************************************************/
NTSTATUS marshall_sec_desc_buf(TALLOC_CTX *mem_ctx,
- struct sec_desc_buf *secdesc_buf,
+ const struct sec_desc_buf *secdesc_buf,
uint8_t **data, size_t *len);
/*******************************************************************