Lines Matching defs:ctx2

279 static SSL_CTX *ctx2=NULL;
385 ctx2=NULL;
675 if (ctx2)
678 SSL_set_SSL_CTX(s,ctx2);
1427 ctx2=SSL_CTX_new(meth);
1428 if (ctx2 == NULL)
1435 if (ctx2)
1447 if(!SSL_CTX_set_generate_session_id(ctx2, generate_session_id))
1455 SSL_CTX_set_quiet_shutdown(ctx2,1);
1456 if (bugs) SSL_CTX_set_options(ctx2,SSL_OP_ALL);
1457 if (hack) SSL_CTX_set_options(ctx2,SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG);
1458 SSL_CTX_set_options(ctx2,off);
1462 if (socket_type == SOCK_DGRAM) SSL_CTX_set_read_ahead(ctx2, 1);
1464 if (state) SSL_CTX_set_info_callback(ctx2,apps_ssl_info_callback);
1467 SSL_CTX_set_session_cache_mode(ctx2,SSL_SESS_CACHE_OFF);
1469 SSL_CTX_sess_set_cache_size(ctx2,128);
1471 if ((!SSL_CTX_load_verify_locations(ctx2,CAfile,CApath)) ||
1472 (!SSL_CTX_set_default_verify_paths(ctx2)))
1477 SSL_CTX_set1_param(ctx2, vpm);
1504 if (ctx2)
1518 SSL_CTX_set_tmp_dh(ctx2,dh);
1567 if (ctx2)
1568 SSL_CTX_set_tmp_ecdh(ctx2,ecdh);
1577 if (ctx2 && !set_cert_key_stuff(ctx2,s_cert2,s_key2))
1592 if (ctx2)
1593 SSL_CTX_set_tmp_rsa_callback(ctx2,tmp_rsa_cb);
1612 if (ctx2)
1614 if (!SSL_CTX_set_tmp_rsa(ctx2,rsa))
1656 if (ctx2 && !SSL_CTX_set_cipher_list(ctx2,cipher))
1673 if (ctx2)
1675 SSL_CTX_set_verify(ctx2,s_server_verify,verify_callback);
1676 SSL_CTX_set_session_id_context(ctx2,(void*)&s_server_session_id_context,
1680 SSL_CTX_set_tlsext_servername_callback(ctx2, ssl_servername_cb);
1681 SSL_CTX_set_tlsext_servername_arg(ctx2, &tlsextcbp);
1691 if (ctx2)
1692 SSL_CTX_set_client_CA_list(ctx2,SSL_load_client_CA_file(CAfile));
1719 if (ctx2 != NULL) SSL_CTX_free(ctx2);