summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2003-01-15 12:52:38 +0000
committerAndrew Bartlett <abartlet@samba.org>2003-01-15 12:52:38 +0000
commit58fe4d9c20203f6f55c8e995402e156becb91b3e (patch)
treed357827fbbc9caed4796b498498f7667f0368e91 /source3/include
parent3095cbd63526ae474482e45175695b9fdf41cd3e (diff)
downloadsamba-58fe4d9c20203f6f55c8e995402e156becb91b3e.tar.gz
samba-58fe4d9c20203f6f55c8e995402e156becb91b3e.tar.bz2
samba-58fe4d9c20203f6f55c8e995402e156becb91b3e.zip
Refactor the NTLMSSP code again - this time we use function pointers to
eliminate the dependency on the auth subsystem. The next step is to add the required code to 'ntlm_auth', for export to Squid etc. Andrew Bartlett (This used to be commit 9e48ab86da40e4c1cafa70c04fb9ebdcce23dfab)
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/auth.h9
-rw-r--r--source3/include/ntlmssp.h17
2 files changed, 22 insertions, 4 deletions
diff --git a/source3/include/auth.h b/source3/include/auth.h
index 846662d17c..e37f181082 100644
--- a/source3/include/auth.h
+++ b/source3/include/auth.h
@@ -149,4 +149,13 @@ struct auth_init_function_entry {
auth_init_function init;
};
+
+typedef struct auth_ntlmssp_state
+{
+ TALLOC_CTX *mem_ctx;
+ struct auth_context *auth_context;
+ struct auth_serversupplied_info *server_info;
+ struct ntlmssp_state *ntlmssp_state;
+} AUTH_NTLMSSP_STATE;
+
#endif /* _SMBAUTH_H_ */
diff --git a/source3/include/ntlmssp.h b/source3/include/ntlmssp.h
index 673be83532..a8fe345cc5 100644
--- a/source3/include/ntlmssp.h
+++ b/source3/include/ntlmssp.h
@@ -71,9 +71,18 @@ typedef struct ntlmssp_state
{
TALLOC_CTX *mem_ctx;
enum NTLMSSP_ROLE role;
- struct auth_context *auth_context;
- struct auth_serversupplied_info *server_info;
BOOL unicode;
- char *orig_user;
- char *orig_domain;
+ char *user;
+ char *domain;
+ char *workstation;
+ DATA_BLOB lm_resp;
+ DATA_BLOB nt_resp;
+ DATA_BLOB chal;
+ void *auth_context;
+ const uint8 *(*get_challenge)(void *auth_context);
+ NTSTATUS (*check_password)(void *auth_context);
+
+ const char *(*get_global_myname)(void);
+ const char *(*get_domain)(void);
} NTLMSSP_STATE;
+