Lines Matching refs:ctx2

84 static SSL_CTX *ctx2 = NULL;  variable
444 if (ctx2 != NULL) { in ssl_servername_cb()
446 SSL_set_SSL_CTX(s, ctx2); in ssl_servername_cb()
1103 ctx = ctx2 = NULL; in s_server_main()
2049 ctx2 = SSL_CTX_new_ex(app_get0_libctx(), app_get0_propq(), meth); in s_server_main()
2050 if (ctx2 == NULL) { in s_server_main()
2056 if (ctx2 != NULL) { in s_server_main()
2060 ssl_ctx_security_debug(ctx2, sdebug); in s_server_main()
2066 if (!SSL_CTX_set_generate_session_id(ctx2, generate_session_id)) { in s_server_main()
2074 ssl_ctx_set_excert(ctx2, exc); in s_server_main()
2077 SSL_CTX_set_info_callback(ctx2, apps_ssl_info_callback); in s_server_main()
2080 SSL_CTX_set_session_cache_mode(ctx2, SSL_SESS_CACHE_OFF); in s_server_main()
2082 init_session_cache_ctx(ctx2); in s_server_main()
2084 SSL_CTX_sess_set_cache_size(ctx2, 128); in s_server_main()
2087 SSL_CTX_set_mode(ctx2, SSL_MODE_ASYNC); in s_server_main()
2089 if (!ctx_set_verify_locations(ctx2, CAfile, noCAfile, CApath, in s_server_main()
2094 if (vpmtouched && !SSL_CTX_set1_param(ctx2, vpm)) { in s_server_main()
2100 ssl_ctx_add_crls(ctx2, crls, 0); in s_server_main()
2101 if (!config_ctx(cctx, ssl_args, ctx2)) in s_server_main()
2149 if (ctx2 != NULL) { in s_server_main()
2165 SSL_CTX_set_dh_auto(ctx2, 1); in s_server_main()
2166 } else if (!SSL_CTX_set0_tmp_dh_pkey(ctx2, dhpkey)) { in s_server_main()
2186 if (ctx2 != NULL in s_server_main()
2187 && !set_cert_key_stuff(ctx2, s_cert2, s_key2, NULL, build_chain)) in s_server_main()
2199 if (ctx2 != NULL) in s_server_main()
2200 SSL_CTX_set_not_resumable_session_callback(ctx2, in s_server_main()
2260 if (ctx2 != NULL) { in s_server_main()
2261 SSL_CTX_set_verify(ctx2, s_server_verify, verify_callback); in s_server_main()
2262 if (!SSL_CTX_set_session_id_context(ctx2, in s_server_main()
2270 SSL_CTX_set_tlsext_servername_callback(ctx2, ssl_servername_cb); in s_server_main()
2271 SSL_CTX_set_tlsext_servername_arg(ctx2, &tlsextcbp); in s_server_main()
2286 if (ctx2) in s_server_main()
2287 SSL_CTX_set_client_CA_list(ctx2, SSL_load_client_CA_file(CAfile)); in s_server_main()
2293 if (ctx2) { in s_server_main()
2294 SSL_CTX_set_tlsext_status_cb(ctx2, cert_status_cb); in s_server_main()
2295 SSL_CTX_set_tlsext_status_arg(ctx2, &tlscstatp); in s_server_main()
2311 if (ctx2 != NULL && !SSL_CTX_compress_certs(ctx2, 0)) in s_server_main()
2362 SSL_CTX_free(ctx2); in s_server_main()