diff options
author | Andrew Bartlett <abartlet@samba.org> | 2012-02-07 17:02:14 +1100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2012-02-24 11:23:18 +1100 |
commit | 9de7fb8706d3314951ddc1fc6c919b4872f2ea92 (patch) | |
tree | e97457692605f6f9d9ab3cf503fbd028c44d2cd5 /auth | |
parent | 4478f315e6cb178b53114033e1247e265f82ab8f (diff) | |
download | samba-9de7fb8706d3314951ddc1fc6c919b4872f2ea92.tar.gz |
s3-ntlm_auth: Convert ntlm_auth to use gensec_ntlmssp server-side
This uses the common gensec_ntlmssp server code for ntlm_auth, removing
the last non-gensec use of the NTLMSSP server.
Andrew Bartlett
Diffstat (limited to 'auth')
-rw-r--r-- | auth/ntlmssp/ntlmssp.c | 11 | ||||
-rw-r--r-- | auth/ntlmssp/ntlmssp.h | 2 |
2 files changed, 13 insertions, 0 deletions
diff --git a/auth/ntlmssp/ntlmssp.c b/auth/ntlmssp/ntlmssp.c index 71e01860749..6942fde652a 100644 --- a/auth/ntlmssp/ntlmssp.c +++ b/auth/ntlmssp/ntlmssp.c @@ -209,3 +209,14 @@ _PUBLIC_ NTSTATUS gensec_ntlmssp_init(void) return ret; } + +uint32_t gensec_ntlmssp_neg_flags(struct gensec_security *gensec_security) +{ + struct gensec_ntlmssp_context *gensec_ntlmssp; + if (gensec_security->ops != &gensec_ntlmssp_security_ops) { + return 0; + } + gensec_ntlmssp = talloc_get_type_abort(gensec_security->private_data, + struct gensec_ntlmssp_context); + return gensec_ntlmssp->ntlmssp_state->neg_flags; +} diff --git a/auth/ntlmssp/ntlmssp.h b/auth/ntlmssp/ntlmssp.h index 0d6a64e68ff..82ed42a7594 100644 --- a/auth/ntlmssp/ntlmssp.h +++ b/auth/ntlmssp/ntlmssp.h @@ -182,3 +182,5 @@ bool ntlmssp_blob_matches_magic(const DATA_BLOB *blob); /* The following definitions come from auth/ntlmssp/gensec_ntlmssp.c */ NTSTATUS gensec_ntlmssp_init(void); + +uint32_t gensec_ntlmssp_neg_flags(struct gensec_security *gensec_security); |