libcli/auth: add a const to des_crypt112_16()
authorStefan Metzmacher <metze@samba.org>
Fri, 5 Mar 2010 07:22:36 +0000 (08:22 +0100)
committerStefan Metzmacher <metze@samba.org>
Fri, 5 Mar 2010 13:06:18 +0000 (14:06 +0100)
metze

libcli/auth/proto.h
libcli/auth/smbdes.c

index 2ab795ffc2f927032601767bc319f7430eff8cb6..2734db06169a466a0cc854c8accc2e922e42400d 100644 (file)
@@ -192,7 +192,7 @@ void E_old_pw_hash( uint8_t *p14, const uint8_t *in, uint8_t *out);
 void des_crypt128(uint8_t out[8], const uint8_t in[8], const uint8_t key[16]);
 void des_crypt64(uint8_t out[8], const uint8_t in[8], const uint8_t key[8], int forw);
 void des_crypt112(uint8_t out[8], const uint8_t in[8], const uint8_t key[14], int forw);
-void des_crypt112_16(uint8_t out[16], uint8_t in[16], const uint8_t key[14], int forw);
+void des_crypt112_16(uint8_t out[16], const uint8_t in[16], const uint8_t key[14], int forw);
 void sam_rid_crypt(unsigned int rid, const uint8_t *in, uint8_t *out, int forw);
 #undef _PRINTF_ATTRIBUTE
 #define _PRINTF_ATTRIBUTE(a1, a2)
index f052b27de9d5f93b6c734014e8ef3b331486275b..7ee51ce722e8002330df7602ef2cec9b96558047 100644 (file)
@@ -358,7 +358,7 @@ void des_crypt112(uint8_t out[8], const uint8_t in[8], const uint8_t key[14], in
 }
 
 /* des encryption of a 16 byte lump of data with a 112 bit key */
-void des_crypt112_16(uint8_t out[16], uint8_t in[16], const uint8_t key[14], int forw)
+void des_crypt112_16(uint8_t out[16], const uint8_t in[16], const uint8_t key[14], int forw)
 {
         des_crypt56(out, in, key, forw);
         des_crypt56(out + 8, in + 8, key+7, forw);