1SSL_library_init(3)                 OpenSSL                SSL_library_init(3)
2
3
4

NAME

6       SSL_library_init, OpenSSL_add_ssl_algorithms, SSLeay_add_ssl_algorithms
7       - initialize SSL library by registering algorithms
8

SYNOPSIS

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

DESCRIPTION

17       SSL_library_init() registers the available SSL/TLS ciphers and digests.
18
19       OpenSSL_add_ssl_algorithms() and SSLeay_add_ssl_algorithms() are
20       synonyms for SSL_library_init().
21

NOTES

23       SSL_library_init() must be called before any other action takes place.
24       SSL_library_init() is not reentrant.
25

WARNING

27       SSL_library_init() adds ciphers and digests used directly and
28       indirectly by SSL/TLS.
29

EXAMPLES

31       A typical TLS/SSL application will start with the library
32       initialization, and provide readable error messages.
33
34        SSL_load_error_strings();                /* readable error messages */
35        SSL_library_init();                      /* initialize library */
36

RETURN VALUES

38       SSL_library_init() always returns "1", so it is safe to discard the
39       return value.
40

NOTES

42       OpenSSL 0.9.8o and 1.0.0a and later added SHA2 algorithms to
43       SSL_library_init().  Applications which need to use SHA2 in earlier
44       versions of OpenSSL should call OpenSSL_add_all_algorithms() as well.
45

SEE ALSO

47       ssl(3), SSL_load_error_strings(3), RAND_add(3)
48
49
50
511.0.2k                            2017-01-26               SSL_library_init(3)
Impressum