test/amd64: update to qemu-0.10.6
[dragonfly.git] / crypto / openssl / doc / ssl / SSL_library_init.pod
blobecf3c4858e528849a4d677a56054c94112d22331
1 =pod
3 =head1 NAME
5 SSL_library_init, OpenSSL_add_ssl_algorithms, SSLeay_add_ssl_algorithms
6 - initialize SSL library by registering algorithms
8 =head1 SYNOPSIS
10  #include <openssl/ssl.h>
12  int SSL_library_init(void);
13  #define OpenSSL_add_ssl_algorithms()    SSL_library_init()
14  #define SSLeay_add_ssl_algorithms()     SSL_library_init()
16 =head1 DESCRIPTION
18 SSL_library_init() registers the available ciphers and digests.
20 OpenSSL_add_ssl_algorithms() and SSLeay_add_ssl_algorithms() are synonyms
21 for SSL_library_init().
23 =head1 NOTES
25 SSL_library_init() must be called before any other action takes place.
27 =head1 WARNING
29 SSL_library_init() only registers ciphers. Another important initialization
30 is the seeding of the PRNG (Pseudo Random Number Generator), which has to
31 be performed separately.
33 =head1 EXAMPLES
35 A typical TLS/SSL application will start with the library initialization,
36 will provide readable error messages and will seed the PRNG.
38  SSL_load_error_strings();                /* readable error messages */
39  SSL_library_init();                      /* initialize library */
40  actions_to_seed_PRNG(); 
42 =head1 RETURN VALUES
44 SSL_library_init() always returns "1", so it is safe to discard the return
45 value.
47 =head1 SEE ALSO
49 L<ssl(3)|ssl(3)>, L<SSL_load_error_strings(3)|SSL_load_error_strings(3)>,
50 L<RAND_add(3)|RAND_add(3)>
52 =cut