diff options
author | Stefan Metzmacher <metze@samba.org> | 2010-03-05 08:22:36 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2010-03-05 14:06:18 +0100 |
commit | 6eedba102b58944c462e913e2c97a37b0b83254c (patch) | |
tree | 4196469d06ef72dd329eaa5eaf381bf6429d378a /libcli/auth | |
parent | 31293c64a323eb59fd8e81cd44bb33768a43e0c0 (diff) | |
download | samba-6eedba102b58944c462e913e2c97a37b0b83254c.tar.gz samba-6eedba102b58944c462e913e2c97a37b0b83254c.tar.bz2 samba-6eedba102b58944c462e913e2c97a37b0b83254c.zip |
libcli/auth: add a const to des_crypt112_16()
metze
Diffstat (limited to 'libcli/auth')
-rw-r--r-- | libcli/auth/proto.h | 2 | ||||
-rw-r--r-- | libcli/auth/smbdes.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/libcli/auth/proto.h b/libcli/auth/proto.h index 2ab795ffc2..2734db0616 100644 --- a/libcli/auth/proto.h +++ b/libcli/auth/proto.h @@ -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) diff --git a/libcli/auth/smbdes.c b/libcli/auth/smbdes.c index f052b27de9..7ee51ce722 100644 --- a/libcli/auth/smbdes.c +++ b/libcli/auth/smbdes.c @@ -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); |