5 SSL_new - Create a new SSL structure for a connection
9 #include <openssl/ssl.h>
11 SSL *SSL_new(SSL_CTX *ctx);
15 SSL_new() creates a new B<SSL> structure which is needed to hold the data
16 for a SSL connection. The new SSL inherits the settings of the underlying
17 context B<ctx>: connection method (SSLv2/v3/TLSv1), options, verification
18 settings, timeout settings.
22 The following return values can occur:
28 The creation of a new SSL failed. Check the error stack to find out the
31 =item Pointer to an SSL
33 The return value points to an allocated SSL structure.
39 L<SSL_free(3)|SSL_free(3)>, L<SSL_clear(3)|SSL_clear(3)>,