diff options
author | Matthew Newton <matthew-git@newtoncomputing.co.uk> | 2015-01-23 23:58:53 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2015-03-10 00:50:09 +0100 |
commit | 83cfb84b78ce7141652f1fdc7f01978cdb69343f (patch) | |
tree | b5ff07c27602c263710a1b128616459832ab5e55 /nsswitch/libwbclient | |
parent | 60c7571984d7f1612828a72fae3ed8e66037d1f7 (diff) | |
download | samba-83cfb84b78ce7141652f1fdc7f01978cdb69343f.tar.gz |
Use global context for winbindd_request_response
Updating API call in libwbclient, wbinfo, ntlm_auth and
winbind_nss_* as per previous commit to wb_common.c.
Signed-off-by: Matthew Newton <matthew-git@newtoncomputing.co.uk>
Reviewed-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'nsswitch/libwbclient')
-rw-r--r-- | nsswitch/libwbclient/wbclient.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/nsswitch/libwbclient/wbclient.c b/nsswitch/libwbclient/wbclient.c index 19bb3e9e0a8..93c0318e5e9 100644 --- a/nsswitch/libwbclient/wbclient.c +++ b/nsswitch/libwbclient/wbclient.c @@ -27,10 +27,12 @@ /* From wb_common.c */ -NSS_STATUS winbindd_request_response(int req_type, +NSS_STATUS winbindd_request_response(struct winbindd_context *wbctx, + int req_type, struct winbindd_request *request, struct winbindd_response *response); -NSS_STATUS winbindd_priv_request_response(int req_type, +NSS_STATUS winbindd_priv_request_response(struct winbindd_context *wbctx, + int req_type, struct winbindd_request *request, struct winbindd_response *response); @@ -51,7 +53,7 @@ static wbcErr wbcRequestResponseInt( int cmd, struct winbindd_request *request, struct winbindd_response *response, - NSS_STATUS (*fn)(int req_type, + NSS_STATUS (*fn)(struct winbindd_context *wbctx, int req_type, struct winbindd_request *request, struct winbindd_response *response)) { @@ -60,7 +62,7 @@ static wbcErr wbcRequestResponseInt( /* for some calls the request and/or response can be NULL */ - nss_status = fn(cmd, request, response); + nss_status = fn(NULL, cmd, request, response); switch (nss_status) { case NSS_STATUS_SUCCESS: |