1SSL_CONF_CTX_SET_FLAGS(3)           OpenSSL          SSL_CONF_CTX_SET_FLAGS(3)
2
3
4

NAME

6       SSL_CONF_CTX_set_flags, SSL_CONF_CTX_clear_flags - Set or clear SSL
7       configuration context flags
8

SYNOPSIS

10        #include <openssl/ssl.h>
11
12        unsigned int SSL_CONF_CTX_set_flags(SSL_CONF_CTX *cctx, unsigned int flags);
13        unsigned int SSL_CONF_CTX_clear_flags(SSL_CONF_CTX *cctx, unsigned int flags);
14

DESCRIPTION

16       The function SSL_CONF_CTX_set_flags() sets flags in the context cctx.
17
18       The function SSL_CONF_CTX_clear_flags() clears flags in the context
19       cctx.
20

NOTES

22       The flags set affect how subsequent calls to SSL_CONF_cmd() or
23       SSL_CONF_argv() behave.
24
25       Currently the following flags values are recognised:
26
27       SSL_CONF_FLAG_CMDLINE, SSL_CONF_FLAG_FILE
28           recognise options intended for command line or configuration file
29           use. At least one of these flags must be set.
30
31       SSL_CONF_FLAG_CLIENT, SSL_CONF_FLAG_SERVER
32           recognise options intended for use in SSL/TLS clients or servers.
33           One or both of these flags must be set.
34
35       SSL_CONF_FLAG_CERTIFICATE
36           recognise certificate and private key options.
37
38       SSL_CONF_FLAG_REQUIRE_PRIVATE
39           If this option is set then if a private key is not specified for a
40           certificate it will attempt to load a private key from the
41           certificate file when SSL_CONF_CTX_finish() is called. If a key
42           cannot be loaded from the certificate file an error occurs.
43
44       SSL_CONF_FLAG_SHOW_ERRORS
45           indicate errors relating to unrecognised options or missing
46           arguments in the error queue. If this option isn't set such errors
47           are only reflected in the return values of SSL_CONF_set_cmd() or
48           SSL_CONF_set_argv()
49

RETURN VALUES

51       SSL_CONF_CTX_set_flags() and SSL_CONF_CTX_clear_flags() returns the new
52       flags value after setting or clearing flags.
53

SEE ALSO

55       SSL_CONF_CTX_new(3), SSL_CONF_CTX_set_ssl_ctx(3),
56       SSL_CONF_CTX_set1_prefix(3), SSL_CONF_cmd(3), SSL_CONF_cmd_argv(3)
57

HISTORY

59       These functions were added in OpenSSL 1.0.2.
60
62       Copyright 2012-2016 The OpenSSL Project Authors. All Rights Reserved.
63
64       Licensed under the OpenSSL license (the "License").  You may not use
65       this file except in compliance with the License.  You can obtain a copy
66       in the file LICENSE in the source distribution or at
67       <https://www.openssl.org/source/license.html>.
68
69
70
711.1.1k                            2021-03-26         SSL_CONF_CTX_SET_FLAGS(3)
Impressum