1SSL_new(3) OpenSSL SSL_new(3)
2
3
4
6 SSL_new - create a new SSL structure for a connection
7
9 #include <openssl/ssl.h>
10
11 SSL *SSL_new(SSL_CTX *ctx);
12
14 SSL_new() creates a new SSL structure which is needed to hold the data
15 for a TLS/SSL connection. The new structure inherits the settings of
16 the underlying context ctx: connection method (SSLv2/v3/TLSv1),
17 options, verification settings, timeout settings.
18
20 The following return values can occur:
21
22 NULL
23 The creation of a new SSL structure failed. Check the error stack
24 to find out the reason.
25
26 Pointer to an SSL structure
27 The return value points to an allocated SSL structure.
28
30 SSL_free(3), SSL_clear(3), SSL_CTX_set_options(3), SSL_get_SSL_CTX(3),
31 ssl(3)
32
33
34
351.0.2k 2017-01-26 SSL_new(3)