1SSL_library_init(3) OpenSSL SSL_library_init(3)
2
3
4
6 SSL_library_init, OpenSSL_add_ssl_algorithms, SSLeay_add_ssl_algorithms
7 - initialize SSL library by registering algorithms
8
10 #include <openssl/ssl.h>
11
12 int SSL_library_init(void);
13 #define OpenSSL_add_ssl_algorithms() SSL_library_init()
14 #define SSLeay_add_ssl_algorithms() SSL_library_init()
15
17 SSL_library_init() registers the available ciphers and digests.
18
19 OpenSSL_add_ssl_algorithms() and SSLeay_add_ssl_algorithms() are syn‐
20 onyms for SSL_library_init().
21
23 SSL_library_init() must be called before any other action takes place.
24
26 SSL_library_init() only registers ciphers. Another important initial‐
27 ization is the seeding of the PRNG (Pseudo Random Number Generator),
28 which has to be performed separately.
29
31 A typical TLS/SSL application will start with the library initializa‐
32 tion, will provide readable error messages and will seed the PRNG.
33
34 SSL_load_error_strings(); /* readable error messages */
35 SSL_library_init(); /* initialize library */
36 actions_to_seed_PRNG();
37
39 SSL_library_init() always returns "1", so it is safe to discard the
40 return value.
41
43 ssl(3), SSL_load_error_strings(3), RAND_add(3)
44
45
46
470.9.8b 2000-09-21 SSL_library_init(3)