Classes | Typedefs | Functions | Variables
err.c File Reference
#include <openssl/err.h>
#include <assert.h>
#include <errno.h>
#include <inttypes.h>
#include <string.h>
#include <openssl/mem.h>
#include <openssl/thread.h>
#include "../internal.h"
#include "./internal.h"
Include dependency graph for err.c:

Go to the source code of this file.

Classes

struct  err_error_st
 
struct  err_save_state_st
 
struct  err_state_st
 

Typedefs

typedef struct err_state_st ERR_STATE
 

Functions

void ERR_add_error_data (unsigned count,...)
 
void ERR_add_error_dataf (const char *format,...)
 
static void err_add_error_vdata (unsigned num, va_list args)
 
static void err_clear (struct err_error_st *error)
 
void ERR_clear_error (void)
 
void ERR_clear_system_error (void)
 
static void err_copy (struct err_error_st *dst, const struct err_error_st *src)
 
char * ERR_error_string (uint32_t packed_error, char *ret)
 
char * ERR_error_string_n (uint32_t packed_error, char *buf, size_t len)
 
void ERR_free_strings (void)
 
const char * ERR_func_error_string (uint32_t packed_error)
 
uint32_t ERR_get_error (void)
 
uint32_t ERR_get_error_line (const char **file, int *line)
 
uint32_t ERR_get_error_line_data (const char **file, int *line, const char **data, int *flags)
 
int ERR_get_next_error_library (void)
 
static ERR_STATEerr_get_state (void)
 
static const char * err_lib_error_string (uint32_t packed_error)
 
const char * ERR_lib_error_string (uint32_t packed_error)
 
void ERR_load_BIO_strings (void)
 
void ERR_load_crypto_strings (void)
 
void ERR_load_ERR_strings (void)
 
void ERR_load_RAND_strings (void)
 
uint32_t ERR_peek_error (void)
 
uint32_t ERR_peek_error_line (const char **file, int *line)
 
uint32_t ERR_peek_error_line_data (const char **file, int *line, const char **data, int *flags)
 
uint32_t ERR_peek_last_error (void)
 
uint32_t ERR_peek_last_error_line (const char **file, int *line)
 
uint32_t ERR_peek_last_error_line_data (const char **file, int *line, const char **data, int *flags)
 
int ERR_pop_to_mark (void)
 
void ERR_print_errors_cb (ERR_print_errors_callback_t callback, void *ctx)
 
void ERR_print_errors_fp (FILE *file)
 
void ERR_put_error (int library, int unused, int reason, const char *file, unsigned line)
 
static const char * err_reason_error_string (uint32_t packed_error)
 
const char * ERR_reason_error_string (uint32_t packed_error)
 
void ERR_remove_state (unsigned long pid)
 
void ERR_remove_thread_state (const CRYPTO_THREADID *tid)
 
void ERR_restore_state (const ERR_SAVE_STATE *state)
 
ERR_SAVE_STATEERR_save_state (void)
 
void ERR_SAVE_STATE_free (ERR_SAVE_STATE *state)
 
static void err_set_error_data (char *data)
 
int ERR_set_mark (void)
 
static void err_state_free (void *statep)
 
static int err_string_cmp (const void *a, const void *b)
 
static const char * err_string_lookup (uint32_t lib, uint32_t key, const uint32_t *values, size_t num_values, const char *string_data)
 
static uint32_t get_error_values (int inc, int top, const char **file, int *line, const char **data, int *flags)
 
static int print_errors_to_file (const char *msg, size_t msg_len, void *ctx)
 

Variables

static int global_next_library = ERR_NUM_LIBS
 
static struct CRYPTO_STATIC_MUTEX global_next_library_mutex
 
static const char *const kLibraryNames [ERR_NUM_LIBS]
 
const char kOpenSSLReasonStringData []
 
const uint32_t kOpenSSLReasonValues []
 
const size_t kOpenSSLReasonValuesLen
 

