2
0

SSL_new.pod 891 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. =pod
  2. =head1 NAME
  3. SSL_new - create a new SSL structure for a connection
  4. =head1 SYNOPSIS
  5. #include <openssl/ssl.h>
  6. SSL *SSL_new(SSL_CTX *ctx);
  7. =head1 DESCRIPTION
  8. SSL_new() creates a new B<SSL> structure which is needed to hold the
  9. data for a TLS/SSL connection. The new structure inherits the settings
  10. of the underlying context B<ctx>: connection method (SSLv2/v3/TLSv1),
  11. options, verification settings, timeout settings.
  12. =head1 RETURN VALUES
  13. The following return values can occur:
  14. =over 4
  15. =item NULL
  16. The creation of a new SSL structure failed. Check the error stack to
  17. find out the reason.
  18. =item Pointer to an SSL structure
  19. The return value points to an allocated SSL structure.
  20. =back
  21. =head1 SEE ALSO
  22. L<SSL_free(3)|SSL_free(3)>, L<SSL_clear(3)|SSL_clear(3)>,
  23. L<SSL_CTX_set_options(3)|SSL_CTX_set_options(3)>,
  24. L<SSL_get_SSL_CTX(3)|SSL_get_SSL_CTX(3)>,
  25. L<ssl(3)|ssl(3)>
  26. =cut