📄 openssl_config.pod
字号:
=pod=head1 NAMEOPENSSL_config, OPENSSL_no_config - simple OpenSSL configuration functions=head1 SYNOPSIS #include <openssl/conf.h> void OPENSSL_config(const char *config_name); void OPENSSL_no_config(void);=head1 DESCRIPTIONOPENSSL_config() configures OpenSSL using the standard B<openssl.cnf>configuration file name using B<config_name>. If B<config_name> is NULL thenthe default name B<openssl_conf> will be used. Any errors are ignored. Furthercalls to OPENSSL_config() will have no effect. The configuration file formatis documented in the L<conf(5)|conf(5)> manual page.OPENSSL_no_config() disables configuration. If called before OPENSSL_config()no configuration takes place.=head1 NOTESIt is B<strongly> recommended that B<all> new applications call OPENSSL_config()or the more sophisticated functions such as CONF_modules_load() duringinitialization (that is before starting any threads). By doing thisan application does not need to keep track of all configuration optionsand some new functionality can be supported automatically.It is also possible to automatically call OPENSSL_config() when an applicationcalls OPENSSL_add_all_algorithms() by compiling an application with thepreprocessor symbol B<OPENSSL_LOAD_CONF> #define'd. In this way configurationcan be added without source changes.The environment variable B<OPENSSL_CONF> can be set to specify the locationof the configuration file. Currently ASN1 OBJECTs and ENGINE configuration can be performed futureversions of OpenSSL will add new configuration options.There are several reasons why calling the OpenSSL configuration routines isadvisable. For example new ENGINE functionality was added to OpenSSL 0.9.7.In OpenSSL 0.9.7 control functions can be supported by ENGINEs, this can beused (among other things) to load dynamic ENGINEs from shared libraries (DSOs).However very few applications currently support the control interface and sovery few can load and use dynamic ENGINEs. Equally in future more sophisticatedENGINEs will require certain control operations to customize them. If anapplication calls OPENSSL_config() it doesn't need to know or care aboutENGINE control operations because they can be performed by editing aconfiguration file.Applications should free up configuration at application closedown by callingCONF_modules_free().=head1 RESTRICTIONSThe OPENSSL_config() function is designed to be a very simple "call it andforget it" function. As a result its behaviour is somewhat limited. It ignoresall errors silently and it can only load from the standard configuration filelocation for example.It is however B<much> better than nothing. Applications which need finercontrol over their configuration functionality should use the configurationfunctions such as CONF_load_modules() directly.=head1 RETURN VALUESNeither OPENSSL_config() nor OPENSSL_no_config() return a value.=head1 SEE ALSOL<conf(5)|conf(5)>, L<CONF_load_modules_file(3)|CONF_load_modules_file(3)>,L<CONF_modules_free(3),CONF_modules_free(3)>=head1 HISTORYOPENSSL_config() and OPENSSL_no_config() first appeared in OpenSSL 0.9.7=cut
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -