From 9de7fb8706d3314951ddc1fc6c919b4872f2ea92 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Tue, 7 Feb 2012 17:02:14 +1100 Subject: 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 --- auth/ntlmssp/ntlmssp.c | 11 +++++++++++ auth/ntlmssp/ntlmssp.h | 2 ++ 2 files changed, 13 insertions(+) (limited to 'auth') diff --git a/auth/ntlmssp/ntlmssp.c b/auth/ntlmssp/ntlmssp.c index 71e0186074..6942fde652 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 0d6a64e68f..82ed42a759 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); -- cgit