From 32b60effa89c7fa97c04b7e9e8e6b1304d3a4ad3 Mon Sep 17 00:00:00 2001 From: schwarze <> Date: Mon, 9 Jun 2025 12:43:53 +0000 Subject: Retire the manual pages OPENSSL_load_builtin_modules(3) and OBJ_NAME_add(3) because these functions no longer exist. OK tb@ --- src/lib/libcrypto/man/CONF_modules_load_file.3 | 14 +- src/lib/libcrypto/man/Makefile | 4 +- src/lib/libcrypto/man/OBJ_NAME_add.3 | 307 --------------------- src/lib/libcrypto/man/OPENSSL_config.3 | 11 +- src/lib/libcrypto/man/OPENSSL_init_crypto.3 | 10 +- .../libcrypto/man/OPENSSL_load_builtin_modules.3 | 101 ------- src/lib/libcrypto/man/OpenSSL_add_all_algorithms.3 | 34 +-- 7 files changed, 25 insertions(+), 456 deletions(-) delete mode 100644 src/lib/libcrypto/man/OBJ_NAME_add.3 delete mode 100644 src/lib/libcrypto/man/OPENSSL_load_builtin_modules.3 (limited to 'src') diff --git a/src/lib/libcrypto/man/CONF_modules_load_file.3 b/src/lib/libcrypto/man/CONF_modules_load_file.3 index 50fa6a9801..78cfc32f0d 100644 --- a/src/lib/libcrypto/man/CONF_modules_load_file.3 +++ b/src/lib/libcrypto/man/CONF_modules_load_file.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: CONF_modules_load_file.3,v 1.15 2025/06/08 22:40:29 schwarze Exp $ +.\" $OpenBSD: CONF_modules_load_file.3,v 1.16 2025/06/09 12:43:53 schwarze Exp $ .\" full merge up to: e9b77246 Jan 20 19:58:49 2017 +0100 .\" selective merge up to: d090fc00 Feb 26 13:11:10 2019 +0800 .\" @@ -66,7 +66,7 @@ .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED .\" OF THE POSSIBILITY OF SUCH DAMAGE. .\" -.Dd $Mdocdate: June 8 2025 $ +.Dd $Mdocdate: June 9 2025 $ .Dt CONF_MODULES_LOAD_FILE 3 .Os .Sh NAME @@ -223,7 +223,6 @@ Load custom configuration file and section instead of the standard one, only print warnings on error, missing configuration file ignored: .Bd -literal OPENSSL_no_config(); -OPENSSL_load_builtin_modules(); if (CONF_modules_load_file("/something/app.cnf", "myapp", CONF_MFLAGS_IGNORE_MISSING_FILE) <= 0) { fprintf(stderr, "WARNING: error loading configuration file\en"); @@ -234,11 +233,7 @@ if (CONF_modules_load_file("/something/app.cnf", "myapp", In the previous example, the call to .Xr OPENSSL_no_config 3 is required first to suppress automatic loading -of the standard configuration file, and the call to -.Xr OPENSSL_load_builtin_modules 3 -is needed so that the configuration of builtin modules -is loaded in addition to the configuration of -.Qq myapp . +of the standard configuration file. .Pp Load and parse configuration file manually, custom error handling: .Bd -literal @@ -269,8 +264,7 @@ if (fp == NULL) { .Sh SEE ALSO .Xr CONF_modules_free 3 , .Xr ERR 3 , -.Xr OPENSSL_config 3 , -.Xr OPENSSL_load_builtin_modules 3 +.Xr OPENSSL_config 3 .Sh HISTORY .Fn X509_get_default_cert_area first appeared in SSLeay 0.4.1 and has been available since diff --git a/src/lib/libcrypto/man/Makefile b/src/lib/libcrypto/man/Makefile index b8dfe86d49..d026643e9d 100644 --- a/src/lib/libcrypto/man/Makefile +++ b/src/lib/libcrypto/man/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.308 2025/04/25 19:57:12 tb Exp $ +# $OpenBSD: Makefile,v 1.309 2025/06/09 12:43:53 schwarze Exp $ .include @@ -216,7 +216,6 @@ MAN= \ IPAddressRange_new.3 \ MD5.3 \ NAME_CONSTRAINTS_new.3 \ - OBJ_NAME_add.3 \ OBJ_create.3 \ OBJ_find_sigid_algs.3 \ OBJ_nid2obj.3 \ @@ -232,7 +231,6 @@ MAN= \ OPENSSL_cleanse.3 \ OPENSSL_config.3 \ OPENSSL_init_crypto.3 \ - OPENSSL_load_builtin_modules.3 \ OPENSSL_malloc.3 \ OPENSSL_sk_new.3 \ OpenSSL_add_all_algorithms.3 \ diff --git a/src/lib/libcrypto/man/OBJ_NAME_add.3 b/src/lib/libcrypto/man/OBJ_NAME_add.3 deleted file mode 100644 index 0b46010c49..0000000000 --- a/src/lib/libcrypto/man/OBJ_NAME_add.3 +++ /dev/null @@ -1,307 +0,0 @@ -.\" $OpenBSD: OBJ_NAME_add.3,v 1.6 2024/01/31 08:02:53 tb Exp $ -.\" -.\" Copyright (c) 2021 Ingo Schwarze -.\" -.\" Permission to use, copy, modify, and distribute this software for any -.\" purpose with or without fee is hereby granted, provided that the above -.\" copyright notice and this permission notice appear in all copies. -.\" -.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF -.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -.\" -.Dd $Mdocdate: January 31 2024 $ -.Dt OBJ_NAME_ADD 3 -.Os -.Sh NAME -.Nm OBJ_NAME_add , -.Nm OBJ_NAME_remove , -.Nm OBJ_NAME_get , -.Nm OBJ_NAME_new_index , -.Nm OBJ_NAME_init , -.Nm OBJ_NAME_cleanup -.Nd global associative array -.Sh SYNOPSIS -.In openssl/objects.h -.Ft int -.Fo OBJ_NAME_add -.Fa "const char *name" -.Fa "int type" -.Fa "const char *value" -.Fc -.Ft int -.Fo OBJ_NAME_remove -.Fa "const char *name" -.Fa "int type" -.Fc -.Ft const char * -.Fo OBJ_NAME_get -.Fa "const char *name" -.Fa "int type" -.Fc -.Ft int -.Fo OBJ_NAME_new_index -.Fa "unsigned long (*hash_func)(const char *name)" -.Fa "int (*cmp_func)(const char *name1, const char *name2)" -.Fa "void (*free_func)(const char *name, int type, const char *value)" -.Fc -.Ft int -.Fn OBJ_NAME_init void -.Ft void -.Fn OBJ_NAME_cleanup "int type" -.Bd -literal -typedef struct { - int type; - int alias; - const char *name; - const char *data; -} OBJ_NAME; -.Ed -.Sh DESCRIPTION -These functions implement a single, static associative array -with the following properties: -.Bl -bullet -.It -The keys are ordered pairs consisting of a NUL-terminated string -.Pq called the Fa name -and an -.Vt int -number -.Pq called the Fa type . -Two types are predefined and used internally by the library: -.Dv OBJ_NAME_TYPE_MD_METH -and -.Dv OBJ_NAME_TYPE_CIPHER_METH . -Two additional types are predefined but not used internally: -.Dv OBJ_NAME_TYPE_PKEY_METH -and -.Dv OBJ_NAME_TYPE_COMP_METH . -All predefined types are greater than -.Dv OBJ_NAME_TYPE_UNDEF -and smaller than -.Dv OBJ_NAME_TYPE_NUM . -.It -The values are pointers. -Formally, they are of the type -.Vt const char * , -but in practice, pointers of other types, for example -.Vt EVP_CIPHER * -or -.Vt EVP_MD * , -are often stored as values -and cast back to the correct type on retrieval. -.It -The array supports type-specific aliases for names. -.El -.Pp -.Fn OBJ_NAME_add -removes the key-value pair or alias with the key -.Pq Fa name , type -in the same way as -.Fn OBJ_NAME_remove -and inserts a key-value pair with the specified -.Fa name , -.Fa type , -and -.Fa value . -If the bit -.Dv OBJ_NAME_ALIAS -is set in the -.Fa type -argument, that bit is cleared before using the -.Fa type -and the key -.Pq Fa name , type -becomes an alias for the key -.Pq Fa value , type -instead of setting a value. -It is not checked whether the key -.Pq Fa value , type -already exists. -Consequently, it is possible to define an alias -before setting the associated value. -.Pp -.Fn OBJ_NAME_remove -removes the key-value pair or alias with the key -.Pq Fa name , type -from the array, if it exists. -Otherwise, it has no effect. -If the bit -.Dv OBJ_NAME_ALIAS -is set in the -.Fa type -argument, it is ignored and cleared before using the -.Fa type . -If the -.Fa type -is an application-defined type added with -.Fn OBJ_NAME_new_index -and the -.Fa free_func -associated with the -.Fa type -is not a -.Dv NULL -pointer, it is called with the -.Fa name , -.Fa type , -and -.Fa value -of the key-value pair being removed or with the -.Fa name , -.Fa type , -and alias target name of the alias being removed. -In typical usage, this function might free the -.Fa name , -and it might free the -.Fa value -in a type-specific way. -.Pp -.Fn OBJ_NAME_get -looks up the key -.Pq Fa name , type , -recursively resolving up to ten aliases if needed. -If the bit -.Dv OBJ_NAME_ALIAS -is set in the -.Fa type -argument, it is cleared before using the -.Fa type , -processing of aliases is disabled, and if -.Pq Fa name , type -is an alias, the target name of the alias is returned instead of a value. -.Pp -.Fn OBJ_NAME_new_index -assigns the smallest unassigned positive integer number -to represent a new, application-defined -.Fa type . -The three function pointers will be used, respectively, -to hash a name for this type, to compare two names for this type, -and to free the contents of a key-value pair holding the given -.Fa name , -.Fa type , -and -.Fa value . -If the -.Fa hash_func -argument is a -.Dv NULL -pointer, -.Xr lh_strhash 3 -is used instead. -If the -.Fa cmp_func -argument is a -.Dv NULL -pointer, -.Xr strcmp 3 -is used instead. -If the -.Fa free_func -argument is a -.Dv NULL -pointer, the -.Fa name -and -.Fa value -pointers contained in the key-value pair are not freed, -only the structure representing the pair itself is. -This default behaviour is also used for the built-in types. -.Pp -.Fn OBJ_NAME_init -initializes the array. -After initialization, the array is empty. -Calling -.Fn OBJ_NAME_init -when the array is already initialized has no effect. -Application programs do not need to call this function because -.Fn OBJ_NAME_add -and -.Fn OBJ_NAME_get -automatically call it whenever needed. -.Pp -.Fn OBJ_NAME_cleanup -removes all key-value pairs and aliases of the given -.Fa type -from the array by calling -.Fn OBJ_NAME_remove -on every such pair and alias. -If the -.Fa type -argument is negative, it removes all key-value pairs and aliases -of any type and also reverses all effects of -.Fn OBJ_NAME_new_index -and -.Fn OBJ_NAME_init , -in particular resetting the list of types to the predefined types -and releasing all memory reserved by these functions. -.Pp -The -.Vt OBJ_NAME -structure represents one key-value pair or one alias with the key -.Pq Fa name , type . -If the -.Fa alias -field is 0, the -.Fa data -field contains the value; otherwise, it contains the alias target name. -.Sh RETURN VALUES -.Fn OBJ_NAME_add -and -.Fn OBJ_NAME_init -return 1 on success or 0 if memory allocation fails. -.Pp -.Fn OBJ_NAME_remove -returns 1 if one key-value pair or alias was removed or 0 otherwise. -.Pp -.Fn OBJ_NAME_get -returns the -.Fa value -associated with the key -.Pq Fa name , type -or -.Dv NULL -if -.Fa name -is -.Dv NULL , -if the array does not contain a value for this key, -or if more than ten aliases are encountered before finding a value. -.Pp -.Fn OBJ_NAME_new_index -returns a positive integer greater than or equal to -.Dv OBJ_NAME_TYPE_NUM -representing the new type or 0 if memory allocation fails. -.Sh SEE ALSO -.Xr EVP_cleanup 3 , -.Xr EVP_get_cipherbyname 3 , -.Xr EVP_get_digestbyname 3 , -.Xr lh_new 3 , -.Xr OBJ_create 3 , -.Xr OBJ_nid2obj 3 -.Sh BUGS -Calling -.Fn OBJ_NAME_get -with the bit -.Dv OBJ_NAME_ALIAS -is not very useful because there is no way to tell -whether the returned pointer points to a value or to a name, -short of calling the function again without setting the bit -and comparing the two returned pointers. -.Pp -The -.Fa free_func -has no way to tell whether its -.Fa value -argument is indeed of the given -.Fa type -or whether it is merely the target name of an alias. -Consequently, to use values of a type -that requires more cleanup than merely calling -.Xr free 3 -on it, instances of the type need to begin with a magic number or string -that cannot occur at the beginning of a name. diff --git a/src/lib/libcrypto/man/OPENSSL_config.3 b/src/lib/libcrypto/man/OPENSSL_config.3 index 6af0ae0dcb..e21b9817de 100644 --- a/src/lib/libcrypto/man/OPENSSL_config.3 +++ b/src/lib/libcrypto/man/OPENSSL_config.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: OPENSSL_config.3,v 1.17 2025/06/08 22:40:30 schwarze Exp $ +.\" $OpenBSD: OPENSSL_config.3,v 1.18 2025/06/09 12:43:53 schwarze Exp $ .\" full merge up to: OpenSSL b97fdb57 Nov 11 09:33:09 2016 +0100 .\" .\" This file is a derived work. @@ -65,7 +65,7 @@ .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED .\" OF THE POSSIBILITY OF SUCH DAMAGE. .\" -.Dd $Mdocdate: June 8 2025 $ +.Dd $Mdocdate: June 9 2025 $ .Dt OPENSSL_CONFIG 3 .Os .Sh NAME @@ -118,13 +118,11 @@ To use a non-standard configuration file, refer to Internally, .Fn OPENSSL_config calls -.Xr OPENSSL_init_crypto 3 -and -.Xr OPENSSL_load_builtin_modules 3 . +.Xr OPENSSL_init_crypto 3 . .Pp If an application is compiled with the preprocessor symbol .Dv OPENSSL_LOAD_CONF -#define'd, +defined, .Xr OpenSSL_add_all_algorithms 3 automatically calls .Fn OPENSSL_config . @@ -141,7 +139,6 @@ standard configuration file .Xr CONF_modules_free 3 , .Xr CONF_modules_load_file 3 , .Xr crypto 3 , -.Xr OPENSSL_load_builtin_modules 3 , .Xr OPENSSL_VERSION_NUMBER 3 , .Xr openssl.cnf 5 , .Xr x509v3.cnf 5 diff --git a/src/lib/libcrypto/man/OPENSSL_init_crypto.3 b/src/lib/libcrypto/man/OPENSSL_init_crypto.3 index 72a3059c8d..5c29d55aa9 100644 --- a/src/lib/libcrypto/man/OPENSSL_init_crypto.3 +++ b/src/lib/libcrypto/man/OPENSSL_init_crypto.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: OPENSSL_init_crypto.3,v 1.6 2025/06/08 22:40:30 schwarze Exp $ +.\" $OpenBSD: OPENSSL_init_crypto.3,v 1.7 2025/06/09 12:43:53 schwarze Exp $ .\" Copyright (c) 2018, 2020 Ingo Schwarze .\" .\" Permission to use, copy, modify, and distribute this software for any @@ -13,7 +13,7 @@ .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: June 8 2025 $ +.Dd $Mdocdate: June 9 2025 $ .Dt OPENSSL_INIT_CRYPTO 3 .Os .Sh NAME @@ -55,10 +55,7 @@ If is called before any other crypto or ssl functions, the crypto library is initialised by allocating various internal resources, in particular calling -.Xr ERR_load_crypto_strings 3 , -.Xr OpenSSL_add_all_ciphers 3 , -and -.Xr OpenSSL_add_all_digests 3 . +.Xr ERR_load_crypto_strings 3 . .Pp The following .Fa options @@ -93,7 +90,6 @@ is intended to return 1 on success or 0 on error. .Sh SEE ALSO .Xr CONF_modules_load_file 3 , .Xr OPENSSL_config 3 , -.Xr OPENSSL_load_builtin_modules 3 , .Xr openssl.cnf 5 .Sh HISTORY .Fn OPENSSL_init diff --git a/src/lib/libcrypto/man/OPENSSL_load_builtin_modules.3 b/src/lib/libcrypto/man/OPENSSL_load_builtin_modules.3 deleted file mode 100644 index 2b20efaf0e..0000000000 --- a/src/lib/libcrypto/man/OPENSSL_load_builtin_modules.3 +++ /dev/null @@ -1,101 +0,0 @@ -.\" $OpenBSD: OPENSSL_load_builtin_modules.3,v 1.8 2023/12/05 02:41:13 jsg Exp $ -.\" OpenSSL b97fdb57 Nov 11 09:33:09 2016 +0100 -.\" -.\" This file was written by Dr. Stephen Henson . -.\" Copyright (c) 2004, 2013 The OpenSSL Project. All rights reserved. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in -.\" the documentation and/or other materials provided with the -.\" distribution. -.\" -.\" 3. All advertising materials mentioning features or use of this -.\" software must display the following acknowledgment: -.\" "This product includes software developed by the OpenSSL Project -.\" for use in the OpenSSL Toolkit. (http://www.openssl.org/)" -.\" -.\" 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to -.\" endorse or promote products derived from this software without -.\" prior written permission. For written permission, please contact -.\" openssl-core@openssl.org. -.\" -.\" 5. Products derived from this software may not be called "OpenSSL" -.\" nor may "OpenSSL" appear in their names without prior written -.\" permission of the OpenSSL Project. -.\" -.\" 6. Redistributions of any form whatsoever must retain the following -.\" acknowledgment: -.\" "This product includes software developed by the OpenSSL Project -.\" for use in the OpenSSL Toolkit (http://www.openssl.org/)" -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY -.\" EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -.\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR -.\" ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -.\" SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT -.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -.\" LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -.\" STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED -.\" OF THE POSSIBILITY OF SUCH DAMAGE. -.\" -.Dd $Mdocdate: December 5 2023 $ -.Dt OPENSSL_LOAD_BUILTIN_MODULES 3 -.Os -.Sh NAME -.Nm OPENSSL_load_builtin_modules , -.Nm ASN1_add_oid_module -.Nd add standard configuration modules -.Sh SYNOPSIS -.In openssl/conf.h -.Ft void -.Fn OPENSSL_load_builtin_modules void -.Ft void -.Fn ASN1_add_oid_module void -.Sh DESCRIPTION -The function -.Fn OPENSSL_load_builtin_modules -adds all the standard OpenSSL configuration modules to the internal -list. -They can then be used by the OpenSSL configuration code. -.Pp -.Fn ASN1_add_oid_module -adds just the ASN.1 OBJECT module. -.Pp -If the simple configuration function -.Xr OPENSSL_config 3 -is called then -.Fn OPENSSL_load_builtin_modules -is called automatically. -.Pp -Applications which use configuration functions like -.Xr CONF_modules_load_file 3 -directly need to call -.Fn OPENSSL_load_builtin_modules -themselves -.Em before -any other configuration code. -.Pp -Applications should call -.Xr OPENSSL_config 3 -or -.Fn OPENSSL_load_builtin_modules -to load all configuration modules instead of adding modules selectively: -otherwise functionality may be missing from the application when -new modules are added. -.Sh SEE ALSO -.Xr CONF_modules_load_file 3 , -.Xr OPENSSL_config 3 -.Sh HISTORY -These functions first appeared in OpenSSL 0.9.7 -and have been available since -.Ox 3.2 . diff --git a/src/lib/libcrypto/man/OpenSSL_add_all_algorithms.3 b/src/lib/libcrypto/man/OpenSSL_add_all_algorithms.3 index ff1c3df6d9..64f71590fe 100644 --- a/src/lib/libcrypto/man/OpenSSL_add_all_algorithms.3 +++ b/src/lib/libcrypto/man/OpenSSL_add_all_algorithms.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: OpenSSL_add_all_algorithms.3,v 1.17 2025/06/08 22:40:30 schwarze Exp $ +.\" $OpenBSD: OpenSSL_add_all_algorithms.3,v 1.18 2025/06/09 12:43:53 schwarze Exp $ .\" full merge up to: OpenSSL b3696a55 Sep 2 09:35:50 2017 -0400 .\" .\" This file was written by Dr. Stephen Henson . @@ -48,7 +48,7 @@ .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED .\" OF THE POSSIBILITY OF SUCH DAMAGE. .\" -.Dd $Mdocdate: June 8 2025 $ +.Dd $Mdocdate: June 9 2025 $ .Dt OPENSSL_ADD_ALL_ALGORITHMS 3 .Os .Sh NAME @@ -80,17 +80,21 @@ These functions are deprecated. It is never useful for any application program to call any of them explicitly. -The library automatically calls them internally whenever needed. .Pp -OpenSSL keeps an internal table of digest algorithms and ciphers. -It uses this table to look up ciphers via functions such as -.Xr EVP_get_cipherbyname 3 . +The library contains internal tables of digest algorithms and ciphers. +It uses these tables to look up digests and ciphers via +.Xr EVP_get_digestbyname 3 +and +.Xr EVP_get_cipherbyname 3 , +respectively. +In LibreSSL, these tables are static constants and do not require +initialization. .Pp .Fn OpenSSL_add_all_algorithms adds all algorithms to the table (digests and ciphers). If an application is compiled with the preprocessor symbol .Dv OPENSSL_LOAD_CONF -#define'd, it also calls +defined, it also calls .Xr OPENSSL_config 3 with a .Dv NULL @@ -103,17 +107,9 @@ adds all digest algorithms to the table. adds all encryption algorithms to the table including password based encryption algorithms. .Pp -If any of the above functions is called more than once, -only the first call has an effect. -.Pp .Fn EVP_cleanup -removes all ciphers and digests from the table and also calls -.Xr OBJ_NAME_cleanup 3 -with an argument of \-1 , -thus resetting the global associative array of names -and all signature algorithm definitions to their default states, -removing all application-defined types, key-value pairs, and aliases, -including any that are unrelated to the EVP library. +has no effect; it used to remove various kinds of application-supplied +data that is no longer supported in the first place. .Pp .Fn SSLeay_add_all_algorithms is a deprecated alias for @@ -127,8 +123,6 @@ are implemented as macros. .Xr evp 3 , .Xr EVP_DigestInit 3 , .Xr EVP_EncryptInit 3 , -.Xr OBJ_cleanup 3 , -.Xr OBJ_NAME_add 3 , .Xr OPENSSL_config 3 .Sh HISTORY .Fn EVP_cleanup , @@ -149,5 +143,3 @@ first appeared in OpenSSL 0.9.5 and have been available since .Sh BUGS Although the functions do not return error codes, it is possible for them to fail. -This will only happen as a result of a memory allocation failure so this -is not too much of a problem in practice. -- cgit v1.2.3-55-g6feb