summaryrefslogtreecommitdiff
path: root/source3/libsmb/smbencrypt.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2002-07-20 11:58:06 +0000
committerAndrew Bartlett <abartlet@samba.org>2002-07-20 11:58:06 +0000
commitea9d3057e9cbd615176a7b98bcd935b6f9b434cb (patch)
treecec15139a83221660b62a305a131ce070f21ac86 /source3/libsmb/smbencrypt.c
parentaff20d822c267f0b2f348f7dfd3946aaf9c06817 (diff)
downloadsamba-ea9d3057e9cbd615176a7b98bcd935b6f9b434cb.tar.gz
samba-ea9d3057e9cbd615176a7b98bcd935b6f9b434cb.tar.bz2
samba-ea9d3057e9cbd615176a7b98bcd935b6f9b434cb.zip
Try to fix up warnings - particularly on the IRIX 64 bit compiler (which had a
distinction between uchar and char). Lots of const etc. Andrew Bartlett (This used to be commit 8196ee908e10db2119e480fe1b0a71b31a16febc)
Diffstat (limited to 'source3/libsmb/smbencrypt.c')
-rw-r--r--source3/libsmb/smbencrypt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/libsmb/smbencrypt.c b/source3/libsmb/smbencrypt.c
index 1ed83042d3..dfa355a7ec 100644
--- a/source3/libsmb/smbencrypt.c
+++ b/source3/libsmb/smbencrypt.c
@@ -28,7 +28,7 @@
This implements the X/Open SMB password encryption
It takes a password ('unix' string), a 8 byte "crypt key"
and puts 24 bytes of encrypted password into p24 */
-void SMBencrypt(const char *passwd, const uchar *c8, uchar *p24)
+void SMBencrypt(const char *passwd, const uchar *c8, uchar p24[24])
{
uchar p21[21];
@@ -337,7 +337,7 @@ BOOL decode_pw_buffer(char in_buffer[516], char *new_pwrd,
SMB signing - setup the MAC key.
************************************************************/
-void cli_calculate_mac_key(struct cli_state *cli, const unsigned char *ntpasswd, const uchar resp[24])
+void cli_calculate_mac_key(struct cli_state *cli, const char *ntpasswd, const uchar resp[24])
{
/* Get first 16 bytes. */
E_md4hash(ntpasswd,&cli->sign_info.mac_key[0]);