parse_pam_kmux_options.c File Reference

#include "common.h"
#include <confuse.h>
#include "pam_kmux_options.h"
#include "helpers.h"
#include "msg.h"
Include dependency graph for parse_pam_kmux_options.c:

Functions

void parse_options (int argc, const char **argv)
 Read pam-stack-configuration.
int check_config_file (const char *path)
 Check configuration file.
int read_config_file (modopts_t *options_container)
 Read configuration file.

Variables

pam_modopt_t pamod_options

Detailed Description

In this file functions to process the pam_kmux-configuration are implemented.

Author:
Julian Thome.
Date:
2009-11-11

Function Documentation

int check_config_file ( const char *  path  ) 

Check configuration file.

This function checks if the specified configuration file is valid. It only checks the file itself - not the content.

Parameters:
path Path to configuration file.
Returns:
This function returns zero if everything is ok. Else a value less than zero will be returned.
void parse_options ( int  argc,
const char **  argv 
)

Read pam-stack-configuration.

This function read the pam_kmux-module options specified in the pam-stack.

Parameters:
argc Number of arguments.
argv Argument list.
Returns:
Nothing to return.
int read_config_file ( modopts_t options_container  ) 

Read configuration file.

This function takes the valid configuration file and store the configured options into a list contained by the options_container.

Parameters:
options_container Container which will be filled whith information specified in the configuration file.
Returns:
This function returns zero if everything is ok. Else a value less than zero will be returned.

Variable Documentation

C-Structure which contains pam-module options. In this global variable the pam-module options like debug level or the path of the configuration file are stored.

Generated on Mon Apr 5 22:28:54 2010 for pam_kmux by  doxygen 1.6.3