Home | History | Annotate | Download | only in apps

Lines Matching refs:ctx2

282 static SSL_CTX *ctx2=NULL;
438 ctx2=NULL;
742 if (ctx2)
745 SSL_set_SSL_CTX(s,ctx2);
1581 ctx2=SSL_CTX_new(meth);
1582 if (ctx2 == NULL)
1589 if (ctx2)
1601 if(!SSL_CTX_set_generate_session_id(ctx2, generate_session_id))
1609 SSL_CTX_set_quiet_shutdown(ctx2,1);
1610 if (bugs) SSL_CTX_set_options(ctx2,SSL_OP_ALL);
1611 if (hack) SSL_CTX_set_options(ctx2,SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG);
1612 SSL_CTX_set_options(ctx2,off);
1616 if (socket_type == SOCK_DGRAM) SSL_CTX_set_read_ahead(ctx2, 1);
1618 if (state) SSL_CTX_set_info_callback(ctx2,apps_ssl_info_callback);
1621 SSL_CTX_set_session_cache_mode(ctx2,SSL_SESS_CACHE_OFF);
1623 SSL_CTX_sess_set_cache_size(ctx2,128);
1625 if ((!SSL_CTX_load_verify_locations(ctx2,CAfile,CApath)) ||
1626 (!SSL_CTX_set_default_verify_paths(ctx2)))
1631 SSL_CTX_set1_param(ctx2, vpm);
1663 if (ctx2)
1677 SSL_CTX_set_tmp_dh(ctx2,dh);
1726 if (ctx2)
1727 SSL_CTX_set_tmp_ecdh(ctx2,ecdh);
1736 if (ctx2 && !set_cert_key_stuff(ctx2,s_cert2,s_key2))
1751 if (ctx2)
1752 SSL_CTX_set_tmp_rsa_callback(ctx2,tmp_rsa_cb);
1771 if (ctx2)
1773 if (!SSL_CTX_set_tmp_rsa(ctx2,rsa))
1815 if (ctx2 && !SSL_CTX_set_cipher_list(ctx2,cipher))
1832 if (ctx2)
1834 SSL_CTX_set_verify(ctx2,s_server_verify,verify_callback);
1835 SSL_CTX_set_session_id_context(ctx2,(void*)&s_server_session_id_context,
1839 SSL_CTX_set_tlsext_servername_callback(ctx2, ssl_servername_cb);
1840 SSL_CTX_set_tlsext_servername_arg(ctx2, &tlsextcbp);
1869 if (ctx2)
1870 SSL_CTX_set_client_CA_list(ctx2,SSL_load_client_CA_file(CAfile));
1897 if (ctx2 != NULL) SSL_CTX_free(ctx2);