From cda3ae5bd0798c56fef5a5c1462d51ca1776504e Mon Sep 17 00:00:00 2001 From: Rich Salz Date: Sun, 12 Jun 2016 21:49:40 -0400 Subject: RT4562: Fix misleading doc on OPENSSL_config Also changed the code to use "appname" not "filename" Reviewed-by: Matt Caswell --- doc/crypto/OPENSSL_config.pod | 11 ++++++----- doc/crypto/OPENSSL_init_crypto.pod | 12 ++++++------ 2 files changed, 12 insertions(+), 11 deletions(-) (limited to 'doc') diff --git a/doc/crypto/OPENSSL_config.pod b/doc/crypto/OPENSSL_config.pod index 1a8af869c0..eae634a8fa 100644 --- a/doc/crypto/OPENSSL_config.pod +++ b/doc/crypto/OPENSSL_config.pod @@ -8,15 +8,16 @@ OPENSSL_config, OPENSSL_no_config - simple OpenSSL configuration functions #include - void OPENSSL_config(const char *config_name); + #if OPENSSL_API_COMPAT < 0x10100000L + void OPENSSL_config(const char *appname); void OPENSSL_no_config(void); + #endif =head1 DESCRIPTION -OPENSSL_config() configures OpenSSL using the standard B -configuration file name using B. If B is NULL then -the file specified in the environment variable B will be used, -and if that is not set then a system default location is used. +OPENSSL_config() configures OpenSSL using the standard B and +reads from the application section B. If B is NULL then +the default section, B, will be used. Errors are silently ignored. Multiple calls have no effect. diff --git a/doc/crypto/OPENSSL_init_crypto.pod b/doc/crypto/OPENSSL_init_crypto.pod index a35325b3f2..ff2c2e8282 100644 --- a/doc/crypto/OPENSSL_init_crypto.pod +++ b/doc/crypto/OPENSSL_init_crypto.pod @@ -16,8 +16,8 @@ initialisation and deinitialisation functions void OPENSSL_thread_stop(void); OPENSSL_INIT_SETTINGS *OPENSSL_init_new(void); - int OPENSSL_INIT_set_config_filename(OPENSSL_INIT_SETTINGS *init, - const char* name); + int OPENSSL_INIT_set_config_appname(OPENSSL_INIT_SETTINGS *init, + const char* name); void OPENSSL_INIT_free(OPENSSL_INIT_SETTINGS *init); =head1 DESCRIPTION @@ -191,8 +191,8 @@ described in the NOTES section below. The B flag will load a default configuration file. To specify a different file, an B must be created and used. The routines -OPENSSL_init_new() and OPENSSL_INIT_set_config_filename() can be used to -allocate the object and set the configuration filename, and then the +OPENSSL_init_new() and OPENSSL_INIT_set_config_appname() can be used to +allocate the object and set the application name, and then the object can be released with OPENSSL_INIT_free() when done. =head1 NOTES @@ -220,7 +220,7 @@ call should use the RTLD_NODELETE flag (where available on the platform). =head1 RETURN VALUES The functions OPENSSL_init_crypto, OPENSSL_atexit() and -OPENSSL_INIT_set_config_filename() return 1 on success or 0 on error. +OPENSSL_INIT_set_config_appname() return 1 on success or 0 on error. =head1 SEE ALSO @@ -229,7 +229,7 @@ L =head1 HISTORY The OPENSSL_init_crypto(), OPENSSL_cleanup(), OPENSSL_atexit(), -OPENSSL_thread_stop(), OPENSSL_init_new(), OPENSSL_INIT_set_config_filename() +OPENSSL_thread_stop(), OPENSSL_init_new(), OPENSSL_INIT_set_config_appname() and OPENSSL_INIT_free() functions were added in OpenSSL 1.1.0. =head1 COPYRIGHT -- cgit v1.2.3