summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-07-31 15:52:26 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:15:17 -0500
commitbdbc9b3908848766d19f861dc5f8888ca3daf3a8 (patch)
tree6cbdea0da293138cdb4184671ba183be0304c6d7 /source4
parentd6301c8472d6ddaf4328bff6ee37d0233c151c3b (diff)
downloadsamba-bdbc9b3908848766d19f861dc5f8888ca3daf3a8.tar.gz
samba-bdbc9b3908848766d19f861dc5f8888ca3daf3a8.tar.bz2
samba-bdbc9b3908848766d19f861dc5f8888ca3daf3a8.zip
r17344: move the gensec_update_request structure into the header file
and add a private_data for the backends. metze (This used to be commit 015a65e00187e684b3e4d1f4ca07edb9f022f61b)
Diffstat (limited to 'source4')
-rw-r--r--source4/auth/gensec/gensec.c11
-rw-r--r--source4/auth/gensec/gensec.h13
2 files changed, 12 insertions, 12 deletions
diff --git a/source4/auth/gensec/gensec.c b/source4/auth/gensec/gensec.c
index ecdac8564a..7825949bdc 100644
--- a/source4/auth/gensec/gensec.c
+++ b/source4/auth/gensec/gensec.c
@@ -929,17 +929,6 @@ _PUBLIC_ NTSTATUS gensec_update(struct gensec_security *gensec_security, TALLOC_
return gensec_security->ops->update(gensec_security, out_mem_ctx, in, out);
}
-struct gensec_update_request {
- struct gensec_security *gensec_security;
- DATA_BLOB in;
- DATA_BLOB out;
- NTSTATUS status;
- struct {
- void (*fn)(struct gensec_update_request *req, void *private_data);
- void *private_data;
- } callback;
-};
-
static void gensec_update_async_timed_handler(struct event_context *ev, struct timed_event *te,
struct timeval t, void *ptr)
{
diff --git a/source4/auth/gensec/gensec.h b/source4/auth/gensec/gensec.h
index ce015086f6..b154619edf 100644
--- a/source4/auth/gensec/gensec.h
+++ b/source4/auth/gensec/gensec.h
@@ -33,7 +33,6 @@
#define GENSEC_OID_KERBEROS5_USER2USER "1 2 840 113554 1 2 2 3"
struct gensec_security;
-struct gensec_update_request;
struct gensec_target {
const char *principal;
const char *hostname;
@@ -56,6 +55,18 @@ enum gensec_role
struct auth_session_info;
+struct gensec_update_request {
+ struct gensec_security *gensec_security;
+ void *private_data;
+ DATA_BLOB in;
+ DATA_BLOB out;
+ NTSTATUS status;
+ struct {
+ void (*fn)(struct gensec_update_request *req, void *private_data);
+ void *private_data;
+ } callback;
+};
+
struct gensec_security_ops {
const char *name;
const char *sasl_name;