ESAPI-C 1.0
The OWASP Enterprise Security API for C

sec_context.c File Reference

An ESAPI Configuration module implementation. More...

#include <stdlib.h>
#include <stdio.h>
#include <gcrypt.h>
#include <string.h>
#include "base64.h"
#include "esapi.h"
#include "log.h"

Go to the source code of this file.

Defines

#define LINE_LEN   1024
#define PARSE_ERROR   0
#define PARSE_SUCCESS   1

Functions

char ** _parse_csv (char *value)
int _parse_csv_for_length (char *value)
int _parse_boolean (char *value)
int _parse_asymmetric_algo (const char *alg)
int _parse_symmetric_algo (const char *alg)
int _parse_symmetric_algo_mode (const char *value)
int _parse_hash_algo (const char *alg)
int _parse_config_entry (char *l, char *n, char *v)
struct esapi_ctxload_security_context (const char *infile)
 Load the ESAPI configuration.

Variables

char * value_delimiters = ", "

Detailed Description

An ESAPI Configuration module implementation.

Since:
January 30, 2011

Definition in file sec_context.c.


Function Documentation

struct esapi_ctx* load_security_context ( const char *  ) [read]

Load the ESAPI configuration.

Never prints properties.

This is the function that returns a properly initialized esapi_ctx struct, which some ESAPI functions take as a parameter.

Definition at line 173 of file sec_context.c.

References esapi_log_error(), and esapi_log_warn().

 All Data Structures Files Functions Variables Typedefs Defines