summaryrefslogtreecommitdiff
path: root/source3/lib/util.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2001-07-07 07:00:15 +0000
committerAndrew Bartlett <abartlet@samba.org>2001-07-07 07:00:15 +0000
commit7be19ad10fc30fab199653facd11496170219e1b (patch)
tree2d4e14c153cc19e5bf893b47f28a4e8c4799277c /source3/lib/util.c
parent1c3c9952210346aff1138a4417ff3ceff3ecd9c3 (diff)
downloadsamba-7be19ad10fc30fab199653facd11496170219e1b.tar.gz
samba-7be19ad10fc30fab199653facd11496170219e1b.tar.bz2
samba-7be19ad10fc30fab199653facd11496170219e1b.zip
Add backend encryption support for NTLMv2.
The leg-work for this was done by the folks at samba-tng.org, I'm just bringing it accross to HEAD. The MD5 implementation is seperatly derived, and does not have the copyright problems that the one in TNG has. Also add const to a few places where it makes sence. Andrew Bartlett (This used to be commit 8df8e841445dfe09fc7a06bb55d12adc3fecb345)
Diffstat (limited to 'source3/lib/util.c')
-rw-r--r--source3/lib/util.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/lib/util.c b/source3/lib/util.c
index d220b2c531..78e801087f 100644
--- a/source3/lib/util.c
+++ b/source3/lib/util.c
@@ -1450,16 +1450,16 @@ void out_data(FILE *f,char *buf1,int len, int per_line)
}
}
-void print_asc(int level, unsigned char *buf,int len)
+void print_asc(int level, const unsigned char *buf,int len)
{
int i;
for (i=0;i<len;i++)
DEBUG(level,("%c", isprint(buf[i])?buf[i]:'.'));
}
-void dump_data(int level,char *buf1,int len)
+void dump_data(int level, const char *buf1,int len)
{
- unsigned char *buf = (unsigned char *)buf1;
+ const unsigned char *buf = (const unsigned char *)buf1;
int i=0;
if (len<=0) return;