Home | History | Annotate | Download | only in apps

Lines Matching full:ctx2

279 static SSL_CTX *ctx2=NULL;
385 ctx2=NULL;
678 if (ctx2)
681 SSL_set_SSL_CTX(s,ctx2);
1458 ctx2=SSL_CTX_new(meth);
1459 if (ctx2 == NULL)
1466 if (ctx2)
1478 if(!SSL_CTX_set_generate_session_id(ctx2, generate_session_id))
1486 SSL_CTX_set_quiet_shutdown(ctx2,1);
1487 if (bugs) SSL_CTX_set_options(ctx2,SSL_OP_ALL);
1488 if (hack) SSL_CTX_set_options(ctx2,SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG);
1489 SSL_CTX_set_options(ctx2,off);
1493 if (socket_type == SOCK_DGRAM) SSL_CTX_set_read_ahead(ctx2, 1);
1495 if (state) SSL_CTX_set_info_callback(ctx2,apps_ssl_info_callback);
1498 SSL_CTX_set_session_cache_mode(ctx2,SSL_SESS_CACHE_OFF);
1500 SSL_CTX_sess_set_cache_size(ctx2,128);
1502 if ((!SSL_CTX_load_verify_locations(ctx2,CAfile,CApath)) ||
1503 (!SSL_CTX_set_default_verify_paths(ctx2)))
1508 SSL_CTX_set1_param(ctx2, vpm);
1540 if (ctx2)
1554 SSL_CTX_set_tmp_dh(ctx2,dh);
1603 if (ctx2)
1604 SSL_CTX_set_tmp_ecdh(ctx2,ecdh);
1613 if (ctx2 && !set_cert_key_stuff(ctx2,s_cert2,s_key2))
1628 if (ctx2)
1629 SSL_CTX_set_tmp_rsa_callback(ctx2,tmp_rsa_cb);
1648 if (ctx2)
1650 if (!SSL_CTX_set_tmp_rsa(ctx2,rsa))
1707 if (ctx2 && !SSL_CTX_set_cipher_list(ctx2,cipher))
1724 if (ctx2)
1726 SSL_CTX_set_verify(ctx2,s_server_verify,verify_callback);
1727 SSL_CTX_set_session_id_context(ctx2,(void*)&s_server_session_id_context,
1731 SSL_CTX_set_tlsext_servername_callback(ctx2, ssl_servername_cb);
1732 SSL_CTX_set_tlsext_servername_arg(ctx2, &tlsextcbp);
1742 if (ctx2)
1743 SSL_CTX_set_client_CA_list(ctx2,SSL_load_client_CA_file(CAfile));
1770 if (ctx2 != NULL) SSL_CTX_free(ctx2);