ERR_load_strings 3 2000-07-16 0.9.9-dev OpenSSL
NAME
ERR_load_strings, ERR_PACK, ERR_get_next_error_library - load
arbitrary error strings
LIBRARY
libcrypto, -lcrypto
SYNOPSIS
#include
void ERR_load_strings(int lib, ERR_STRING_DATA str[]);
int ERR_get_next_error_library(void);
unsigned long ERR_PACK(int lib, int func, int reason);
DESCRIPTION
_E_R_R___l_o_a_d___s_t_r_i_n_g_s_(_) registers error strings for library number lliibb.
ssttrr is an array of error string data:
typedef struct ERR_string_data_st
{
unsigned long error;
char *string;
} ERR_STRING_DATA;
The error code is generated from the library number and a function and
reason code: eerrrroorr = ERR_PACK(lliibb, ffuunncc, rreeaassoonn).
_E_R_R___P_A_C_K_(_) is a macro.
The last entry in the array is {0,0}.
_E_R_R___g_e_t___n_e_x_t___e_r_r_o_r___l_i_b_r_a_r_y_(_) can be used to assign library numbers
to user libraries at runtime.
RETURN VALUE
_E_R_R___l_o_a_d___s_t_r_i_n_g_s_(_) returns no value. _E_R_R___P_A_C_K_(_) return the error code.
_E_R_R___g_e_t___n_e_x_t___e_r_r_o_r___l_i_b_r_a_r_y_(_) returns a new library number.
SEE ALSO
_o_p_e_n_s_s_l___e_r_r(3), _E_R_R___l_o_a_d___s_t_r_i_n_g_s(3)
HISTORY
_E_R_R___l_o_a_d___e_r_r_o_r___s_t_r_i_n_g_s_(_) and _E_R_R___P_A_C_K_(_) are available in all versions
of SSLeay and OpenSSL. _E_R_R___g_e_t___n_e_x_t___e_r_r_o_r___l_i_b_r_a_r_y_(_) was added in
SSLeay 0.9.0.