1 | =pod
|
---|
2 |
|
---|
3 | =head1 NAME
|
---|
4 |
|
---|
5 | SSL_CONF_CTX_finish,
|
---|
6 | SSL_CONF_CTX_set_ssl_ctx, SSL_CONF_CTX_set_ssl - set context to configure
|
---|
7 |
|
---|
8 | =head1 SYNOPSIS
|
---|
9 |
|
---|
10 | #include <openssl/ssl.h>
|
---|
11 |
|
---|
12 | void SSL_CONF_CTX_set_ssl_ctx(SSL_CONF_CTX *cctx, SSL_CTX *ctx);
|
---|
13 | void SSL_CONF_CTX_set_ssl(SSL_CONF_CTX *cctx, SSL *ssl);
|
---|
14 | int SSL_CONF_CTX_finish(SSL_CONF_CTX *cctx);
|
---|
15 |
|
---|
16 | =head1 DESCRIPTION
|
---|
17 |
|
---|
18 | SSL_CONF_CTX_set_ssl_ctx() sets the context associated with B<cctx> to the
|
---|
19 | B<SSL_CTX> structure B<ctx>. Any previous B<SSL> or B<SSL_CTX> associated with
|
---|
20 | B<cctx> is cleared. Subsequent calls to SSL_CONF_cmd() will be sent to
|
---|
21 | B<ctx>.
|
---|
22 |
|
---|
23 | SSL_CONF_CTX_set_ssl() sets the context associated with B<cctx> to the
|
---|
24 | B<SSL> structure B<ssl>. Any previous B<SSL> or B<SSL_CTX> associated with
|
---|
25 | B<cctx> is cleared. Subsequent calls to SSL_CONF_cmd() will be sent to
|
---|
26 | B<ssl>.
|
---|
27 |
|
---|
28 | The function SSL_CONF_CTX_finish() must be called after all configuration
|
---|
29 | operations have been completed. It is used to finalise any operations
|
---|
30 | or to process defaults.
|
---|
31 |
|
---|
32 | =head1 NOTES
|
---|
33 |
|
---|
34 | The context need not be set or it can be set to B<NULL> in which case only
|
---|
35 | syntax checking of commands is performed, where possible.
|
---|
36 |
|
---|
37 | =head1 RETURN VALUES
|
---|
38 |
|
---|
39 | SSL_CONF_CTX_set_ssl_ctx() and SSL_CTX_set_ssl() do not return a value.
|
---|
40 |
|
---|
41 | SSL_CONF_CTX_finish() returns 1 for success and 0 for failure.
|
---|
42 |
|
---|
43 | =head1 SEE ALSO
|
---|
44 |
|
---|
45 | L<ssl(7)>,
|
---|
46 | L<SSL_CONF_CTX_new(3)>,
|
---|
47 | L<SSL_CONF_CTX_set_flags(3)>,
|
---|
48 | L<SSL_CONF_CTX_set1_prefix(3)>,
|
---|
49 | L<SSL_CONF_cmd(3)>,
|
---|
50 | L<SSL_CONF_cmd_argv(3)>
|
---|
51 |
|
---|
52 | =head1 HISTORY
|
---|
53 |
|
---|
54 | These functions were added in OpenSSL 1.0.2.
|
---|
55 |
|
---|
56 | =head1 COPYRIGHT
|
---|
57 |
|
---|
58 | Copyright 2012-2023 The OpenSSL Project Authors. All Rights Reserved.
|
---|
59 |
|
---|
60 | Licensed under the Apache License 2.0 (the "License"). You may not use
|
---|
61 | this file except in compliance with the License. You can obtain a copy
|
---|
62 | in the file LICENSE in the source distribution or at
|
---|
63 | L<https://www.openssl.org/source/license.html>.
|
---|
64 |
|
---|
65 | =cut
|
---|