Typedef Documentation

◆ ERR_STATE

typedef struct err_state_st ERR_STATE

Function Documentation

◆ ERR_add_error_data()

void ERR_add_error_data ( unsigned  count,
  ... 
)

Definition at line 720 of file err.c.

◆ ERR_add_error_dataf()

void ERR_add_error_dataf ( const char *  format,
  ... 
)

Definition at line 727 of file err.c.

◆ err_add_error_vdata()

static void err_add_error_vdata ( unsigned  num,
va_list  args 
)
static

Definition at line 674 of file err.c.

◆ err_clear()

static void err_clear ( struct err_error_st error)
static

Definition at line 164 of file err.c.

◆ ERR_clear_error()

void ERR_clear_error ( void  )

Definition at line 327 of file err.c.

◆ ERR_clear_system_error()

void ERR_clear_system_error ( void  )

Definition at line 367 of file err.c.

◆ err_copy()

static void err_copy ( struct err_error_st dst,
const struct err_error_st src 
)
static

Definition at line 169 of file err.c.

◆ ERR_error_string()

char* ERR_error_string ( uint32_t  packed_error,
char *  ret 
)

Definition at line 514 of file err.c.

◆ ERR_error_string_n()

char* ERR_error_string_n ( uint32_t  packed_error,
char *  buf,
size_t  len 
)

Definition at line 531 of file err.c.

◆ ERR_free_strings()

void ERR_free_strings ( void  )

Definition at line 786 of file err.c.

◆ ERR_func_error_string()

const char* ERR_func_error_string ( uint32_t  packed_error)

Definition at line 469 of file err.c.

◆ ERR_get_error()

uint32_t ERR_get_error ( void  )

Definition at line 287 of file err.c.

◆ ERR_get_error_line()

uint32_t ERR_get_error_line ( const char **  file,
int line 
)

Definition at line 291 of file err.c.

◆ ERR_get_error_line_data()

uint32_t ERR_get_error_line_data ( const char **  file,
int line,
const char **  data,
int flags 
)

Definition at line 295 of file err.c.

◆ ERR_get_next_error_library()

int ERR_get_next_error_library ( void  )

Definition at line 353 of file err.c.

◆ err_get_state()

static ERR_STATE* err_get_state ( void  )
static

Definition at line 202 of file err.c.

◆ err_lib_error_string()

static const char* err_lib_error_string ( uint32_t  packed_error)
static

Definition at line 455 of file err.c.

◆ ERR_lib_error_string()

const char* ERR_lib_error_string ( uint32_t  packed_error)

Definition at line 464 of file err.c.

◆ ERR_load_BIO_strings()

void ERR_load_BIO_strings ( void  )

Definition at line 788 of file err.c.

◆ ERR_load_crypto_strings()

void ERR_load_crypto_strings ( void  )

Definition at line 784 of file err.c.

◆ ERR_load_ERR_strings()

void ERR_load_ERR_strings ( void  )

Definition at line 790 of file err.c.

◆ ERR_load_RAND_strings()

void ERR_load_RAND_strings ( void  )

Definition at line 792 of file err.c.

◆ ERR_peek_error()

uint32_t ERR_peek_error ( void  )

Definition at line 300 of file err.c.

◆ ERR_peek_error_line()

uint32_t ERR_peek_error_line ( const char **  file,
int line 
)

Definition at line 304 of file err.c.

◆ ERR_peek_error_line_data()

uint32_t ERR_peek_error_line_data ( const char **  file,
int line,
const char **  data,
int flags 
)

Definition at line 308 of file err.c.

◆ ERR_peek_last_error()

uint32_t ERR_peek_last_error ( void  )

Definition at line 314 of file err.c.

◆ ERR_peek_last_error_line()

uint32_t ERR_peek_last_error_line ( const char **  file,
int line 
)

Definition at line 318 of file err.c.

◆ ERR_peek_last_error_line_data()

