SSL_new 3 2002-06-09 0.9.9-dev OpenSSL

NAME

SSL_new - create a new SSL structure for a connection

LIBRARY

libcrypto, -lcrypto

SYNOPSIS


 #include 


 SSL *SSL_new(SSL_CTX *ctx);

DESCRIPTION

_S_S_L___n_e_w_(_) creates a new SSSSLL structure which is needed to hold the data for a TLS/SSL connection. The new structure inherits the settings of the underlying context ccttxx: 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

_S_S_L___f_r_e_e(3), _S_S_L___c_l_e_a_r(3), _S_S_L___C_T_X___s_e_t___o_p_t_i_o_n_s(3), _S_S_L___g_e_t___S_S_L___C_T_X(3), _s_s_l(3)