libcli/auth: add some const to SMBNTencrypt_hash() and SMBNTencrypt()
authorStefan Metzmacher <metze@samba.org>
Wed, 14 Sep 2011 13:56:23 +0000 (15:56 +0200)
committerStefan Metzmacher <metze@samba.org>
Wed, 14 Sep 2011 17:49:24 +0000 (19:49 +0200)
metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed Sep 14 19:49:24 CEST 2011 on sn-devel-104

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

index 34a0052f7a4804e547c350713c18268c7bce1ddf..3d054742172ab57641c2f995ef357e62e9682e80 100644 (file)
@@ -112,8 +112,8 @@ bool ntv2_owf_gen(const uint8_t owf[16],
                  bool upper_case_domain, /* Transform the domain into UPPER case */
                  uint8_t kr_buf[16]);
 void SMBOWFencrypt(const uint8_t passwd[16], const uint8_t *c8, uint8_t p24[24]);
-void SMBNTencrypt_hash(const uint8_t nt_hash[16], uint8_t *c8, uint8_t *p24);
-void SMBNTencrypt(const char *passwd, uint8_t *c8, uint8_t *p24);
+void SMBNTencrypt_hash(const uint8_t nt_hash[16], const uint8_t *c8, uint8_t *p24);
+void SMBNTencrypt(const char *passwd, const uint8_t *c8, uint8_t *p24);
 void SMBOWFencrypt_ntv2(const uint8_t kr[16],
                        const DATA_BLOB *srv_chal,
                        const DATA_BLOB *smbcli_chal,
index 66fdbd25a80ffdaa2e546c775217d6d4b1ce56d1..37d567218fbf541ef4bb00b6472b6a3d7d95af3f 100644 (file)
@@ -274,7 +274,7 @@ void SMBOWFencrypt(const uint8_t passwd[16], const uint8_t *c8, uint8_t p24[24])
 
 /* Does the des encryption. */
 
-void SMBNTencrypt_hash(const uint8_t nt_hash[16], uint8_t *c8, uint8_t *p24)
+void SMBNTencrypt_hash(const uint8_t nt_hash[16], const uint8_t *c8, uint8_t *p24)
 {
        uint8_t p21[21];
 
@@ -292,7 +292,7 @@ void SMBNTencrypt_hash(const uint8_t nt_hash[16], uint8_t *c8, uint8_t *p24)
 
 /* Does the NT MD4 hash then des encryption. Plaintext version of the above. */
 
-void SMBNTencrypt(const char *passwd, uint8_t *c8, uint8_t *p24)
+void SMBNTencrypt(const char *passwd, const uint8_t *c8, uint8_t *p24)
 {
        uint8_t nt_hash[16];
        E_md4hash(passwd, nt_hash);