]> git.ipfire.org Git - thirdparty/squid.git/commit
Fix many syntax warnings in smb_lm
authorAmos Jeffries <amosjeffries@squid-cache.org>
Fri, 24 Apr 2009 07:06:46 +0000 (01:06 -0600)
committerAmos Jeffries <amosjeffries@squid-cache.org>
Fri, 24 Apr 2009 07:06:46 +0000 (01:06 -0600)
commita19a836de24b3e33b64f4359ca1f5b87fe8b8eab
tree06cd0e42b016ddbb05185ef8323604adead3572a
parent232820e290235a7654ada7b1b415a6e7c1bef78d
Fix many syntax warnings in smb_lm

Now compiled with the same CFLAGS as the rest of Squid.
This is tested up to gcc 3.4 standards now. Some may still
be raised by later gcc versions.

 - fixes const correctness on several functions and globals
 - fixes .h wrapping on several files
 - adds prototype definitions for all functions
 - adds several missing includes
 - adds docs for some functions to auto-doc output

TODO:
 Not all code audited, only the bits shown broken right now.
 This helper contains a large amount of nasty duplicate code
 and re-implements several encryption algoritms that should
 probably be sourced from secure places.
18 files changed:
helpers/ntlm_auth/smb_lm/libntlmssp.c
helpers/ntlm_auth/smb_lm/ntlm_smb_lm_auth.c
helpers/ntlm_auth/smb_lm/smbval/md4.c
helpers/ntlm_auth/smb_lm/smbval/md4.h
helpers/ntlm_auth/smb_lm/smbval/rfcnb-common.h
helpers/ntlm_auth/smb_lm/smbval/rfcnb-error.h
helpers/ntlm_auth/smb_lm/smbval/rfcnb-io.c
helpers/ntlm_auth/smb_lm/smbval/rfcnb-io.h
helpers/ntlm_auth/smb_lm/smbval/rfcnb.h
helpers/ntlm_auth/smb_lm/smbval/session.c
helpers/ntlm_auth/smb_lm/smbval/smbdes.c
helpers/ntlm_auth/smb_lm/smbval/smbdes.h
helpers/ntlm_auth/smb_lm/smbval/smbencrypt.c
helpers/ntlm_auth/smb_lm/smbval/smbencrypt.h
helpers/ntlm_auth/smb_lm/smbval/smblib-priv.h
helpers/ntlm_auth/smb_lm/smbval/smblib-util.c
helpers/ntlm_auth/smb_lm/smbval/smblib.c
helpers/ntlm_auth/smb_lm/smbval/valid.c