diff options
author | Stephen Gallagher <sgallagh@redhat.com> | 2008-11-17 09:41:06 -0500 |
---|---|---|
committer | Simo Sorce <idra@samba.org> | 2008-11-17 10:02:34 -0500 |
commit | 977a6d0035dc1add3f490fcb31376271450ebfac (patch) | |
tree | 02d0eee222ce472f0ed71d29d68fb7129cb18976 /server/nss | |
parent | 12136300b98a87169964dfe72adc442b6d91a47a (diff) | |
download | sssd-977a6d0035dc1add3f490fcb31376271450ebfac.tar.gz sssd-977a6d0035dc1add3f490fcb31376271450ebfac.tar.bz2 sssd-977a6d0035dc1add3f490fcb31376271450ebfac.zip |
The default message handler will now pass both the method_ctx and the
sbus_conn_ctx to all message handling functions.
This will allow connection-specific data to be passed in by taking advantage
of the sbus_conn_set_private_data() function on the sbus_conn_ctx struct.
Presently this private data is global to all methods of the connection context.
Diffstat (limited to 'server/nss')
-rw-r--r-- | server/nss/nsssrv.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/server/nss/nsssrv.c b/server/nss/nsssrv.c index 93f8d223..4ce00ffc 100644 --- a/server/nss/nsssrv.c +++ b/server/nss/nsssrv.c @@ -288,6 +288,7 @@ static int nss_sbus_init(struct nss_ctx *nctx) return ENOMEM; } srv_sm_ctx->methods = nss_sbus_methods; + srv_sm_ctx->message_handler = sbus_message_handler; sbus_conn_add_method_ctx(ns_ctx->scon_ctx, srv_sm_ctx); /* set up client stuff */ |