Defines | Functions

blacklist.c File Reference

eurephiadm blacklist command. Show and edit the eurephia blacklists More...

#include <stdio.h>
#include <string.h>
#include <assert.h>
#include <libxml/tree.h>
#include <eurephia_nullsafe.h>
#include <eurephia_context.h>
#include <eurephia_log.h>
#include <eurephia_xml.h>
#include <eurephia_values_struct.h>
#include <eurephiadb_session_struct.h>
#include <eurephiadb_mapping.h>
#include <eurephiadb_driver.h>
#include <eurephia_values.h>
#include "../argparser.h"
#include "../xsltparser.h"
Include dependency graph for blacklist.c:

Go to the source code of this file.

Defines

#define MODULE   "eurephia::Blacklist"

Functions

void display_blacklist_help (int page)
void help_Blacklist ()
int help_Blacklist2 (eurephiaCTX *ctx, eurephiaSESSION *sess, eurephiaVALUES *cfg, int argc, char **argv)
int list_blacklist (eurephiaCTX *ctx, eurephiaSESSION *sess, eurephiaVALUES *cfg, int argc, char **argv)
int modify_blacklist (eurephiaCTX *ctx, eurephiaSESSION *sess, eurephiaVALUES *cfg, int argc, char **argv)
int cmd_Blacklist (eurephiaCTX *ctx, eurephiaSESSION *sess, eurephiaVALUES *cfg, int argc, char **argv)

Detailed Description

eurephiadm blacklist command. Show and edit the eurephia blacklists

Author:
David Sommerseth <dazo@users.sourceforge.net>
Date:
2009-05-09

Definition in file blacklist.c.


Define Documentation

#define MODULE   "eurephia::Blacklist"

Need to define the active module before including argparser.h

Definition at line 40 of file blacklist.c.


Function Documentation

int cmd_Blacklist ( eurephiaCTX ctx,
eurephiaSESSION sess,
eurephiaVALUES cfg,
int  argc,
char **  argv 
)

Main function for the the blacklist command

Parameters:
ctx eurephiaCTX
sess eurephiaSESSION of the current logged in user
cfg eurephiaVALUES struct of the current configuration
argc argument count for the eurephiadm command
argv argument table for the eurephiadm command
Returns:
returns 0 on success, otherwise 1.

Definition at line 323 of file blacklist.c.

Here is the call graph for this function:

void display_blacklist_help ( int  page  ) 

Help screens for the blacklist command

Parameters:
page which help screen to display

Definition at line 60 of file blacklist.c.

Here is the caller graph for this function:

void help_Blacklist (  ) 

Help screen wrapper. Used by cmd_Help()

Definition at line 111 of file blacklist.c.

Here is the call graph for this function:

int help_Blacklist2 ( eurephiaCTX ctx,
eurephiaSESSION sess,
eurephiaVALUES cfg,
int  argc,
char **  argv 
)

Help screen wrapper for the blacklist help function.

Parameters:
ctx eurephiaCTX
sess eurephiaSESSION of the current logged in user
cfg eurephiaVALUES struct of the current configuration
argc argument count for the eurephiadm command
argv argument table for the eurephiadm command
Returns:
returns 0 on success, otherwise 1.

Definition at line 128 of file blacklist.c.

Here is the call graph for this function:

int list_blacklist ( eurephiaCTX ctx,
eurephiaSESSION sess,
eurephiaVALUES cfg,
int  argc,
char **  argv 
)

blacklist list mode. Lists all blacklisted certificates, user account and/or IP addresses.

Parameters:
ctx eurephiaCTX
sess eurephiaSESSION of the current logged in user
cfg eurephiaVALUES struct of the current configuration
argc argument count for the eurephiadm command
argv argument table for the eurephiadm command
Returns:
returns 0 on success, otherwise 1.

Definition at line 153 of file blacklist.c.

Here is the call graph for this function:

int modify_blacklist ( eurephiaCTX ctx,
eurephiaSESSION sess,
eurephiaVALUES cfg,
int  argc,
char **  argv 
)

Function for modifying the blacklists

Parameters:
ctx eurephiaCTX
sess eurephiaSESSION of the current logged in user
cfg eurephiaVALUES struct of the current configuration
argc argument count for the eurephiadm command
argv argument table for the eurephiadm command
Returns:
returns 0 on success, otherwise 1.

Definition at line 225 of file blacklist.c.

Here is the call graph for this function:

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines