Replace get_users implementation with new version

The get_users function now combines the functionality of the old get_users
and get_all_users. This removes large parts of similar code.

Removed the listener resources as MySQLAuth was the only one that used it.
This commit is contained in:
Markus Mäkelä
2017-01-28 23:27:06 +02:00
parent 62763e2505
commit 48d70fa4a8
4 changed files with 192 additions and 1469 deletions

View File

@ -129,7 +129,6 @@ listener_alloc(struct service* service, const char* name, const char *protocol,
proto->auth_options = my_auth_options;
proto->ssl = ssl;
proto->users = NULL;
proto->resources = NULL;
proto->next = NULL;
proto->auth_instance = auth_instance;
spinlock_init(&proto->lock);
@ -146,10 +145,6 @@ void listener_free(SERV_LISTENER* listener)
{
if (listener)
{
if (listener->resources)
{
hashtable_free(listener->resources);
}
if (listener->users)
{
users_free(listener->users);