diff options
author | schwarze <> | 2016-11-03 12:21:50 +0000 |
---|---|---|
committer | schwarze <> | 2016-11-03 12:21:50 +0000 |
commit | 61150c63123fd35d04d23a0f8879a03f82044004 (patch) | |
tree | 0a5cc7708ea5734467780929f9b2612a488b25fe /src/lib/libcrypto/man/OpenSSL_add_all_algorithms.3 | |
parent | 99421a4d33ceb28652f51f4a28160d96485e712e (diff) | |
download | openbsd-61150c63123fd35d04d23a0f8879a03f82044004.tar.gz openbsd-61150c63123fd35d04d23a0f8879a03f82044004.tar.bz2 openbsd-61150c63123fd35d04d23a0f8879a03f82044004.zip |
convert configuration manuals from pod to mdoc
Diffstat (limited to 'src/lib/libcrypto/man/OpenSSL_add_all_algorithms.3')
-rw-r--r-- | src/lib/libcrypto/man/OpenSSL_add_all_algorithms.3 | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/src/lib/libcrypto/man/OpenSSL_add_all_algorithms.3 b/src/lib/libcrypto/man/OpenSSL_add_all_algorithms.3 new file mode 100644 index 0000000000..b6e93a939e --- /dev/null +++ b/src/lib/libcrypto/man/OpenSSL_add_all_algorithms.3 | |||
@@ -0,0 +1,71 @@ | |||
1 | .Dd $Mdocdate: November 3 2016 $ | ||
2 | .Dt OPENSSL_ADD_ALL_ALGORITHMS 3 | ||
3 | .Os | ||
4 | .Sh NAME | ||
5 | .Nm OpenSSL_add_all_algorithms , | ||
6 | .Nm OpenSSL_add_all_ciphers , | ||
7 | .Nm OpenSSL_add_all_digests , | ||
8 | .Nm EVP_cleanup | ||
9 | .Nd add algorithms to internal table | ||
10 | .Sh SYNOPSIS | ||
11 | .In openssl/evp.h | ||
12 | .Ft void | ||
13 | .Fn OpenSSL_add_all_algorithms void | ||
14 | .Ft void | ||
15 | .Fn OpenSSL_add_all_ciphers void | ||
16 | .Ft void | ||
17 | .Fn OpenSSL_add_all_digests void | ||
18 | .Ft void | ||
19 | .Fn EVP_cleanup void | ||
20 | .Sh DESCRIPTION | ||
21 | OpenSSL keeps an internal table of digest algorithms and ciphers. | ||
22 | It uses this table to lookup ciphers via functions such as | ||
23 | .Xr EVP_get_cipherbyname 3 . | ||
24 | .Pp | ||
25 | .Fn OpenSSL_add_all_algorithms | ||
26 | adds all algorithms to the table (digests and ciphers). | ||
27 | .Pp | ||
28 | .Fn OpenSSL_add_all_digests | ||
29 | adds all digest algorithms to the table. | ||
30 | .Pp | ||
31 | .Fn OpenSSL_add_all_ciphers | ||
32 | adds all encryption algorithms to the table including password based | ||
33 | encryption algorithms. | ||
34 | .Pp | ||
35 | .Fn EVP_cleanup | ||
36 | removes all ciphers and digests from the table. | ||
37 | .Pp | ||
38 | A typical application will call | ||
39 | .Fn OpenSSL_add_all_algorithms | ||
40 | initially and | ||
41 | .Fn EVP_cleanup | ||
42 | before exiting. | ||
43 | .Pp | ||
44 | An application does not need to add algorithms to use them explicitly, | ||
45 | for example by | ||
46 | .Xr EVP_sha1 3 . | ||
47 | It just needs to add them if it (or any of the functions it calls) needs | ||
48 | to lookup algorithms. | ||
49 | .Pp | ||
50 | The cipher and digest lookup functions are used in many parts of the | ||
51 | library. | ||
52 | If the table is not initialized, several functions will misbehave and | ||
53 | complain they cannot find algorithms. | ||
54 | This includes the PEM, PKCS#12, SSL and S/MIME libraries. | ||
55 | This is a common query in the OpenSSL mailing lists. | ||
56 | .Pp | ||
57 | Calling | ||
58 | .Fn OpenSSL_add_all_algorithms | ||
59 | links in all algorithms: as a result a statically linked executable can | ||
60 | be quite large. | ||
61 | If this is important, it is possible to just add the required ciphers and | ||
62 | digests. | ||
63 | .Sh SEE ALSO | ||
64 | .Xr evp 3 , | ||
65 | .Xr EVP_DigestInit 3 , | ||
66 | .Xr EVP_EncryptInit 3 | ||
67 | .Sh BUGS | ||
68 | Although the functions do not return error codes, it is possible for them | ||
69 | to fail. | ||
70 | This will only happen as a result of a memory allocation failure so this | ||
71 | is not too much of a problem in practice. | ||