NAME
OpenSSLaddallalgorithms, OpenSSLaddallciphers,OpenSSLaddalldigests - add algorithms to internal table
SYNOPSIS
#include
void OpenSSLaddallalgorithms(void); void OpenSSLaddallciphers(void); void OpenSSLaddalldigests(void); void EVPcleanup(void);DESCRIPTION
OpenSSL keeps an internal table of digest algorithms and ciphers. It uses this table to lookup ciphers via functions such as EVPgetcipherbyname(). OpenSSLaddalldigests() adds all digest algorithms to the table. OpenSSLaddallalgorithms() adds all algorithms to the table (digests and ciphers). OpenSSLaddallciphers() adds all encryption algorithms to the table including password based encryption algorithms. EVPcleanup() removes all ciphers and digests from the table.RETURN VALUES
None of the functions return a value. NNOOTTEESS A typical application will call OpenSSLaddallalgorithms() initially and EVPcleanup() before exiting. An application does not need to add algorithms to use them explicitly, for example by EVPsha1(). It just needs to add them if it (or any of the functions it calls) needs to lookup algorithms. The cipher and digest lookup functions are used in many parts of the library. If the table is not initialized several functions will misbehave and complain they cannot find algorithms. This includes thePEM, PKCS#12, SSL and S/MIME libraries. This is a common query in the
OpenSSL mailing lists. Calling OpenSSLaddallalgorithms() links in all algorithms: as a result a statically linked executable can be quite large. If this is important it is possible to just add the required ciphers and digests.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.SEE ALSO
evp(3), EVPDigestInit(3), EVPEncryptInit(3)0.9.7l 2003-12-27 OpenSSLaddallalgorithms(3)