From ffd04cdb54e55d8b5785863c1232f7c9758da1a0 Mon Sep 17 00:00:00 2001 From: hno <> Date: Fri, 30 Nov 2001 16:50:28 +0000 Subject: [PATCH] Some minor cleanups of NTLMSSP to get rid of compiler warnings * Unused variable * Missing prototypes for SMBencrypt() and SMBNTencrypt() --- helpers/ntlm_auth/SMB/libntlmssp.c | 3 ++- helpers/ntlm_auth/SMB/smbval/smbencrypt.h | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) 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); + -- 2.47.3