From 5095d7b1c84e7e37f553867d699a1983f74d4314 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Mon, 6 Apr 2009 22:54:44 +1000 Subject: Rework Samba4 to use the new common libcli/auth code In particular, this is the rename from creds_ to netlogon_creds_, as well as other links to use the new common crypto. Andrew Bartlett --- libcli/auth/libcli_auth.h | 5 +++++ libcli/auth/smbencrypt.c | 5 ++--- 2 files changed, 7 insertions(+), 3 deletions(-) (limited to 'libcli/auth') diff --git a/libcli/auth/libcli_auth.h b/libcli/auth/libcli_auth.h index f278ee539e..be43007d85 100644 --- a/libcli/auth/libcli_auth.h +++ b/libcli/auth/libcli_auth.h @@ -24,4 +24,9 @@ #include "libcli/auth/proto.h" #include "libcli/auth/msrpc_parse.h" +#define NTLMSSP_NAME_TYPE_SERVER 0x01 +#define NTLMSSP_NAME_TYPE_DOMAIN 0x02 +#define NTLMSSP_NAME_TYPE_SERVER_DNS 0x03 +#define NTLMSSP_NAME_TYPE_DOMAIN_DNS 0x04 + #endif /* __LIBCLI_AUTH_H__ */ diff --git a/libcli/auth/smbencrypt.c b/libcli/auth/smbencrypt.c index f5a73feadc..7659446b75 100644 --- a/libcli/auth/smbencrypt.c +++ b/libcli/auth/smbencrypt.c @@ -23,10 +23,9 @@ #include "includes.h" #include "system/time.h" -#include "auth/ntlmssp/ntlmssp.h" -#include "auth/ntlmssp/msrpc_parse.h" +#include "../libcli/auth/msrpc_parse.h" #include "../lib/crypto/crypto.h" -#include "libcli/auth/libcli_auth.h" +#include "../libcli/auth/libcli_auth.h" void SMBencrypt_hash(const uint8_t lm_hash[16], const uint8_t *c8, uint8_t p24[24]) { -- cgit