ERR_load_strings(3) OpenSSL ERR_load_strings(3) NNAAMMEE ERR_load_strings, ERR_PACK, ERR_get_next_error_library - load arbitrary error strings SSYYNNOOPPSSIISS #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); DDEESSCCRRIIPPTTIIOONN _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. RREETTUURRNN VVAALLUUEE _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. SSEEEE AALLSSOO _e_r_r(3), _E_R_R___l_o_a_d___s_t_r_i_n_g_s(3) HHIISSTTOORRYY _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. 1.0.2u 2019-12-20 ERR_load_strings(3)