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) |
eurephiadm usercerts command. Manages the user account and certificate links.
Definition in file usercerts.c.
| #define MODULE "eurephia::UserCerts" |
Need to define the current module before including argparser.h
Definition at line 41 of file usercerts.c.
| int add_del_usercert | ( | eurephiaCTX * | ctx, | |
| eurephiaSESSION * | sess, | |||
| eurephiaVALUES * | cfg, | |||
| int | argc, | |||
| char ** | argv | |||
| ) |
usercerts add and delete mode. Modifies the user-certs links.
| 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 |
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.
| 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 |
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
| 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.
| 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 |
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.
| 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 |
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
| 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 |
Definition at line 386 of file usercerts.c.
Here is the call graph for this function:
1.7.1