Classes | Macros | Functions | Variables
conf.c File Reference
#include <openssl/conf.h>
#include <string.h>
#include <ctype.h>
#include <openssl/bio.h>
#include <openssl/buf.h>
#include <openssl/err.h>
#include <openssl/lhash.h>
#include <openssl/mem.h>
#include "conf_def.h"
#include "internal.h"
#include "../internal.h"
#include "../lhash/internal.h"
Include dependency graph for conf.c:

Go to the source code of this file.

Classes

struct  conf_st
 

Macros

#define MAX_CONF_VALUE_LENGTH   65536
 
#define scan_esc(conf, p)   (((IS_EOF((conf), (p)[1])) ? ((p) + 1) : ((p) + 2)))
 

Functions

static int add_string (const CONF *conf, CONF_VALUE *section, CONF_VALUE *value)
 
static void clear_comments (CONF *conf, char *p)
 
void CONF_modules_free (void)
 
int CONF_modules_load_file (const char *filename, const char *appname, unsigned long flags)
 
int CONF_parse_list (const char *list, char sep, int remove_whitespace, int(*list_cb)(const char *elem, int len, void *usr), void *arg)
 
static int conf_value_cmp (const CONF_VALUE *a, const CONF_VALUE *b)
 
static uint32_t conf_value_hash (const CONF_VALUE *v)
 
CONF_VALUECONF_VALUE_new (void)
 
static int def_load_bio (CONF *conf, BIO *in, long *out_error_line)
 
static char * eat_alpha_numeric (CONF *conf, char *p)
 
static char * eat_ws (CONF *conf, char *p)
 
static CONF_VALUEget_section (const CONF *conf, const char *section)
 
void NCONF_free (CONF *conf)
 
const char * NCONF_get_string (const CONF *conf, const char *section, const char *name)
 
int NCONF_load (CONF *conf, const char *filename, long *out_error_line)
 
int NCONF_load_bio (CONF *conf, BIO *bio, long *out_error_line)
 
CONFNCONF_new (void *method)
 
static CONF_VALUENCONF_new_section (const CONF *conf, const char *section)
 
void OPENSSL_config (const char *config_name)
 
void OPENSSL_no_config (void)
 
static char * scan_dquote (CONF *conf, char *p)
 
static char * scan_quote (CONF *conf, char *p)
 
 STACK_OF (CONF_VALUE)
 
static int str_copy (CONF *conf, char *section, char **pto, char *from)
 
static void value_free (CONF_VALUE *value)
 
static void value_free_arg (CONF_VALUE *value, void *arg)
 
static void value_free_contents (CONF_VALUE *value)
 

Variables

static const char kDefaultSectionName [] = "default"
 

Macro Definition Documentation

◆ MAX_CONF_VALUE_LENGTH

#define MAX_CONF_VALUE_LENGTH   65536

Definition at line 84 of file conf.c.

◆ scan_esc

#define scan_esc (   conf,
  p 
)    (((IS_EOF((conf), (p)[1])) ? ((p) + 1) : ((p) + 2)))

Definition at line 442 of file conf.c.

Function Documentation

◆ add_string()

static int add_string ( const CONF conf,
CONF_VALUE section,
CONF_VALUE value 
)
static

Definition at line 414 of file conf.c.

◆ clear_comments()

static void clear_comments ( CONF conf,
char *  p 
)
static

Definition at line 497 of file conf.c.

◆ CONF_modules_free()

void CONF_modules_free ( void  )

Definition at line 817 of file conf.c.

◆ CONF_modules_load_file()

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

Definition at line 812 of file conf.c.

◆ CONF_parse_list()

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

Definition at line 768 of file conf.c.

◆ conf_value_cmp()

static int conf_value_cmp ( const CONF_VALUE a,
const CONF_VALUE b 
)
static

Definition at line 92 of file conf.c.

◆ conf_value_hash()

static uint32_t conf_value_hash ( const CONF_VALUE v)
static

Definition at line 86 of file conf.c.

◆ CONF_VALUE_new()

CONF_VALUE* CONF_VALUE_new ( void  )

Definition at line 132 of file conf.c.

◆ def_load_bio()

static int def_load_bio ( CONF conf,
BIO in,
long out_error_line 
)
static

Definition at line 534 of file conf.c.

◆ eat_alpha_numeric()

static char* eat_alpha_numeric ( CONF conf,
char *  p 
)
static

Definition at line 444 of file conf.c.

◆ eat_ws()

static char* eat_ws ( CONF conf,
char *  p 
)
static

Definition at line 435 of file conf.c.

◆ get_section()

static CONF_VALUE* get_section ( const CONF conf,
const char *  section 
)
static

Definition at line 380 of file conf.c.

◆ NCONF_free()

void NCONF_free ( CONF conf)

Definition at line 165 of file conf.c.

◆ NCONF_get_string()

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

Definition at line 396 of file conf.c.

◆ NCONF_load()

int NCONF_load ( CONF conf,
const char *  filename,
long out_error_line 
)

Definition at line 749 of file conf.c.

◆ NCONF_load_bio()

int NCONF_load_bio ( CONF conf,
BIO bio,
long out_error_line 
)

Definition at line 764 of file conf.c.

◆ NCONF_new()

CONF* NCONF_new ( void *  method)

Definition at line 111 of file conf.c.

◆ NCONF_new_section()

static CONF_VALUE* NCONF_new_section ( const CONF conf,
const char *  section 
)
static

Definition at line 175 of file conf.c.

◆ OPENSSL_config()

void OPENSSL_config ( const char *  config_name)

Definition at line 819 of file conf.c.

◆ OPENSSL_no_config()

void OPENSSL_no_config ( void  )

Definition at line 821 of file conf.c.

◆ scan_dquote()

static char* scan_dquote ( CONF conf,
char *  p 
)
static

Definition at line 477 of file conf.c.

◆ scan_quote()

static char* scan_quote ( CONF conf,
char *  p 
)
static

Definition at line 457 of file conf.c.

◆ STACK_OF()

STACK_OF ( CONF_VALUE  )

Definition at line 388 of file conf.c.

◆ str_copy()

static int str_copy ( CONF conf,
char *  section,
char **  pto,
char *  from 
)
static

Definition at line 214 of file conf.c.

◆ value_free()

static void value_free ( CONF_VALUE value)
static

Definition at line 158 of file conf.c.

◆ value_free_arg()

static void value_free_arg ( CONF_VALUE value,
void *  arg 
)
static

Definition at line 163 of file conf.c.

◆ value_free_contents()

static void value_free_contents ( CONF_VALUE value)
static

Definition at line 142 of file conf.c.

Variable Documentation

◆ kDefaultSectionName

const char kDefaultSectionName[] = "default"
static

Definition at line 80 of file conf.c.



grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:07