]> git.ipfire.org Git - thirdparty/openssl.git/blame - doc/man3/SSL_CONF_CTX_set_flags.pod
Implement EVP_MAC_do_all_ex()
[thirdparty/openssl.git] / doc / man3 / SSL_CONF_CTX_set_flags.pod
CommitLineData
3db935a9
DSH
1=pod
2
3=head1 NAME
4
818f8617 5SSL_CONF_CTX_set_flags, SSL_CONF_CTX_clear_flags - Set or clear SSL configuration context flags
3db935a9
DSH
6
7=head1 SYNOPSIS
8
9 #include <openssl/ssl.h>
10
11 unsigned int SSL_CONF_CTX_set_flags(SSL_CONF_CTX *cctx, unsigned int flags);
12 unsigned int SSL_CONF_CTX_clear_flags(SSL_CONF_CTX *cctx, unsigned int flags);
13
14=head1 DESCRIPTION
15
16The function SSL_CONF_CTX_set_flags() sets B<flags> in the context B<cctx>.
17
18The function SSL_CONF_CTX_clear_flags() clears B<flags> in the context B<cctx>.
19
20=head1 NOTES
21
c7b7984a
DSH
22The flags set affect how subsequent calls to SSL_CONF_cmd() or
23SSL_CONF_argv() behave.
3db935a9
DSH
24
25Currently the following B<flags> values are recognised:
26
27=over 4
28
65f2a565 29=item SSL_CONF_FLAG_CMDLINE, SSL_CONF_FLAG_FILE
3db935a9
DSH
30
31recognise options intended for command line or configuration file use. At
32least one of these flags must be set.
33
34=item SSL_CONF_FLAG_CLIENT, SSL_CONF_FLAG_SERVER
35
36recognise options intended for use in SSL/TLS clients or servers. One or
37both of these flags must be set.
38
15b5d658 39=item SSL_CONF_FLAG_CERTIFICATE
ec2f7e56
DSH
40
41recognise certificate and private key options.
42
2011b169
DSH
43=item SSL_CONF_FLAG_REQUIRE_PRIVATE
44
45If this option is set then if a private key is not specified for a certificate
46it will attempt to load a private key from the certificate file when
47SSL_CONF_CTX_finish() is called. If a key cannot be loaded from the certificate
48file an error occurs.
49
3db935a9
DSH
50=item SSL_CONF_FLAG_SHOW_ERRORS
51
52indicate errors relating to unrecognised options or missing arguments in
53the error queue. If this option isn't set such errors are only reflected
54in the return values of SSL_CONF_set_cmd() or SSL_CONF_set_argv()
55
c7b7984a
DSH
56=back
57
3db935a9
DSH
58=head1 RETURN VALUES
59
60SSL_CONF_CTX_set_flags() and SSL_CONF_CTX_clear_flags() returns the new flags
61value after setting or clearing flags.
62
63=head1 SEE ALSO
64
9b86974e
RS
65L<SSL_CONF_CTX_new(3)>,
66L<SSL_CONF_CTX_set_ssl_ctx(3)>,
67L<SSL_CONF_CTX_set1_prefix(3)>,
68L<SSL_CONF_cmd(3)>,
69L<SSL_CONF_cmd_argv(3)>
3db935a9
DSH
70
71=head1 HISTORY
72
fc5ecadd 73These functions were added in OpenSSL 1.0.2.
3db935a9 74
e2f92610
RS
75=head1 COPYRIGHT
76
77Copyright 2012-2016 The OpenSSL Project Authors. All Rights Reserved.
78
4746f25a 79Licensed under the Apache License 2.0 (the "License"). You may not use
e2f92610
RS
80this file except in compliance with the License. You can obtain a copy
81in the file LICENSE in the source distribution or at
82L<https://www.openssl.org/source/license.html>.
83
84=cut