1289848Sjkim=pod
2289848Sjkim
3289848Sjkim=head1 NAME
4289848Sjkim
5289848SjkimSSL_CONF_CTX_set1_prefix - Set configuration context command prefix
6289848Sjkim
7289848Sjkim=head1 SYNOPSIS
8289848Sjkim
9289848Sjkim #include <openssl/ssl.h>
10289848Sjkim
11289848Sjkim unsigned int SSL_CONF_CTX_set1_prefix(SSL_CONF_CTX *cctx, const char *prefix);
12289848Sjkim
13289848Sjkim=head1 DESCRIPTION
14289848Sjkim
15289848SjkimThe function SSL_CONF_CTX_set1_prefix() sets the command prefix of B<cctx>
16289848Sjkimto B<prefix>. If B<prefix> is B<NULL> it is restored to the default value.
17289848Sjkim
18289848Sjkim=head1 NOTES
19289848Sjkim
20289848SjkimCommand prefixes alter the commands recognised by subsequent SSL_CTX_cmd()
21289848Sjkimcalls. For example for files, if the prefix "SSL" is set then command names
22289848Sjkimsuch as "SSLProtocol", "SSLOptions" etc. are recognised instead of "Protocol"
23289848Sjkimand "Options". Similarly for command lines if the prefix is "--ssl-" then 
24289848Sjkim"--ssl-no_tls1_2" is recognised instead of "-no_tls1_2".
25289848Sjkim
26289848SjkimIf the B<SSL_CONF_FLAG_CMDLINE> flag is set then prefix checks are case
27289848Sjkimsensitive and "-" is the default. In the unlikely even an application
28289848Sjkimexplicitly wants to set no prefix it must be explicitly set to "".
29289848Sjkim
30289848SjkimIf the B<SSL_CONF_FLAG_FILE> flag is set then prefix checks are case
31289848Sjkiminsensitive and no prefix is the default.
32289848Sjkim
33289848Sjkim=head1 RETURN VALUES
34289848Sjkim
35289848SjkimSSL_CONF_CTX_set1_prefix() returns 1 for success and 0 for failure.
36289848Sjkim
37289848Sjkim=head1 SEE ALSO
38289848Sjkim
39289848SjkimL<SSL_CONF_CTX_new(3)|SSL_CONF_CTX_new(3)>,
40289848SjkimL<SSL_CONF_CTX_set_flags(3)|SSL_CONF_CTX_set_flags(3)>,
41289848SjkimL<SSL_CONF_CTX_set_ssl_ctx(3)|SSL_CONF_CTX_set_ssl_ctx(3)>,
42289848SjkimL<SSL_CONF_cmd(3)|SSL_CONF_cmd(3)>,
43289848SjkimL<SSL_CONF_cmd_argv(3)|SSL_CONF_cmd_argv(3)>
44289848Sjkim
45289848Sjkim=head1 HISTORY
46289848Sjkim
47289848SjkimThese functions were first added to OpenSSL 1.0.2
48289848Sjkim
49289848Sjkim=cut
50