OpenSSL  1.0.1c
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
Classes | Macros | Typedefs | Functions | Variables
conf.h File Reference
#include <openssl/bio.h>
#include <openssl/lhash.h>
#include <openssl/stack.h>
#include <openssl/safestack.h>
#include <openssl/e_os2.h>
#include <openssl/ossl_typ.h>

Go to the source code of this file.

Classes

struct  CONF_VALUE
 
struct  conf_method_st
 
struct  conf_st
 

Macros

#define CONF_MFLAGS_IGNORE_ERRORS   0x1
 
#define CONF_MFLAGS_IGNORE_RETURN_CODES   0x2
 
#define CONF_MFLAGS_SILENT   0x4
 
#define CONF_MFLAGS_NO_DSO   0x8
 
#define CONF_MFLAGS_IGNORE_MISSING_FILE   0x10
 
#define CONF_MFLAGS_DEFAULT_SECTION   0x20
 
#define NCONF_get_number(c, g, n, r)   NCONF_get_number_e(c,g,n,r)
 
#define CONF_F_CONF_DUMP_FP   104
 
#define CONF_F_CONF_LOAD   100
 
#define CONF_F_CONF_LOAD_BIO   102
 
#define CONF_F_CONF_LOAD_FP   103
 
#define CONF_F_CONF_MODULES_LOAD   116
 
#define CONF_F_CONF_PARSE_LIST   119
 
#define CONF_F_DEF_LOAD   120
 
#define CONF_F_DEF_LOAD_BIO   121
 
#define CONF_F_MODULE_INIT   115
 
#define CONF_F_MODULE_LOAD_DSO   117
 
#define CONF_F_MODULE_RUN   118
 
#define CONF_F_NCONF_DUMP_BIO   105
 
#define CONF_F_NCONF_DUMP_FP   106
 
#define CONF_F_NCONF_GET_NUMBER   107
 
#define CONF_F_NCONF_GET_NUMBER_E   112
 
#define CONF_F_NCONF_GET_SECTION   108
 
#define CONF_F_NCONF_GET_STRING   109
 
#define CONF_F_NCONF_LOAD   113
 
#define CONF_F_NCONF_LOAD_BIO   110
 
#define CONF_F_NCONF_LOAD_FP   114
 
#define CONF_F_NCONF_NEW   111
 
#define CONF_F_STR_COPY   101
 
#define CONF_R_ERROR_LOADING_DSO   110
 
#define CONF_R_LIST_CANNOT_BE_NULL   115
 
#define CONF_R_MISSING_CLOSE_SQUARE_BRACKET   100
 
#define CONF_R_MISSING_EQUAL_SIGN   101
 
#define CONF_R_MISSING_FINISH_FUNCTION   111
 
#define CONF_R_MISSING_INIT_FUNCTION   112
 
#define CONF_R_MODULE_INITIALIZATION_ERROR   109
 
#define CONF_R_NO_CLOSE_BRACE   102
 
#define CONF_R_NO_CONF   105
 
#define CONF_R_NO_CONF_OR_ENVIRONMENT_VARIABLE   106
 
#define CONF_R_NO_SECTION   107
 
#define CONF_R_NO_SUCH_FILE   114
 
#define CONF_R_NO_VALUE   108
 
#define CONF_R_UNABLE_TO_CREATE_NEW_SECTION   103
 
#define CONF_R_UNKNOWN_MODULE_NAME   113
 
#define CONF_R_VARIABLE_HAS_NO_VALUE   104
 

Typedefs

typedef struct conf_method_st CONF_METHOD
 
typedef struct conf_imodule_st CONF_IMODULE
 
typedef struct conf_module_st CONF_MODULE
 
typedef int conf_init_func (CONF_IMODULE *md, const CONF *cnf)
 
typedef void conf_finish_func (CONF_IMODULE *md)
 

Functions

 DECLARE_LHASH_OF (CONF_VALUE)
 
int CONF_set_default_method (CONF_METHOD *meth)
 
