ssl_new(3) - Linux man page

Name

SSL_new - create a new SSL structure for a connection

Synopsis

#include <openssl/ssl.h>

SSL *SSL_new(SSL_CTX *ctx);

Description

SSL_new() creates a new SSL structure which is needed to hold the data for a TLS/SSL connection. The new structure inherits the settings of the underlying context ctx: connection method (SSLv2/v3/TLSv1), options, verification settings, timeout settings.

Return Values

The following return values can occur:

NULL
The creation of a new SSL structure failed. Check the error stack to find out the reason.
Pointer to an SSL structure
The return value points to an allocated SSL structure.

See Also

ssl_free(3), ssl_clear(3), ssl_ctx_set_options(3), ssl_get_ssl_ctx(3), ssl(3)

Referenced By

ssl_ctx_set_cert_verify_callback(3), ssl_ctx_set_quiet_shutdown(3), ssl_ctx_set_ssl_version(3), ssl_ctx_set_tmp_rsa_callback(3), ssl_ctx_set_verify(3), ssl_ctx_use_certificate(3), ssl_set_connect_state(3), ssl_set_max_cert_list(3), ssl_set_msg_callback(3)