From 902df836807b700b2d27877f2fa5284930df3ff7 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Tue, 26 Jul 2011 10:01:39 +1000 Subject: s3-ntlmssp Split calls to gensec plugin into prepare and start GENSEC has the concept of starting the GENSEC subsystem before starting the actual mechansim. Between these two stages is when most context methods are called, to specify credentials and features. Andrew Bartlett Signed-off-by: Andrew Tridgell --- source3/include/auth.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'source3/include') diff --git a/source3/include/auth.h b/source3/include/auth.h index 3545e27d20..5c842fd550 100644 --- a/source3/include/auth.h +++ b/source3/include/auth.h @@ -96,8 +96,9 @@ struct auth_context { struct auth_serversupplied_info **server_info); NTSTATUS (*nt_status_squash)(NTSTATUS nt_status); - NTSTATUS (*start_gensec)(TALLOC_CTX *mem_ctx, const char *oid_string, + NTSTATUS (*prepare_gensec)(TALLOC_CTX *mem_ctx, struct gensec_security **gensec_context); + NTSTATUS (*gensec_start_mech_by_oid)(struct gensec_security *gensec_context, const char *oid_string); }; typedef struct auth_methods @@ -119,10 +120,10 @@ typedef struct auth_methods void **my_private_data, TALLOC_CTX *mem_ctx); - /* Optional method allowing this module to provide a way to get a gensec context */ - NTSTATUS (*start_gensec)(TALLOC_CTX *mem_ctx, const char *oid_string, + /* Optional methods allowing this module to provide a way to get a gensec context */ + NTSTATUS (*prepare_gensec)(TALLOC_CTX *mem_ctx, struct gensec_security **gensec_context); - + NTSTATUS (*gensec_start_mech_by_oid)(struct gensec_security *gensec_context, const char *oid_string); /* Used to keep tabs on things like the cli for SMB server authentication */ void *private_data; -- cgit