void CONF_set_nconf (CONF *conf, LHASH_OF(CONF_VALUE)*hash)
 
 LHASH_OF (CONF_VALUE)*CONF_load(LHASH_OF(CONF_VALUE)*conf
 
 STACK_OF (CONF_VALUE)*CONF_get_section(LHASH_OF(CONF_VALUE)*conf
 
char * CONF_get_string (LHASH_OF(CONF_VALUE)*conf, const char *group, const char *name)
 
long CONF_get_number (LHASH_OF(CONF_VALUE)*conf, const char *group, const char *name)
 
void CONF_free (LHASH_OF(CONF_VALUE)*conf)
 
int CONF_dump_fp (LHASH_OF(CONF_VALUE)*conf, FILE *out)
 
int CONF_dump_bio (LHASH_OF(CONF_VALUE)*conf, BIO *out)
 
void OPENSSL_config (const char *config_name)
 
void OPENSSL_no_config (void)
 
CONFNCONF_new (CONF_METHOD *meth)
 
CONF_METHODNCONF_default (void)
 
CONF_METHODNCONF_WIN32 (void)
 
void NCONF_free (CONF *conf)
 
void NCONF_free_data (CONF *conf)
 
int NCONF_load (CONF *conf, const char *file, long *eline)
 
int NCONF_load_fp (CONF *conf, FILE *fp, long *eline)
 
int NCONF_load_bio (CONF *conf, BIO *bp, long *eline)
 
char * NCONF_get_string (const CONF *conf, const char *group, const char *name)
 
int NCONF_get_number_e (const CONF *conf, const char *group, const char *name, long *result)
 
int NCONF_dump_fp (const CONF *conf, FILE *out)
 
int NCONF_dump_bio (const CONF *conf, BIO *out)
 
int CONF_modules_load (const CONF *cnf, const char *appname, unsigned long flags)
 
int CONF_modules_load_file (const char *filename, const char *appname, unsigned long flags)
 
void CONF_modules_unload (int all)
 
void CONF_modules_finish (void)
 
void CONF_modules_free (void)
 
int CONF_module_add (const char *name, conf_init_func *ifunc, conf_finish_func *ffunc)
 
const char * CONF_imodule_get_name (const CONF_IMODULE *md)
 
const char * CONF_imodule_get_value (const CONF_IMODULE *md)
 
voidCONF_imodule_get_usr_data (const CONF_IMODULE *md)
 
void CONF_imodule_set_usr_data (CONF_IMODULE *md, void *usr_data)
 
CONF_MODULECONF_imodule_get_module (const CONF_IMODULE *md)
 
unsigned long CONF_imodule_get_flags (const CONF_IMODULE *md)
 
void CONF_imodule_set_flags (CONF_IMODULE *md, unsigned long flags)
 
voidCONF_module_get_usr_data (CONF_MODULE *pmod)
 
void CONF_module_set_usr_data (CONF_MODULE *pmod, void *usr_data)
 
char * CONF_get1_default_config_file (void)
 
int CONF_parse_list (const char *list, int sep, int nospc, int(*list_cb)(const char *elem, int len, void *usr), void *arg)
 
void OPENSSL_load_builtin_modules (void)
 
void ERR_load_CONF_strings (void)
 

Variables

const char * file
 
const char long * eline
 
FILE * fp
 
BIObp
 
const char * section
 

Macro Definition Documentation

#define CONF_F_CONF_DUMP_FP   104

Definition at line 219 of file conf.h.

#define CONF_F_CONF_LOAD   100

Definition at line 220 of file conf.h.

#define CONF_F_CONF_LOAD_BIO   102

Definition at line 221 of file conf.h.

#define CONF_F_CONF_LOAD_FP   103

Definition at line 222 of file conf.h.

#define CONF_F_CONF_MODULES_LOAD   116

Definition at line 223 of file conf.h.

#define CONF_F_CONF_PARSE_LIST   119

Definition at line 224 of file conf.h.

#define CONF_F_DEF_LOAD   120

Definition at line 225 of file conf.h.

#define CONF_F_DEF_LOAD_BIO   121

Definition at line 226 of file conf.h.

#define CONF_F_MODULE_INIT   115

Definition at line 227 of file conf.h.

#define CONF_F_MODULE_LOAD_DSO   117

Definition at line 228 of file conf.h.

#define CONF_F_MODULE_RUN   118

Definition at line 229 of file conf.h.

#define CONF_F_NCONF_DUMP_BIO   105

Definition at line 230 of file conf.h.

#define CONF_F_NCONF_DUMP_FP   106

Definition at line 231 of file conf.h.

#define CONF_F_NCONF_GET_NUMBER   107

Definition at line 232 of file conf.h.

#define CONF_F_NCONF_GET_NUMBER_E   112

Definition at line 233 of file conf.h.

#define CONF_F_NCONF_GET_SECTION   108

Definition at line 234 of file conf.h.

#define CONF_F_NCONF_GET_STRING   109

Definition at line 235 of file conf.h.

#define CONF_F_NCONF_LOAD   113

Definition at line 236 of file conf.h.

#define CONF_F_NCONF_LOAD_BIO   110

Definition at line 237 of file conf.h.

#define CONF_F_NCONF_LOAD_FP   114

Definition at line 238 of file conf.h.

#define CONF_F_NCONF_NEW   111

Definition at line 239 of file conf.h.

#define CONF_F_STR_COPY   101

Definition at line 240 of file conf.h.

#define CONF_MFLAGS_DEFAULT_SECTION   0x20

Definition at line 119 of file conf.h.

#define CONF_MFLAGS_IGNORE_ERRORS   0x1

Definition at line 114 of file conf.h.

#define CONF_MFLAGS_IGNORE_MISSING_FILE   0x10

Definition at line 118 of file conf.h.

#define CONF_MFLAGS_IGNORE_RETURN_CODES   0x2

Definition at line 115 of file conf.h.

#define CONF_MFLAGS_NO_DSO   0x8

Definition at line 117 of file conf.h.

#define CONF_MFLAGS_SILENT   0x4

Definition at line 116 of file conf.h.

#define CONF_R_ERROR_LOADING_DSO   110

Definition at line 243 of file conf.h.

#define CONF_R_LIST_CANNOT_BE_NULL   115

Definition at line 244 of file conf.h.

#define CONF_R_MISSING_CLOSE_SQUARE_BRACKET   100

Definition at line 245 of file conf.h.

#define CONF_R_MISSING_EQUAL_SIGN   101

Definition at line 246 of file conf.h.

#define CONF_R_MISSING_FINISH_FUNCTION   111

Definition at line 247 of file conf.h.

#define CONF_R_MISSING_INIT_FUNCTION   112

Definition at line 248 of file conf.h.

#define CONF_R_MODULE_INITIALIZATION_ERROR   109

Definition at line 249 of file conf.h.

#define CONF_R_NO_CLOSE_BRACE   102

Definition at line 250 of file conf.h.

#define CONF_R_NO_CONF   105

Definition at line 251 of file conf.h.

#define CONF_R_NO_CONF_OR_ENVIRONMENT_VARIABLE   106

Definition at line 252 of file conf.h.

#define CONF_R_NO_SECTION   107

Definition at line 253 of file conf.h.

#define CONF_R_NO_SUCH_FILE   114

Definition at line 254 of file conf.h.

#define CONF_R_NO_VALUE   108

Definition at line 255 of file conf.h.

#define CONF_R_UNABLE_TO_CREATE_NEW_SECTION   103

Definition at line 256 of file conf.h.

#define CONF_R_UNKNOWN_MODULE_NAME   113

Definition at line 257 of file conf.h.

#define CONF_R_VARIABLE_HAS_NO_VALUE   104

Definition at line 258 of file conf.h.

#define NCONF_get_number (   c,
  g,
  n,
 
)    NCONF_get_number_e(c,g,n,r)

Definition at line 178 of file conf.h.

Typedef Documentation

typedef void conf_finish_func(CONF_IMODULE *md)

Definition at line 112 of file conf.h.

typedef struct conf_imodule_st CONF_IMODULE

Definition at line 104 of file conf.h.

typedef int conf_init_func(CONF_IMODULE *md, const CONF *cnf)

Definition at line 111 of file conf.h.

typedef struct conf_method_st CONF_METHOD

Definition at line 86 of file conf.h.

typedef struct conf_module_st CONF_MODULE

Definition at line 105 of file conf.h.

Function Documentation

int CONF_dump_bio ( LHASH_OF(CONF_VALUE)*  conf,
BIO out 
)

Definition at line 221 of file conf_lib.c.

int CONF_dump_fp ( LHASH_OF(CONF_VALUE)*  conf,
FILE *  out 
)

Definition at line 206 of file conf_lib.c.

void CONF_free ( LHASH_OF(CONF_VALUE)*  conf)

Definition at line 198 of file conf_lib.c.

char* CONF_get1_default_config_file ( void  )

Definition at line 546 of file conf_mod.c.

long CONF_get_number ( LHASH_OF(CONF_VALUE)*  conf,
const char *  group,
const char *  name 
)

Definition at line 173 of file conf_lib.c.

char* CONF_get_string ( LHASH_OF(CONF_VALUE)*  conf,
const char *  group,
const char *  name 
)

Definition at line 158 of file conf_lib.c.

unsigned long CONF_imodule_get_flags ( const CONF_IMODULE md)

Definition at line 524 of file conf_mod.c.

CONF_MODULE* CONF_imodule_get_module ( const CONF_IMODULE md)

Definition at line 519 of file conf_mod.c.

const char* CONF_imodule_get_name ( const CONF_IMODULE md)

Definition at line 499 of file conf_mod.c.

void* CONF_imodule_get_usr_data ( const CONF_IMODULE md)

Definition at line 509 of file conf_mod.c.

const char* CONF_imodule_get_value ( const CONF_IMODULE md)

Definition at line 504 of file conf_mod.c.

void CONF_imodule_set_flags ( CONF_IMODULE md,
unsigned long  flags 
)

Definition at line 529 of file conf_mod.c.

void CONF_imodule_set_usr_data ( CONF_IMODULE md,
void usr_data 
)

Definition at line 514 of file conf_mod.c.

int CONF_module_add ( const char *  name,
conf_init_func ifunc,
conf_finish_func ffunc 
)

Definition at line 482 of file conf_mod.c.

void* CONF_module_get_usr_data ( CONF_MODULE pmod)

Definition at line 534 of file conf_mod.c.

void CONF_module_set_usr_data ( CONF_MODULE pmod,
void usr_data 
)

Definition at line 539 of file conf_mod.c.

void CONF_modules_finish ( void  )

Definition at line 456 of file conf_mod.c.

void CONF_modules_free ( void  )

Definition at line 491 of file conf_mod.c.

int CONF_modules_load ( const CONF cnf,
const char *  appname,
unsigned long  flags 
)
int CONF_modules_load_file ( const char *  filename,
const char *  appname,
unsigned long  flags 
)

Definition at line 166 of file conf_mod.c.

void CONF_modules_unload ( int  all)

Definition at line 422 of file conf_mod.c.

int CONF_parse_list ( const char *  list,
int  sep,
int  nospc,
int(*)(const char *elem, int len, void *usr)  list_cb,
void arg 
)

Definition at line 580 of file conf_mod.c.

int CONF_set_default_method ( CONF_METHOD meth)

Definition at line 84 of file conf_lib.c.

void CONF_set_nconf ( CONF conf,
LHASH_OF(CONF_VALUE)*  hash 
)

Definition at line 72 of file conf_lib.c.

DECLARE_LHASH_OF ( CONF_VALUE  )
void ERR_load_CONF_strings ( void  )

Definition at line 121 of file conf_err.c.

LHASH_OF ( CONF_VALUE  )
CONF_METHOD* NCONF_default ( void  )

Definition at line 119 of file conf_def.c.

int NCONF_dump_bio ( const CONF conf,
BIO out 
)

Definition at line 380 of file conf_lib.c.

int NCONF_dump_fp ( const CONF conf,
FILE *  out 
)

Definition at line 366 of file conf_lib.c.

void NCONF_free ( CONF conf)

Definition at line 251 of file conf_lib.c.

void NCONF_free_data ( CONF conf)

Definition at line 258 of file conf_lib.c.

int NCONF_get_number_e ( const CONF conf,
const char *  group,
const char *  name,
long *  result 
)

Definition at line 340 of file conf_lib.c.

char* NCONF_get_string ( const CONF conf,
const char *  group,
const char *  name 
)

Definition at line 320 of file conf_lib.c.

int NCONF_load ( CONF conf,
const char *  file,
long *  eline 
)

Definition at line 265 of file conf_lib.c.

int NCONF_load_bio ( CONF conf,
BIO bp,
long *  eline 
)

Definition at line 292 of file conf_lib.c.

int NCONF_load_fp ( CONF conf,
FILE *  fp,
long *  eline 
)

Definition at line 277 of file conf_lib.c.

CONF* NCONF_new ( CONF_METHOD meth)

Definition at line 234 of file conf_lib.c.

CONF_METHOD* NCONF_WIN32 ( void  )

Definition at line 123 of file conf_def.c.

void OPENSSL_config ( const char *  config_name)

Definition at line 77 of file conf_sap.c.

void OPENSSL_load_builtin_modules ( void  )

Definition at line 72 of file conf_mall.c.

void OPENSSL_no_config ( void  )

Definition at line 108 of file conf_sap.c.

STACK_OF ( CONF_VALUE  )

Variable Documentation

BIO* bp

Definition at line 129 of file conf.h.

BIO long* eline

Definition at line 123 of file conf.h.

const char* file

Definition at line 123 of file conf.h.

FILE* fp

Definition at line 126 of file conf.h.

const char* section

Definition at line 131 of file conf.h.