From: hno <> Date: Fri, 30 Nov 2001 16:50:28 +0000 (+0000) Subject: Some minor cleanups of NTLMSSP to get rid of compiler warnings X-Git-Tag: SQUID_3_0_PRE1~1269 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ffd04cdb54e55d8b5785863c1232f7c9758da1a0;p=thirdparty%2Fsquid.git Some minor cleanups of NTLMSSP to get rid of compiler warnings * Unused variable * Missing prototypes for SMBencrypt() and SMBNTencrypt() --- diff --git a/helpers/ntlm_auth/SMB/libntlmssp.c b/helpers/ntlm_auth/SMB/libntlmssp.c index fee7336ff3..4f45b96bfa 100644 --- a/helpers/ntlm_auth/SMB/libntlmssp.c +++ b/helpers/ntlm_auth/SMB/libntlmssp.c @@ -18,6 +18,7 @@ typedef unsigned char uchar; #include "ntlm.h" #include "util.h" /* from Squid */ #include "valid.h" +#include "smbencrypt.h" #if HAVE_STRING_H #include @@ -196,7 +197,7 @@ char * ntlm_check_auth(ntlm_authenticate * auth, int auth_length) { int rv; - char pass[25], encrypted_pass[40]; + char pass[25] /*, encrypted_pass[40] */; char *domain = credentials; char *user; lstring tmp; diff --git a/helpers/ntlm_auth/SMB/smbval/smbencrypt.h b/helpers/ntlm_auth/SMB/smbval/smbencrypt.h index 9dd72a9178..bf3b13f2b5 100644 --- a/helpers/ntlm_auth/SMB/smbval/smbencrypt.h +++ b/helpers/ntlm_auth/SMB/smbval/smbencrypt.h @@ -1 +1,3 @@ void SMBencrypt(uchar * passwd, uchar * c8, uchar * p24); +void SMBNTencrypt(uchar * passwd, uchar * c8, uchar * p24); +