#include "auth.h"
#include <arpa/inet.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include "../cl/macros.h"
typedef struct _HostEntry HostEntry |
typedef struct _UserEntry UserEntry |
void add_grant_to_last_user | ( | char * | corpus | ) |
void add_host_to_list | ( | char * | ipaddr | ) |
Referenced by add_hosts_in_subnet_to_list(), and main().
void add_hosts_in_subnet_to_list | ( | char * | ipsubnet | ) |
void add_user_to_list | ( | char * | user, | |
char * | passwd | |||
) |
int authenticate_user | ( | char * | username, | |
char * | passwd | |||
) |
Referenced by main().
int check_grant | ( | char * | username, | |
char * | corpus | |||
) |
Referenced by main().
int check_host | ( | struct in_addr | host_addr | ) |
Referenced by accept_connection().
UserEntry* find_user | ( | char * | username | ) |
References _UserEntry::name, _UserEntry::next, and user.
Referenced by add_user_to_list(), authenticate_user(), and check_grant().
void show_grants | ( | void | ) |
HostEntry* authorized_hosts = NULL |
UserEntry* authorized_users = NULL |