From 2aa0ac015abb18cd1ba1237f3d3027197127d558 Mon Sep 17 00:00:00 2001 From: Kevin Coffman Date: Mon, 13 Nov 2006 22:51:23 +0000 Subject: correct client preauth plugin request_context Correctly share the same request_context between all modules within a single client preauth plugin. ticket: new Component: krb5-libs Target_Version: 1.6 Tags: pullup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18800 dc483132-0cff-0310-8789-dd5450dbe970 --- src/include/k5-int.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/include') diff --git a/src/include/k5-int.h b/src/include/k5-int.h index 13109e291..6568ab132 100644 --- a/src/include/k5-int.h +++ b/src/include/k5-int.h @@ -914,10 +914,14 @@ typedef struct _krb5_preauth_context { void **request_context); void (*client_req_fini)(krb5_context context, void *plugin_context, void *request_context); - /* The per-pa_type context which the client_process() function + /* The per-request context which the client_req_init() function * might allocate, which we'll need to clean up later by - * calling the client_cleanup() function. */ + * calling the client_req_fini() function. */ void *request_context; + /* A pointer to the request_context pointer. All modules within + * a plugin will point at the request_context of the first + * module within the plugin. */ + void **request_context_pp; } *modules; } krb5_preauth_context; -- cgit