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