Lines Matching refs:ctx2
82 static SSL_CTX *ctx2 = NULL; variable
438 if (ctx2 != NULL) { in ssl_servername_cb()
440 SSL_set_SSL_CTX(s, ctx2); in ssl_servername_cb()
1062 ctx = ctx2 = NULL; in s_server_main()
1960 ctx2 = SSL_CTX_new_ex(app_get0_libctx(), app_get0_propq(), meth); in s_server_main()
1961 if (ctx2 == NULL) { in s_server_main()
1967 if (ctx2 != NULL) { in s_server_main()
1971 ssl_ctx_security_debug(ctx2, sdebug); in s_server_main()
1977 if (!SSL_CTX_set_generate_session_id(ctx2, generate_session_id)) { in s_server_main()
1985 ssl_ctx_set_excert(ctx2, exc); in s_server_main()
1988 SSL_CTX_set_info_callback(ctx2, apps_ssl_info_callback); in s_server_main()
1991 SSL_CTX_set_session_cache_mode(ctx2, SSL_SESS_CACHE_OFF); in s_server_main()
1993 init_session_cache_ctx(ctx2); in s_server_main()
1995 SSL_CTX_sess_set_cache_size(ctx2, 128); in s_server_main()
1998 SSL_CTX_set_mode(ctx2, SSL_MODE_ASYNC); in s_server_main()
2000 if (!ctx_set_verify_locations(ctx2, CAfile, noCAfile, CApath, in s_server_main()
2005 if (vpmtouched && !SSL_CTX_set1_param(ctx2, vpm)) { in s_server_main()
2011 ssl_ctx_add_crls(ctx2, crls, 0); in s_server_main()
2012 if (!config_ctx(cctx, ssl_args, ctx2)) in s_server_main()
2060 if (ctx2 != NULL) { in s_server_main()
2076 SSL_CTX_set_dh_auto(ctx2, 1); in s_server_main()
2077 } else if (!SSL_CTX_set0_tmp_dh_pkey(ctx2, dhpkey)) { in s_server_main()
2097 if (ctx2 != NULL in s_server_main()
2098 && !set_cert_key_stuff(ctx2, s_cert2, s_key2, NULL, build_chain)) in s_server_main()
2110 if (ctx2 != NULL) in s_server_main()
2111 SSL_CTX_set_not_resumable_session_callback(ctx2, in s_server_main()
2171 if (ctx2 != NULL) { in s_server_main()
2172 SSL_CTX_set_verify(ctx2, s_server_verify, verify_callback); in s_server_main()
2173 if (!SSL_CTX_set_session_id_context(ctx2, in s_server_main()
2181 SSL_CTX_set_tlsext_servername_callback(ctx2, ssl_servername_cb); in s_server_main()
2182 SSL_CTX_set_tlsext_servername_arg(ctx2, &tlsextcbp); in s_server_main()
2197 if (ctx2) in s_server_main()
2198 SSL_CTX_set_client_CA_list(ctx2, SSL_load_client_CA_file(CAfile)); in s_server_main()
2204 if (ctx2) { in s_server_main()
2205 SSL_CTX_set_tlsext_status_cb(ctx2, cert_status_cb); in s_server_main()
2206 SSL_CTX_set_tlsext_status_arg(ctx2, &tlscstatp); in s_server_main()
2253 SSL_CTX_free(ctx2); in s_server_main()