libcli/security: add some const to marshall_sec_desc[_buf]()
authorStefan Metzmacher <metze@samba.org>
Sat, 23 Jul 2011 07:54:31 +0000 (09:54 +0200)
committerStefan Metzmacher <metze@samba.org>
Sat, 23 Jul 2011 07:55:54 +0000 (09:55 +0200)
metze

libcli/security/secdesc.c
libcli/security/secdesc.h

index 2c8fbc59ca4b370e922bccbf2f9263daae1ec61d..fcd0828963a016d1bf3c7db0acc24e96d5f56190 100644 (file)
@@ -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;
index 1e6d2e574d712e951a62289d30c048f9a239000b..b8190a1e56443975ba2e17cb11c3737981dd172b 100644 (file)
@@ -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);
 
 /*******************************************************************