SSL_CONF_cmd_argv.pod 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. =pod
  2. =head1 NAME
  3. SSL_CONF_cmd_argv - SSL configuration command line processing.
  4. =head1 SYNOPSIS
  5. #include <openssl/ssl.h>
  6. int SSL_CONF_cmd_argv(SSL_CONF_CTX *cctx, int *pargc, char ***pargv);
  7. =head1 DESCRIPTION
  8. The function SSL_CONF_cmd_argv() processes at most two command line
  9. arguments from B<pargv> and B<pargc>. The values of B<pargv> and B<pargc>
  10. are updated to reflect the number of command options processed. The B<pargc>
  11. argument can be set to B<NULL> is it is not used.
  12. =head1 RETURN VALUES
  13. SSL_CONF_cmd_argv() returns the number of command arguments processed: 0, 1, 2
  14. or a negative error code.
  15. If -2 is returned then an argument for a command is missing.
  16. If -1 is returned the command is recognised but couldn't be processed due
  17. to an error: for example a syntax error in the argument.
  18. =head1 SEE ALSO
  19. L<SSL_CONF_CTX_new(3)|SSL_CONF_CTX_new(3)>,
  20. L<SSL_CONF_CTX_set_flags(3)|SSL_CONF_CTX_set_flags(3)>,
  21. L<SSL_CONF_CTX_set1_prefix(3)|SSL_CONF_CTX_set1_prefix(3)>,
  22. L<SSL_CONF_CTX_set_ssl_ctx(3)|SSL_CONF_CTX_set_ssl_ctx(3)>,
  23. L<SSL_CONF_cmd(3)|SSL_CONF_cmd(3)>
  24. =head1 HISTORY
  25. These functions were first added to OpenSSL 1.0.2
  26. =cut