SSL_library_init(3) OpenSSL SSL_library_init(3) NNAAMMEE SSL_library_init, OpenSSL_add_ssl_algorithms, SSLeay_add_ssl_algorithms - initialize SSL library by registering algorithms SSYYNNOOPPSSIISS #include int SSL_library_init(void); #define OpenSSL_add_ssl_algorithms() SSL_library_init() #define SSLeay_add_ssl_algorithms() SSL_library_init() DDEESSCCRRIIPPTTIIOONN _S_S_L___l_i_b_r_a_r_y___i_n_i_t_(_) registers the available SSL/TLS ciphers and digests. _O_p_e_n_S_S_L___a_d_d___s_s_l___a_l_g_o_r_i_t_h_m_s_(_) and _S_S_L_e_a_y___a_d_d___s_s_l___a_l_g_o_r_i_t_h_m_s_(_) are syn- onyms for _S_S_L___l_i_b_r_a_r_y___i_n_i_t_(_). NNOOTTEESS _S_S_L___l_i_b_r_a_r_y___i_n_i_t_(_) must be called before any other action takes place. _S_S_L___l_i_b_r_a_r_y___i_n_i_t_(_) is not reentrant. WWAARRNNIINNGG _S_S_L___l_i_b_r_a_r_y___i_n_i_t_(_) adds ciphers and digests used directly and indi- rectly by SSL/TLS. EEXXAAMMPPLLEESS A typical TLS/SSL application will start with the library initializa- tion, and provide readable error messages. SSL_load_error_strings(); /* readable error messages */ SSL_library_init(); /* initialize library */ RREETTUURRNN VVAALLUUEESS _S_S_L___l_i_b_r_a_r_y___i_n_i_t_(_) always returns "1", so it is safe to discard the return value. NNOOTTEESS OpenSSL 0.9.8o and 1.0.0a and later added SHA2 algorithms to _S_S_L___l_i_b_r_a_r_y___i_n_i_t_(_). Applications which need to use SHA2 in earlier versions of OpenSSL should call _O_p_e_n_S_S_L___a_d_d___a_l_l___a_l_g_o_r_i_t_h_m_s_(_) as well. SSEEEE AALLSSOO _s_s_l(3), _S_S_L___l_o_a_d___e_r_r_o_r___s_t_r_i_n_g_s(3), _R_A_N_D___a_d_d(3) 1.0.1u 2016-09-22 SSL_library_init(3)