SSL_CTX_set_quiet_shutdown(3) OpenSSL SSL_CTX_set_quiet_shutdown(3) NNAAMMEE SSL_CTX_set_quiet_shutdown, SSL_CTX_get_quiet_shutdown, SSL_set_quiet_shutdown, SSL_get_quiet_shutdown - manipulate shutdown behaviour SSYYNNOOPPSSIISS #include void SSL_CTX_set_quiet_shutdown(SSL_CTX *ctx, int mode); int SSL_CTX_get_quiet_shutdown(const SSL_CTX *ctx); void SSL_set_quiet_shutdown(SSL *ssl, int mode); int SSL_get_quiet_shutdown(const SSL *ssl); DDEESSCCRRIIPPTTIIOONN _S_S_L___C_T_X___s_e_t___q_u_i_e_t___s_h_u_t_d_o_w_n_(_) sets the "quiet shutdown" flag for ccttxx to be mmooddee. SSL objects created from ccttxx inherit the mmooddee valid at the time _S_S_L___n_e_w(3) is called. mmooddee may be 0 or 1. _S_S_L___C_T_X___g_e_t___q_u_i_e_t___s_h_u_t_d_o_w_n_(_) returns the "quiet shutdown" setting of ccttxx. _S_S_L___s_e_t___q_u_i_e_t___s_h_u_t_d_o_w_n_(_) sets the "quiet shutdown" flag for ssssll to be mmooddee. The setting stays valid until ssssll is removed with _S_S_L___f_r_e_e(3) or _S_S_L___s_e_t___q_u_i_e_t___s_h_u_t_d_o_w_n_(_) is called again. It is not changed when _S_S_L___c_l_e_a_r(3) is called. mmooddee may be 0 or 1. _S_S_L___g_e_t___q_u_i_e_t___s_h_u_t_d_o_w_n_(_) returns the "quiet shutdown" setting of ssssll. NNOOTTEESS Normally when a SSL connection is finished, the parties must send out "close notify" alert messages using _S_S_L___s_h_u_t_d_o_w_n(3) for a clean shut- down. When setting the "quiet shutdown" flag to 1, _S_S_L___s_h_u_t_d_o_w_n(3) will set the internal flags to SSL_SENT_SHUTDOWN|SSL_RECEIVED_SHUTDOWN. (_S_S_L___s_h_u_t_d_o_w_n(3) then behaves like _S_S_L___s_e_t___s_h_u_t_d_o_w_n(3) called with SSL_SENT_SHUTDOWN|SSL_RECEIVED_SHUTDOWN.) The session is thus consid- ered to be shutdown, but no "close notify" alert is sent to the peer. This behaviour violates the TLS standard. The default is normal shutdown behaviour as described by the TLS stan- dard. RREETTUURRNN VVAALLUUEESS _S_S_L___C_T_X___s_e_t___q_u_i_e_t___s_h_u_t_d_o_w_n_(_) and _S_S_L___s_e_t___q_u_i_e_t___s_h_u_t_d_o_w_n_(_) do not return diagnostic information. _S_S_L___C_T_X___g_e_t___q_u_i_e_t___s_h_u_t_d_o_w_n_(_) and SSL_get_quiet_shutdown return the cur- rent setting. SSEEEE AALLSSOO _s_s_l(3), _S_S_L___s_h_u_t_d_o_w_n(3), _S_S_L___s_e_t___s_h_u_t_d_o_w_n(3), _S_S_L___n_e_w(3), _S_S_L___c_l_e_a_r(3), _S_S_L___f_r_e_e(3) 1.0.1u 2016-09-22 SSL_CTX_set_quiet_shutdown(3)