diff options
author | cvs2svn <admin@example.com> | 2002-05-15 02:29:24 +0000 |
---|---|---|
committer | cvs2svn <admin@example.com> | 2002-05-15 02:29:24 +0000 |
commit | 027351f729b9e837200dae6e1520cda6577ab930 (patch) | |
tree | e25a717057aa4529e433fc3b1fac8d4df8db3a5c /src/lib/libcrypto/doc/OpenSSL_add_all_algorithms.pod | |
parent | aeeae06a79815dc190061534d47236cec09f9e32 (diff) | |
download | openbsd-027351f729b9e837200dae6e1520cda6577ab930.tar.gz openbsd-027351f729b9e837200dae6e1520cda6577ab930.tar.bz2 openbsd-027351f729b9e837200dae6e1520cda6577ab930.zip |
This commit was manufactured by cvs2git to create branch 'unlabeled-1.1.1'.
Diffstat (limited to 'src/lib/libcrypto/doc/OpenSSL_add_all_algorithms.pod')
-rw-r--r-- | src/lib/libcrypto/doc/OpenSSL_add_all_algorithms.pod | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/src/lib/libcrypto/doc/OpenSSL_add_all_algorithms.pod b/src/lib/libcrypto/doc/OpenSSL_add_all_algorithms.pod new file mode 100644 index 0000000000..1300fe190c --- /dev/null +++ b/src/lib/libcrypto/doc/OpenSSL_add_all_algorithms.pod | |||
@@ -0,0 +1,65 @@ | |||
1 | =pod | ||
2 | |||
3 | =head1 NAME | ||
4 | |||
5 | OpenSSL_add_all_algorithms() - add algorithms to internal table | ||
6 | |||
7 | =head1 SYNOPSIS | ||
8 | |||
9 | #include <openssl/evp.h> | ||
10 | |||
11 | void OpenSSL_add_all_algorithms(void); | ||
12 | void OpenSSL_add_all_ciphers(void); | ||
13 | void OpenSSL_add_all_digests(void); | ||
14 | |||
15 | void EVP_cleanup(void); | ||
16 | |||
17 | =head1 DESCRIPTION | ||
18 | |||
19 | OpenSSL keeps an internal table of digest algorithms and ciphers. It uses | ||
20 | this table to lookup ciphers via functions such as EVP_get_cipher_byname(). | ||
21 | |||
22 | OpenSSL_add_all_digests() adds all digest algorithms to the table. | ||
23 | |||
24 | OpenSSL_add_all_algorithms() adds all algorithms to the table (digests and | ||
25 | ciphers). | ||
26 | |||
27 | OpenSSL_add_all_ciphers() adds all encryption algorithms to the table including | ||
28 | password based encryption algorithms. | ||
29 | |||
30 | EVP_cleanup() removes all ciphers and digests from the table. | ||
31 | |||
32 | =head1 RETURN VALUES | ||
33 | |||
34 | None of the functions return a value. | ||
35 | |||
36 | =head1 NOTES | ||
37 | |||
38 | A typical application will will call OpenSSL_add_all_algorithms() initially and | ||
39 | EVP_cleanup() before exiting. | ||
40 | |||
41 | An application does not need to add algorithms to use them explicitly, for example | ||
42 | by EVP_sha1(). It just needs to add them if it (or any of the functions it calls) | ||
43 | needs to lookup algorithms. | ||
44 | |||
45 | The cipher and digest lookup functions are used in many parts of the library. If | ||
46 | the table is not initialised several functions will misbehave and complain they | ||
47 | cannot find algorithms. This includes the PEM, PKCS#12, SSL and S/MIME libraries. | ||
48 | This is a common query in the OpenSSL mailing lists. | ||
49 | |||
50 | Calling OpenSSL_add_all_algorithms() links in all algorithms: as a result a | ||
51 | statically linked executable can be quite large. If this is important it is possible | ||
52 | to just add the required ciphers and digests. | ||
53 | |||
54 | =head1 BUGS | ||
55 | |||
56 | Although the functions do not return error codes it is possible for them to fail. | ||
57 | This will only happen as a result of a memory allocation failure so this is not | ||
58 | too much of a problem in practice. | ||
59 | |||
60 | =head1 SEE ALSO | ||
61 | |||
62 | L<evp(3)|evp(3)>, L<EVP_DigestInit(3)|EVP_DigestInit(3)>, | ||
63 | L<EVP_EncryptInit(3)|EVP_EncryptInit(3)> | ||
64 | |||
65 | =cut | ||