]> git.ipfire.org Git - thirdparty/openssl.git/blame - doc/man3/SSL_CONF_CTX_set_ssl_ctx.pod
Rename OPENSSL_CTX prefix to OSSL_LIB_CTX
[thirdparty/openssl.git] / doc / man3 / SSL_CONF_CTX_set_ssl_ctx.pod
CommitLineData
3db935a9
DSH
1=pod
2
3=head1 NAME
4
5SSL_CONF_CTX_set_ssl_ctx, SSL_CONF_CTX_set_ssl - set context to configure
6
7=head1 SYNOPSIS
8
9 #include <openssl/ssl.h>
10
11 void SSL_CONF_CTX_set_ssl_ctx(SSL_CONF_CTX *cctx, SSL_CTX *ctx);
12 void SSL_CONF_CTX_set_ssl(SSL_CONF_CTX *cctx, SSL *ssl);
13
14=head1 DESCRIPTION
15
16SSL_CONF_CTX_set_ssl_ctx() sets the context associated with B<cctx> to the
fc1d88f0 17B<SSL_CTX> structure B<ctx>. Any previous B<SSL> or B<SSL_CTX> associated with
3db935a9
DSH
18B<cctx> is cleared. Subsequent calls to SSL_CONF_cmd() will be sent to
19B<ctx>.
20
21SSL_CONF_CTX_set_ssl() sets the context associated with B<cctx> to the
fc1d88f0 22B<SSL> structure B<ssl>. Any previous B<SSL> or B<SSL_CTX> associated with
3db935a9
DSH
23B<cctx> is cleared. Subsequent calls to SSL_CONF_cmd() will be sent to
24B<ssl>.
25
26=head1 NOTES
27
28The context need not be set or it can be set to B<NULL> in which case only
29syntax checking of commands is performed, where possible.
30
31=head1 RETURN VALUES
32
33SSL_CONF_CTX_set_ssl_ctx() and SSL_CTX_set_ssl() do not return a value.
34
35=head1 SEE ALSO
36
98ca37e4 37L<ssl(7)>,
9b86974e
RS
38L<SSL_CONF_CTX_new(3)>,
39L<SSL_CONF_CTX_set_flags(3)>,
40L<SSL_CONF_CTX_set1_prefix(3)>,
41L<SSL_CONF_cmd(3)>,
42L<SSL_CONF_cmd_argv(3)>
3db935a9
DSH
43
44=head1 HISTORY
45
fc5ecadd 46These functions were added in OpenSSL 1.0.2.
3db935a9 47
e2f92610
RS
48=head1 COPYRIGHT
49
50Copyright 2012-2016 The OpenSSL Project Authors. All Rights Reserved.
51
4746f25a 52Licensed under the Apache License 2.0 (the "License"). You may not use
e2f92610
RS
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