xref: /freebsd/crypto/openssl/doc/man3/SSL_CONF_cmd_argv.pod (revision b077aed33b7b6aefca7b17ddb250cf521f938613)
1e71b7053SJung-uk Kim=pod
2e71b7053SJung-uk Kim
3e71b7053SJung-uk Kim=head1 NAME
4e71b7053SJung-uk Kim
5e71b7053SJung-uk KimSSL_CONF_cmd_argv - SSL configuration command line processing
6e71b7053SJung-uk Kim
7e71b7053SJung-uk Kim=head1 SYNOPSIS
8e71b7053SJung-uk Kim
9e71b7053SJung-uk Kim #include <openssl/ssl.h>
10e71b7053SJung-uk Kim
11e71b7053SJung-uk Kim int SSL_CONF_cmd_argv(SSL_CONF_CTX *cctx, int *pargc, char ***pargv);
12e71b7053SJung-uk Kim
13e71b7053SJung-uk Kim=head1 DESCRIPTION
14e71b7053SJung-uk Kim
15e71b7053SJung-uk KimThe function SSL_CONF_cmd_argv() processes at most two command line
16e71b7053SJung-uk Kimarguments from B<pargv> and B<pargc>. The values of B<pargv> and B<pargc>
17e71b7053SJung-uk Kimare updated to reflect the number of command options processed. The B<pargc>
18e71b7053SJung-uk Kimargument can be set to B<NULL> if it is not used.
19e71b7053SJung-uk Kim
20e71b7053SJung-uk Kim=head1 RETURN VALUES
21e71b7053SJung-uk Kim
22e71b7053SJung-uk KimSSL_CONF_cmd_argv() returns the number of command arguments processed: 0, 1, 2
23e71b7053SJung-uk Kimor a negative error code.
24e71b7053SJung-uk Kim
25e71b7053SJung-uk KimIf -2 is returned then an argument for a command is missing.
26e71b7053SJung-uk Kim
27e71b7053SJung-uk KimIf -1 is returned the command is recognised but couldn't be processed due
28e71b7053SJung-uk Kimto an error: for example a syntax error in the argument.
29e71b7053SJung-uk Kim
30e71b7053SJung-uk Kim=head1 SEE ALSO
31e71b7053SJung-uk Kim
32*b077aed3SPierre ProncheryL<ssl(7)>,
33e71b7053SJung-uk KimL<SSL_CONF_CTX_new(3)>,
34e71b7053SJung-uk KimL<SSL_CONF_CTX_set_flags(3)>,
35e71b7053SJung-uk KimL<SSL_CONF_CTX_set1_prefix(3)>,
36e71b7053SJung-uk KimL<SSL_CONF_CTX_set_ssl_ctx(3)>,
37e71b7053SJung-uk KimL<SSL_CONF_cmd(3)>
38e71b7053SJung-uk Kim
39e71b7053SJung-uk Kim=head1 HISTORY
40e71b7053SJung-uk Kim
416935a639SJung-uk KimThese functions were added in OpenSSL 1.0.2.
42e71b7053SJung-uk Kim
43e71b7053SJung-uk Kim=head1 COPYRIGHT
44e71b7053SJung-uk Kim
45e71b7053SJung-uk KimCopyright 2012-2016 The OpenSSL Project Authors. All Rights Reserved.
46e71b7053SJung-uk Kim
47*b077aed3SPierre ProncheryLicensed under the Apache License 2.0 (the "License").  You may not use
48e71b7053SJung-uk Kimthis file except in compliance with the License.  You can obtain a copy
49e71b7053SJung-uk Kimin the file LICENSE in the source distribution or at
50e71b7053SJung-uk KimL<https://www.openssl.org/source/license.html>.
51e71b7053SJung-uk Kim
52e71b7053SJung-uk Kim=cut
53