Lines Matching refs:s_ctx

77 static SSL_CTX *s_ctx = NULL;  variable
233 if (sn_expect == 1 && ctx == s_ctx) in verify_servername()
240 else if (ctx == s_ctx) in verify_servername()
1400 s_ctx = SSL_CTX_new_ex(libctx, NULL, meth); in main()
1402 if ((c_ctx == NULL) || (s_ctx == NULL) || (s_ctx2 == NULL)) { in main()
1412 SSL_CTX_set_security_level(s_ctx, 0); in main()
1417 SSL_CTX_set_options(s_ctx, SSL_OP_NO_TICKET); in main()
1424 if (SSL_CTX_set_min_proto_version(s_ctx, min_version) == 0) in main()
1426 if (SSL_CTX_set_max_proto_version(s_ctx, max_version) == 0) in main()
1444 if (!SSL_CTX_set_cipher_list(s_ctx, cipher)) { in main()
1471 || !SSL_CTX_set_cipher_list(s_ctx, cipher) in main()
1480 || !SSL_CTX_set_ciphersuites(s_ctx, ciphersuites) in main()
1497 SSL_CONF_CTX_set_ssl_ctx(s_cctx, s_ctx); in main()
1541 if (!SSL_CTX_set0_tmp_dh_pkey(s_ctx, dhpkey)) in main()
1548 if (!(SSL_CTX_load_verify_file(s_ctx, CAfile) in main()
1549 || SSL_CTX_load_verify_dir(s_ctx, CApath)) in main()
1550 || !SSL_CTX_set_default_verify_paths(s_ctx) in main()
1561 if (!SSL_CTX_set_default_ctlog_list_file(s_ctx) || in main()
1570 SSL_CTX_set_verify(s_ctx, in main()
1576 SSL_CTX_set_cert_verify_callback(s_ctx, app_verify_callback, in main()
1590 if (!SSL_CTX_set_session_id_context(s_ctx, (void *)&session_id_context, in main()
1614 SSL_CTX_set_psk_server_callback(s_ctx, psk_server_callback); in main()
1618 if (!SSL_CTX_use_psk_identity_hint(s_ctx, "ctx server identity_hint") || in main()
1637 SSL_CTX_set_npn_advertised_cb(s_ctx, cb_server_npn, NULL); in main()
1641 SSL_CTX_set_npn_advertised_cb(s_ctx, cb_server_rejects_npn, NULL); in main()
1664 if (!SSL_CTX_use_serverinfo_file(s_ctx, serverinfo_file) || in main()
1687 || !SSL_CTX_add_server_custom_ext(s_ctx, CUSTOM_EXT_TYPE_0, in main()
1695 || !SSL_CTX_add_server_custom_ext(s_ctx, CUSTOM_EXT_TYPE_1, in main()
1703 || !SSL_CTX_add_server_custom_ext(s_ctx, CUSTOM_EXT_TYPE_2, in main()
1711 || !SSL_CTX_add_server_custom_ext(s_ctx, CUSTOM_EXT_TYPE_3, in main()
1725 SSL_CTX_set_alpn_select_cb(s_ctx, cb_server_alpn, alpn_server); in main()
1762 size = SSL_CTX_set_tlsext_ticket_keys(s_ctx, NULL, 0); in main()
1766 SSL_CTX_set_tlsext_ticket_keys(s_ctx, keys, size); in main()
1771 SSL_CTX_set_tlsext_servername_callback(s_ctx, servername_cb); in main()
1774 s_ssl = SSL_new(s_ctx); in main()
1795 if (SSL_CTX_add_session(s_ctx, server_sess) == 0) { in main()
1910 SSL_CTX_free(s_ctx); in main()