CONF_modules_load_file 3 2004-03-19 0.9.9-dev OpenSSL

NAME


 CONF_modules_load_file, CONF_modules_load - OpenSSL configuration functions

LIBRARY

libcrypto, -lcrypto

SYNOPSIS


 #include 




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

DESCRIPTION

The function _C_O_N_F___m_o_d_u_l_e_s___l_o_a_d___f_i_l_e_(_) configures OpenSSL using file ffiilleennaammee and application name aappppnnaammee. If ffiilleennaammee is NULL the standard OpenSSL configuration file is used. If aappppnnaammee is NULL the standard OpenSSL application name ooppeennssssll__ccoonnff is used. The behaviour can be cutomized using ffllaaggss.

_C_O_N_F___m_o_d_u_l_e_s___l_o_a_d_(_) is idential to _C_O_N_F___m_o_d_u_l_e_s___l_o_a_d___f_i_l_e_(_) except it read configuration information from ccnnff.

NOTES

The following ffllaaggss are currently recognized:

CCOONNFF__MMFFLLAAGGSS__IIGGNNOORREE__EERRRROORRSS if set errors returned by individual configuration modules are ignored. If not set the first module error is considered fatal and no further modules are loads.

Normally any modules errors will add error information to the error queue. If CCOONNFF__MMFFLLAAGGSS__SSIILLEENNTT is set no error information is added.

If CCOONNFF__MMFFLLAAGGSS__NNOO__DDSSOO is set configuration module loading from DSOs is disabled.

CCOONNFF__MMFFLLAAGGSS__IIGGNNOORREE__MMIISSSSIINNGG__FFIILLEE if set will make _C_O_N_F___l_o_a_d___m_o_d_u_l_e_s___f_i_l_e_(_) ignore missing configuration files. Normally a missing configuration file return an error.

RETURN VALUE

These functions return 1 for success and a zero or negative value for failure. If module errors are not ignored the return code will reflect the return value of the failing module (this will always be zero or negative).

SEE ALSO

_c_o_n_f(5), _O_P_E_N_S_S_L___c_o_n_f_i_g(3), "_C_O_N_F___f_r_e_e(3), _C_O_N_F___f_r_e_e(3)", _o_p_e_n_s_s_l___e_r_r(3),_o_p_e_n_s_s_l___e_r_r(3)

HISTORY

CONF_modules_load_file and CONF_modules_load first appeared in OpenSSL 0.9.7.