uint32_t ERR_peek_last_error_line_data ( const char **  file,
int line,
const char **  data,
int flags 
)

Definition at line 322 of file err.c.

◆ ERR_pop_to_mark()

int ERR_pop_to_mark ( void  )

Definition at line 758 of file err.c.

◆ ERR_print_errors_cb()

void ERR_print_errors_cb ( ERR_print_errors_callback_t  callback,
void *  ctx 
)

Definition at line 589 of file err.c.

◆ ERR_print_errors_fp()

void ERR_print_errors_fp ( FILE *  file)

Definition at line 622 of file err.c.

◆ ERR_put_error()

void ERR_put_error ( int  library,
int  unused,
int  reason,
const char *  file,
unsigned  line 
)

Definition at line 642 of file err.c.

◆ err_reason_error_string()

static const char* err_reason_error_string ( uint32_t  packed_error)
static

Definition at line 473 of file err.c.

◆ ERR_reason_error_string()

const char* ERR_reason_error_string ( uint32_t  packed_error)

Definition at line 509 of file err.c.

◆ ERR_remove_state()

void ERR_remove_state ( unsigned long  pid)

Definition at line 363 of file err.c.

◆ ERR_remove_thread_state()

void ERR_remove_thread_state ( const CRYPTO_THREADID tid)

Definition at line 344 of file err.c.

◆ ERR_restore_state()

void ERR_restore_state ( const ERR_SAVE_STATE state)

Definition at line 841 of file err.c.

◆ ERR_save_state()

ERR_SAVE_STATE* ERR_save_state ( void  )

Definition at line 810 of file err.c.

◆ ERR_SAVE_STATE_free()

void ERR_SAVE_STATE_free ( ERR_SAVE_STATE state)

Definition at line 799 of file err.c.

◆ err_set_error_data()

static void err_set_error_data ( char *  data)
static

Definition at line 627 of file err.c.

◆ ERR_set_mark()

int ERR_set_mark ( void  )

Definition at line 748 of file err.c.

◆ err_state_free()

static void err_state_free ( void *  statep)
static

Definition at line 187 of file err.c.

◆ err_string_cmp()

static int err_string_cmp ( const void *  a,
const void *  b 
)
static

Definition at line 373 of file err.c.

◆ err_string_lookup()

static const char* err_string_lookup ( uint32_t  lib,
uint32_t  key,
const uint32_t values,
size_t  num_values,
const char *  string_data 
)
static

Definition at line 388 of file err.c.

◆ get_error_values()

static uint32_t get_error_values ( int  inc,
int  top,
const char **  file,
int line,
const char **  data,
int flags 
)
static

Definition at line 219 of file err.c.

◆ print_errors_to_file()

static int print_errors_to_file ( const char *  msg,
size_t  msg_len,
void *  ctx 
)
static

Definition at line 615 of file err.c.

Variable Documentation

◆ global_next_library

int global_next_library = ERR_NUM_LIBS
static

Definition at line 180 of file err.c.

◆ global_next_library_mutex

struct CRYPTO_STATIC_MUTEX global_next_library_mutex
static
Initial value:

Definition at line 184 of file err.c.

◆ kLibraryNames

const char* const kLibraryNames[ERR_NUM_LIBS]
static

Definition at line 418 of file err.c.

◆ kOpenSSLReasonStringData

const char kOpenSSLReasonStringData[]

Definition at line 807 of file err_data.c.

◆ kOpenSSLReasonValues

const uint32_t kOpenSSLReasonValues[]

Definition at line 57 of file err_data.c.

◆ kOpenSSLReasonValuesLen

const size_t kOpenSSLReasonValuesLen

Definition at line 805 of file err_data.c.

CRYPTO_STATIC_MUTEX_INIT
#define CRYPTO_STATIC_MUTEX_INIT
Definition: third_party/boringssl-with-bazel/src/crypto/internal.h:536


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