xref: /freebsd/crypto/openssl/doc/man3/SSL_library_init.pod (revision b077aed33b7b6aefca7b17ddb250cf521f938613)
1e71b7053SJung-uk Kim=pod
2e71b7053SJung-uk Kim
3e71b7053SJung-uk Kim=head1 NAME
4e71b7053SJung-uk Kim
5e71b7053SJung-uk KimSSL_library_init, OpenSSL_add_ssl_algorithms
6e71b7053SJung-uk Kim- initialize SSL library by registering algorithms
7e71b7053SJung-uk Kim
8e71b7053SJung-uk Kim=head1 SYNOPSIS
9e71b7053SJung-uk Kim
10e71b7053SJung-uk Kim #include <openssl/ssl.h>
11e71b7053SJung-uk Kim
12e71b7053SJung-uk Kim int SSL_library_init(void);
13e71b7053SJung-uk Kim
14e71b7053SJung-uk Kim int OpenSSL_add_ssl_algorithms(void);
15e71b7053SJung-uk Kim
16e71b7053SJung-uk Kim=head1 DESCRIPTION
17e71b7053SJung-uk Kim
18e71b7053SJung-uk KimSSL_library_init() registers the available SSL/TLS ciphers and digests.
19e71b7053SJung-uk Kim
20e71b7053SJung-uk KimOpenSSL_add_ssl_algorithms() is a synonym for SSL_library_init() and is
21e71b7053SJung-uk Kimimplemented as a macro.
22e71b7053SJung-uk Kim
23e71b7053SJung-uk Kim=head1 NOTES
24e71b7053SJung-uk Kim
25e71b7053SJung-uk KimSSL_library_init() must be called before any other action takes place.
26e71b7053SJung-uk KimSSL_library_init() is not reentrant.
27e71b7053SJung-uk Kim
28da327cd2SJung-uk Kim=head1 WARNINGS
29e71b7053SJung-uk Kim
30e71b7053SJung-uk KimSSL_library_init() adds ciphers and digests used directly and indirectly by
31e71b7053SJung-uk KimSSL/TLS.
32e71b7053SJung-uk Kim
33e71b7053SJung-uk Kim=head1 RETURN VALUES
34e71b7053SJung-uk Kim
35e71b7053SJung-uk KimSSL_library_init() always returns "1", so it is safe to discard the return
36e71b7053SJung-uk Kimvalue.
37e71b7053SJung-uk Kim
38e71b7053SJung-uk Kim=head1 SEE ALSO
39e71b7053SJung-uk Kim
40e71b7053SJung-uk KimL<ssl(7)>,
41e71b7053SJung-uk KimL<RAND_add(3)>
42e71b7053SJung-uk Kim
43e71b7053SJung-uk Kim=head1 HISTORY
44e71b7053SJung-uk Kim
45e71b7053SJung-uk KimThe SSL_library_init() and OpenSSL_add_ssl_algorithms() functions were
46e71b7053SJung-uk Kimdeprecated in OpenSSL 1.1.0 by OPENSSL_init_ssl().
47e71b7053SJung-uk Kim
48e71b7053SJung-uk Kim=head1 COPYRIGHT
49e71b7053SJung-uk Kim
50*b077aed3SPierre ProncheryCopyright 2000-2016 The OpenSSL Project Authors. All Rights Reserved.
51e71b7053SJung-uk Kim
52*b077aed3SPierre ProncheryLicensed under the Apache License 2.0 (the "License").  You may not use
53e71b7053SJung-uk Kimthis file except in compliance with the License.  You can obtain a copy
54e71b7053SJung-uk Kimin the file LICENSE in the source distribution or at
55e71b7053SJung-uk KimL<https://www.openssl.org/source/license.html>.
56e71b7053SJung-uk Kim
57e71b7053SJung-uk Kim=cut
58