OLD | NEW |
1 =pod | 1 =pod |
2 | 2 |
3 =head1 NAME | 3 =head1 NAME |
4 | 4 |
5 SSL_library_init, OpenSSL_add_ssl_algorithms, SSLeay_add_ssl_algorithms | 5 SSL_library_init, OpenSSL_add_ssl_algorithms, SSLeay_add_ssl_algorithms |
6 - initialize SSL library by registering algorithms | 6 - initialize SSL library by registering algorithms |
7 | 7 |
8 =head1 SYNOPSIS | 8 =head1 SYNOPSIS |
9 | 9 |
10 #include <openssl/ssl.h> | 10 #include <openssl/ssl.h> |
11 | 11 |
12 int SSL_library_init(void); | 12 int SSL_library_init(void); |
13 #define OpenSSL_add_ssl_algorithms() SSL_library_init() | 13 #define OpenSSL_add_ssl_algorithms() SSL_library_init() |
14 #define SSLeay_add_ssl_algorithms() SSL_library_init() | 14 #define SSLeay_add_ssl_algorithms() SSL_library_init() |
15 | 15 |
16 =head1 DESCRIPTION | 16 =head1 DESCRIPTION |
17 | 17 |
18 SSL_library_init() registers the available SSL/TLS ciphers and digests. | 18 SSL_library_init() registers the available SSL/TLS ciphers and digests. |
19 | 19 |
20 OpenSSL_add_ssl_algorithms() and SSLeay_add_ssl_algorithms() are synonyms | 20 OpenSSL_add_ssl_algorithms() and SSLeay_add_ssl_algorithms() are synonyms |
21 for SSL_library_init(). | 21 for SSL_library_init(). |
22 | 22 |
23 =head1 NOTES | 23 =head1 NOTES |
24 | 24 |
25 SSL_library_init() must be called before any other action takes place. | 25 SSL_library_init() must be called before any other action takes place. |
| 26 SSL_library_init() is not reentrant. |
26 | 27 |
27 =head1 WARNING | 28 =head1 WARNING |
28 | 29 |
29 SSL_library_init() adds ciphers and digests used directly and indirectly by | 30 SSL_library_init() adds ciphers and digests used directly and indirectly by |
30 SSL/TLS. | 31 SSL/TLS. |
31 | 32 |
32 =head1 EXAMPLES | 33 =head1 EXAMPLES |
33 | 34 |
34 A typical TLS/SSL application will start with the library initialization, | 35 A typical TLS/SSL application will start with the library initialization, |
35 and provide readable error messages. | 36 and provide readable error messages. |
(...skipping 11 matching lines...) Expand all Loading... |
47 OpenSSL 0.9.8o and 1.0.0a and later added SHA2 algorithms to SSL_library_init(). | 48 OpenSSL 0.9.8o and 1.0.0a and later added SHA2 algorithms to SSL_library_init(). |
48 Applications which need to use SHA2 in earlier versions of OpenSSL should call | 49 Applications which need to use SHA2 in earlier versions of OpenSSL should call |
49 OpenSSL_add_all_algorithms() as well. | 50 OpenSSL_add_all_algorithms() as well. |
50 | 51 |
51 =head1 SEE ALSO | 52 =head1 SEE ALSO |
52 | 53 |
53 L<ssl(3)|ssl(3)>, L<SSL_load_error_strings(3)|SSL_load_error_strings(3)>, | 54 L<ssl(3)|ssl(3)>, L<SSL_load_error_strings(3)|SSL_load_error_strings(3)>, |
54 L<RAND_add(3)|RAND_add(3)> | 55 L<RAND_add(3)|RAND_add(3)> |
55 | 56 |
56 =cut | 57 =cut |
OLD | NEW |