summaryrefslogtreecommitdiff
path: root/source3/include/auth.h
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2011-07-26 10:01:39 +1000
committerAndrew Bartlett <abartlet@samba.org>2011-08-03 18:48:04 +1000
commit902df836807b700b2d27877f2fa5284930df3ff7 (patch)
tree89dca448661f2318219a3606462d579b58637d93 /source3/include/auth.h
parent643d05826cbf7ef82e1ee8f33d610a79dcb8607a (diff)
downloadsamba-902df836807b700b2d27877f2fa5284930df3ff7.tar.gz
samba-902df836807b700b2d27877f2fa5284930df3ff7.tar.bz2
samba-902df836807b700b2d27877f2fa5284930df3ff7.zip
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 <tridge@samba.org>
Diffstat (limited to 'source3/include/auth.h')
-rw-r--r--source3/include/auth.h9
1 files changed, 5 insertions, 4 deletions
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;