summaryrefslogtreecommitdiff
path: root/libcli/auth
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2009-03-17 14:03:02 +1100
committerAndrew Bartlett <abartlet@samba.org>2009-04-14 16:23:41 +1000
commit6c8f7e400540421320e3cbd80f7e1a9551dfed14 (patch)
tree0dea32e3571e489fd9fd8a66f80eb060c3594d51 /libcli/auth
parenta19966375aeab5627308379219361de7053189fd (diff)
downloadsamba-6c8f7e400540421320e3cbd80f7e1a9551dfed14.tar.gz
samba-6c8f7e400540421320e3cbd80f7e1a9551dfed14.tar.bz2
samba-6c8f7e400540421320e3cbd80f7e1a9551dfed14.zip
Port Samba4 to the new combined libcli/auth functions
For example, some of the new shared functionality was previously in the wkssvc torture test. Andrew Bartlett
Diffstat (limited to 'libcli/auth')
-rw-r--r--libcli/auth/config.mk5
-rw-r--r--libcli/auth/smbencrypt.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/libcli/auth/config.mk b/libcli/auth/config.mk
index 0d440c0f66..5428f04433 100644
--- a/libcli/auth/config.mk
+++ b/libcli/auth/config.mk
@@ -1,3 +1,8 @@
+[SUBSYSTEM::ntlm_check]
+PRIVATE_DEPENDENCIES = LIBSAMBA-UTIL
+
+ntlm_check_OBJ_FILES = $(addprefix $(libclicommonsrcdir)/auth/, ntlm_check.o)
+
[SUBSYSTEM::MSRPC_PARSE]
MSRPC_PARSE_OBJ_FILES = $(addprefix $(libclicommonsrcdir)/auth/, msrpc_parse.o)
diff --git a/libcli/auth/smbencrypt.c b/libcli/auth/smbencrypt.c
index bcb40acda1..f5a73feadc 100644
--- a/libcli/auth/smbencrypt.c
+++ b/libcli/auth/smbencrypt.c
@@ -538,7 +538,7 @@ bool encode_pw_buffer(uint8_t buffer[516], const char *password, int string_flag
/* the incoming buffer can be any alignment. */
string_flags |= STR_NOALIGN;
- new_pw_len = push_string(new_pw, new_pw,
+ new_pw_len = push_string(new_pw,
password,
sizeof(new_pw), string_flags);