nwrap: Add a hash table to the nwrap structure
authorRobin Hack <hack.robin@gmail.com>
Wed, 15 Jul 2015 13:01:48 +0000 (15:01 +0200)
committerMichael Adam <obnox@samba.org>
Mon, 11 Jan 2016 11:25:27 +0000 (12:25 +0100)
commit15c14536d0e4055a7a9c4906b968ead5283e21a8
tree14003425aa199abb683d3214c160a66a49e50d5b
parentf3da6e4905320bff56db5dba8fd5a2873d829e1c
nwrap: Add a hash table to the nwrap structure

The hash table will hold hostnames and ips internally. The new
environment variable which is introduced is NSS_WRAPPER_MAX_HOSTENTS. It
sets the maximum count of hostent (hostnames and ips) structs which the
hash table can hold.

Signed-off-by: Robin Hack <hack.robin@gmail.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
lib/nss_wrapper/nss_wrapper.c