]> git.ipfire.org Git - thirdparty/squid.git/commit - helpers/ntlm_auth/fake/ntlm_fake_auth.cc
NTLM helpers cleanup pt 3: migrate libsmbval into libntlmauth
authorAmos Jeffries <squid3@treenet.co.nz>
Wed, 30 Jun 2010 12:32:50 +0000 (00:32 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Wed, 30 Jun 2010 12:32:50 +0000 (00:32 +1200)
commit1dcf61eb8b17dc47e6ba3ed0921caa25fc1c232b
tree98a29f5e1839c950c0284839dc2bb01de2128d0e
parent513b3ca009a9ed17cf3bb8fe1b33de0d748f80e7
NTLM helpers cleanup pt 3: migrate libsmbval into libntlmauth

Library changes:
* ntlmauth.* files moved to libntlmauth/

* helpers/ntlm_auth/smb_lm/smbval moved to libntlmauth/

* No behaviour changes. Since I can't test the deeper logics.
  Just enough to make the code built with portable types available in Squid

* API shuffled slightly to use less .h and to remove all external uses of
  private *-priv.h definitions.

Library now provides three NTLM backend API:
  libntlmauth/ntlmauth.h  - NTLM packet handling
  libntlmauth/smb.h       - SMB LM credential validation
  libntlmauth/rfcnb.h     - RFCNB (NetBIOS) domain server communications

Helper Changes:

* NTLM helpers tweaked slightly to build with the adjusted libntlmauth API
  and ntlm_smb_lm_auth helper to build as C++

* automake logics updated to obey --disable-auth and --disable-auth-ntlm

NOTE: There will be extra code safety and testing benefits gained by
      converting libntlmauth to C++ as well. But that requries someone who
      can test the code behaviour during the upgrade. For now this wil do.
45 files changed:
Makefile.am
configure.in
doc/release-notes/release-3.2.sgml
helpers/Makefile.am
helpers/negotiate_auth/mswin_sspi/Makefile.am
helpers/ntlm_auth/fake/Makefile.am
helpers/ntlm_auth/fake/ntlm_fake_auth.cc
helpers/ntlm_auth/smb_lm/Makefile.am
helpers/ntlm_auth/smb_lm/libntlmssp.c [deleted file]
helpers/ntlm_auth/smb_lm/ntlm_smb_lm_auth.cc [moved from helpers/ntlm_auth/smb_lm/ntlm_smb_lm_auth.c with 60% similarity]
helpers/ntlm_auth/smb_lm/ntlm_smb_lm_auth.h [deleted file]
helpers/ntlm_auth/smb_lm/smbval/Makefile.am [deleted file]
helpers/ntlm_auth/smb_lm/smbval/rfcnb-common.h [deleted file]
helpers/ntlm_auth/smb_lm/smbval/rfcnb-error.h [deleted file]
helpers/ntlm_auth/smb_lm/smbval/rfcnb-io.h [deleted file]
helpers/ntlm_auth/smb_lm/smbval/rfcnb-util.h [deleted file]
helpers/ntlm_auth/smb_lm/smbval/rfcnb.h [deleted file]
helpers/ntlm_auth/smb_lm/smbval/smbencrypt.h [deleted file]
helpers/ntlm_auth/smb_lm/smbval/smblib.h [deleted file]
helpers/ntlm_auth/smb_lm/smbval/std-defines.h [deleted file]
helpers/ntlm_auth/smb_lm/smbval/std-includes.h [deleted file]
helpers/ntlm_auth/smb_lm/smbval/valid.h [deleted file]
lib/Makefile.am
lib/sspwin32.c
libntlmauth/Makefile.am [new file with mode: 0644]
libntlmauth/ntlmauth.cc [moved from lib/ntlmauth.c with 72% similarity]
libntlmauth/ntlmauth.h [moved from include/ntlmauth.h with 80% similarity]
libntlmauth/rfcnb-io.c [moved from helpers/ntlm_auth/smb_lm/smbval/rfcnb-io.c with 98% similarity]
libntlmauth/rfcnb-priv.h [moved from helpers/ntlm_auth/smb_lm/smbval/rfcnb-priv.h with 75% similarity]
libntlmauth/rfcnb-session.c [moved from helpers/ntlm_auth/smb_lm/smbval/session.c with 96% similarity]
libntlmauth/rfcnb-util.c [moved from helpers/ntlm_auth/smb_lm/smbval/rfcnb-util.c with 98% similarity]
libntlmauth/rfcnb.h [new file with mode: 0644]
libntlmauth/smb-byteorder.h [moved from helpers/ntlm_auth/smb_lm/smbval/byteorder.h with 96% similarity]
libntlmauth/smb-des.c [moved from helpers/ntlm_auth/smb_lm/smbval/smbdes.c with 99% similarity]
libntlmauth/smb-des.h [moved from helpers/ntlm_auth/smb_lm/smbval/smbdes.h with 100% similarity]
libntlmauth/smb-encrypt.c [moved from helpers/ntlm_auth/smb_lm/smbval/smbencrypt.c with 84% similarity]
libntlmauth/smb-md4.c [moved from helpers/ntlm_auth/smb_lm/smbval/md4.c with 88% similarity]
libntlmauth/smb-md4.h [moved from helpers/ntlm_auth/smb_lm/smbval/md4.h with 100% similarity]
libntlmauth/smb.h [moved from helpers/ntlm_auth/smb_lm/smbval/smblib-common.h with 52% similarity]
libntlmauth/smblib-priv.h [moved from helpers/ntlm_auth/smb_lm/smbval/smblib-priv.h with 90% similarity]
libntlmauth/smblib-util.c [moved from helpers/ntlm_auth/smb_lm/smbval/smblib-util.c with 98% similarity]
libntlmauth/smblib.c [moved from helpers/ntlm_auth/smb_lm/smbval/smblib.c with 95% similarity]
libntlmauth/smblmauth.c [moved from helpers/ntlm_auth/smb_lm/smbval/valid.c with 74% similarity]
libntlmauth/smblmauth.h [new file with mode: 0644]
libntlmauth/support_bits.cci [new file with mode: 0644]