NAME
CONFmodulesloadfile, CONFmodulesload - OpenSSL configuration functions
SYNOPSIS
#include
int CONFmodulesloadfile(const char *filename, const char *appname, unsigned long flags); int CONFmodulesload(const CONF *cnf, const char *appname, unsigned long flags);DESCRIPTION
The function CONFmodulesloadfile() 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 ooppeennssssllccoonnff is used. The behaviour can be cutomized using ffllaaggss. CONFmodulesload() is idential to CONFmodulesloadfile() except it read configuration information from ccnnff. NNOOTTEESS The following ffllaaggss are currently recognized: CCOONNFFMMFFLLAAGGSSIIGGNNOORREEEERRRROORRSS 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 CCOONNFFMMFFLLAAGGSSSSIILLEENNTT is set no error information is added. If CCOONNFFMMFFLLAAGGSSNNOODDSSOO is set configuration module loading from DSOs is disabled. CCOONNFFMMFFLLAAGGSSIIGGNNOORREEMMIISSSSIINNGGFFIILLEE if set will make CONFloadmodulesfile() ignore missing configuration files. Normally a missing configuration file return an error. RREETTUURRNN VVAALLUUEE 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
conf(5), OPENSSLconfig(3), "CONFfree(3), CONFfree(3)", err(3),err(3) HISTORY CONFmodulesloadfile and CONFmodulesload first appeared in OpenSSL 0.9.7.0.9.7l 2004-03-02 CONFmodulesloadfile(3)