Lines Matching refs:ctx2
306 static SSL_CTX *ctx2 = NULL;
465 ctx2 = NULL;
834 if (ctx2) {
836 SSL_set_SSL_CTX(s, ctx2);
1617 ctx2 = SSL_CTX_new(meth);
1618 if (ctx2 == NULL) {
1624 if (ctx2) {
1634 if (!SSL_CTX_set_generate_session_id(ctx2, generate_session_id)) {
1641 SSL_CTX_set_quiet_shutdown(ctx2, 1);
1643 SSL_CTX_set_options(ctx2, SSL_OP_ALL);
1645 SSL_CTX_set_options(ctx2, SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG);
1646 SSL_CTX_set_options(ctx2, off);
1649 SSL_CTX_set_info_callback(ctx2, apps_ssl_info_callback);
1652 SSL_CTX_set_session_cache_mode(ctx2, SSL_SESS_CACHE_OFF);
1654 SSL_CTX_sess_set_cache_size(ctx2, 128);
1656 if ((!SSL_CTX_load_verify_locations(ctx2, CAfile, CApath)) ||
1657 (!SSL_CTX_set_default_verify_paths(ctx2))) {
1661 SSL_CTX_set1_param(ctx2, vpm);
1693 if (ctx2) {
1704 SSL_CTX_set_tmp_dh(ctx2, dh);
1744 if (ctx2)
1745 SSL_CTX_set_tmp_ecdh(ctx2, ecdh);
1754 if (ctx2 && !set_cert_key_stuff(ctx2, s_cert2, s_key2))
1766 if (ctx2)
1767 SSL_CTX_set_tmp_rsa_callback(ctx2, tmp_rsa_cb);
1784 if (ctx2) {
1785 if (!SSL_CTX_set_tmp_rsa(ctx2, rsa)) {
1824 if (ctx2 && !SSL_CTX_set_cipher_list(ctx2, cipher)) {
1840 if (ctx2) {
1841 SSL_CTX_set_verify(ctx2, s_server_verify, verify_callback);
1842 SSL_CTX_set_session_id_context(ctx2,
1847 SSL_CTX_set_tlsext_servername_callback(ctx2, ssl_servername_cb);
1848 SSL_CTX_set_tlsext_servername_arg(ctx2, &tlsextcbp);
1875 if (ctx2)
1876 SSL_CTX_set_client_CA_list(ctx2, SSL_load_client_CA_file(CAfile));
1912 if (ctx2 != NULL)
1913 SSL_CTX_free(ctx2);