Move wbc global variables into global context instead
authorMatthew Newton <matthew-git@newtoncomputing.co.uk>
Sun, 22 Feb 2015 23:31:48 +0000 (23:31 +0000)
committerKarolin Seeger <kseeger@samba.org>
Tue, 24 Mar 2015 03:51:15 +0000 (04:51 +0100)
commitfe5ac733f12c9133453726569f1df2311f22cf10
treeb8ed9159494b65d145bf1b8e8ce546b1519f8b1a
parentbb70e50fa3cd9f322245a0045fa30157bfec51d9
Move wbc global variables into global context instead

There are some global variables in use in the libwbclient
library. Now that we have a context, move these into it so that
they are thread-safe when the wbcCtx* functions are used.

https://bugzilla.samba.org/show_bug.cgi?id=11149

Signed-off-by: Matthew Newton <matthew-git@newtoncomputing.co.uk>
Reviewed-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit 2664d9070f3c21231627380822e619fb695db662)
nsswitch/libwbclient/wbc_pwd.c
nsswitch/libwbclient/wbclient.c
nsswitch/libwbclient/wbclient_internal.h