SSL_CONF_CTX_set_ssl_ctx.pod 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. =pod
  2. =head1 NAME
  3. SSL_CONF_CTX_set_ssl_ctx, SSL_CONF_CTX_set_ssl - set context to configure
  4. =head1 SYNOPSIS
  5. #include <openssl/ssl.h>
  6. void SSL_CONF_CTX_set_ssl_ctx(SSL_CONF_CTX *cctx, SSL_CTX *ctx);
  7. void SSL_CONF_CTX_set_ssl(SSL_CONF_CTX *cctx, SSL *ssl);
  8. =head1 DESCRIPTION
  9. SSL_CONF_CTX_set_ssl_ctx() sets the context associated with B<cctx> to the
  10. B<SSL_CTX> structure B<ctx>. Any previous B<SSL> or B<SSL_CTX> associated with
  11. B<cctx> is cleared. Subsequent calls to SSL_CONF_cmd() will be sent to
  12. B<ctx>.
  13. SSL_CONF_CTX_set_ssl() sets the context associated with B<cctx> to the
  14. B<SSL> structure B<ssl>. Any previous B<SSL> or B<SSL_CTX> associated with
  15. B<cctx> is cleared. Subsequent calls to SSL_CONF_cmd() will be sent to
  16. B<ssl>.
  17. =head1 NOTES
  18. The context need not be set or it can be set to B<NULL> in which case only
  19. syntax checking of commands is performed, where possible.
  20. =head1 RETURN VALUES
  21. SSL_CONF_CTX_set_ssl_ctx() and SSL_CTX_set_ssl() do not return a value.
  22. =head1 SEE ALSO
  23. L<ssl(7)>,
  24. L<SSL_CONF_CTX_new(3)>,
  25. L<SSL_CONF_CTX_set_flags(3)>,
  26. L<SSL_CONF_CTX_set1_prefix(3)>,
  27. L<SSL_CONF_cmd(3)>,
  28. L<SSL_CONF_cmd_argv(3)>
  29. =head1 HISTORY
  30. These functions were added in OpenSSL 1.0.2.
  31. =head1 COPYRIGHT
  32. Copyright 2012-2016 The OpenSSL Project Authors. All Rights Reserved.
  33. Licensed under the Apache License 2.0 (the "License"). You may not use
  34. this file except in compliance with the License. You can obtain a copy
  35. in the file LICENSE in the source distribution or at
  36. L<https://www.openssl.org/source/license.html>.
  37. =cut