auth-master.h revision 9f10cc61ec303351b43e54155c86699ef53cb8be
#ifndef AUTH_MASTER_H
#define AUTH_MASTER_H
#include "network.h"
struct auth_user_info {
const char *service;
unsigned int local_port, remote_port;
};
struct auth_user_reply {
};
struct auth_master_connection *
/* Do a USER lookup. Returns -1 = error, 0 = user not found, 1 = ok */
const char *const **fields_r);
/* Do a PASS lookup (the actual password isn't returned). */
/* Parse userdb extra fields into auth_user_reply structure. */
struct auth_user_reply *reply_r);
/* Iterate through all users. */
struct auth_master_user_list_ctx *
/* Returns -1 if anything failed, 0 if ok */
#endif