Defines | Functions

usercerts.c File Reference

eurephiadm usercerts command. Manages the user account and certificate links. More...

#include <stdio.h>
#include <string.h>
#include <assert.h>
#include <libxml/tree.h>
#include <libxml/xpath.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 <certinfo.h>
#include "../argparser.h"
#include "../xsltparser.h"
Include dependency graph for usercerts.c:

Go to the source code of this file.

Defines

#define MODULE   "eurephia::UserCerts"

Functions

void display_usercerts_help (int page)
void help_UserCerts ()
int help_UserCerts2 (eurephiaCTX *ctx, eurephiaSESSION *sess, eurephiaVALUES *cfg, int argc, char **argv)
int list_usercerts (eurephiaCTX *ctx, eurephiaSESSION *sess, eurephiaVALUES *cfg, int argc, char **argv)
int add_del_usercert (eurephiaCTX *ctx, eurephiaSESSION *sess, eurephiaVALUES *cfg, int argc, char **argv)
int set_fwprofile (eurephiaCTX *ctx, eurephiaSESSION *sess, eurephiaVALUES *cfg, int argc, char **argv)
int cmd_UserCerts (eurephiaCTX *ctx, eurephiaSESSION *sess, eurephiaVALUES *cfg, int argc, char **argv)

Detailed Description

eurephiadm usercerts command. Manages the user account and certificate links.

Author:
David Sommerseth <dazo@users.sourceforge.net>
Date:
2008-12-28

Definition in file usercerts.c.


Define Documentation

#define MODULE   "eurephia::UserCerts"

Need to define the current module before including argparser.h

Definition at line 41 of file usercerts.c.


Function Documentation

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

usercerts add and delete mode. Modifies the user-certs links.

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 233 of file usercerts.c.

Here is the call graph for this function:

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

Main function for the usercerts 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 487 of file usercerts.c.

Here is the call graph for this function:

void display_usercerts_help ( int  page  ) 

Help screens for the usercerts command

Parameters:
page which help screen to display

Definition at line 61 of file usercerts.c.

Here is the caller graph for this function:

void help_UserCerts (  ) 

Help screen wrapper. Used by cmd_Help()

Definition at line 124 of file usercerts.c.

Here is the call graph for this function:

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

Help screen wrapper for the usercerts 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 140 of file usercerts.c.

Here is the call graph for this function:

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

usercerts list mode. Lists all registered user account and certificate links.

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 168 of file usercerts.c.

Here is the call graph for this function:

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

usercerts set-fwprofile mode. Changes the firewall profile for a specific user-certs link

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 386 of file usercerts.c.

Here is the call graph for this function:

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines