]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
libcli/auth: add const to set_pw_in_buffer()
authorStefan Metzmacher <metze@samba.org>
Tue, 13 Jun 2017 09:17:03 +0000 (11:17 +0200)
committerStefan Metzmacher <metze@samba.org>
Thu, 13 Jul 2017 08:51:19 +0000 (10:51 +0200)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=12782

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
(cherry picked from commit 1b48c8515ed8fd29204c82cc47f958f4636cd494)

libcli/auth/proto.h
libcli/auth/smbencrypt.c

index cc9ae336685f1fe447e57f01ef6eafbec09e6d7e..a03f45ed7f369f7d74b274527c1a95a9df619db7 100644 (file)
@@ -187,7 +187,7 @@ void encode_or_decode_arc4_passwd_buffer(unsigned char pw_buf[532], const DATA_B
  encode a password buffer with an already unicode password.  The
  rest of the buffer is filled with random data to make it harder to attack.
 ************************************************************/
-bool set_pw_in_buffer(uint8_t buffer[516], DATA_BLOB *password);
+bool set_pw_in_buffer(uint8_t buffer[516], const DATA_BLOB *password);
 
 /***********************************************************
  decode a password buffer
index ebf6812fabe46c4fcdcdb66aabe1d61dec05c608..afd9286b701de6fc437aa82099e7628aabcd695b 100644 (file)
@@ -804,7 +804,7 @@ void encode_or_decode_arc4_passwd_buffer(unsigned char pw_buf[532], const DATA_B
  encode a password buffer with an already unicode password.  The
  rest of the buffer is filled with random data to make it harder to attack.
 ************************************************************/
-bool set_pw_in_buffer(uint8_t buffer[516], DATA_BLOB *password)
+bool set_pw_in_buffer(uint8_t buffer[516], const DATA_BLOB *password)
 {
        if (password->length > 512) {
                return false;