Lines Matching defs:s_ctx
220 static SSL_CTX *s_ctx = NULL;
338 if (sn_expect == 1 && ctx == s_ctx)
345 else if (ctx == s_ctx)
471 } else if (SSL_get_SSL_CTX(server) == s_ctx){
1388 s_ctx = SSL_CTX_new(meth);
1390 if ((c_ctx == NULL) || (s_ctx == NULL) || (s_ctx2 == NULL)) {
1397 SSL_CTX_set_cipher_list(s_ctx, cipher);
1407 SSL_CTX_set_options(s_ctx, SSL_OP_SINGLE_DH_USE);
1414 SSL_CTX_set_tmp_dh(s_ctx, dh);
1442 SSL_CTX_set_tmp_ecdh(s_ctx, ecdh);
1444 SSL_CTX_set_options(s_ctx, SSL_OP_SINGLE_ECDH_USE);
1453 SSL_CTX_set_tmp_rsa_callback(s_ctx, tmp_rsa_cb);
1459 SSL_CTX_set_tlsext_opaque_prf_input_callback(s_ctx, opaque_prf_input_cb);
1464 SSL_CTX_set_tlsext_opaque_prf_input_callback_arg(s_ctx, &so1);
1468 if (!SSL_CTX_use_certificate_file(s_ctx, server_cert, SSL_FILETYPE_PEM)) {
1470 } else if (!SSL_CTX_use_PrivateKey_file(s_ctx,
1495 if ((!SSL_CTX_load_verify_locations(s_ctx, CAfile, CApath)) ||
1496 (!SSL_CTX_set_default_verify_paths(s_ctx)) ||
1508 SSL_CTX_set_verify(s_ctx,
1511 SSL_CTX_set_cert_verify_callback(s_ctx, app_verify_callback,
1528 SSL_CTX_set_session_id_context(s_ctx, (void *)&session_id_context,
1549 SSL_CTX_set_psk_server_callback(s_ctx, psk_server_callback);
1552 BIO_printf(bio_err, "setting PSK identity hint to s_ctx\n");
1553 if (!SSL_CTX_use_psk_identity_hint(s_ctx, "ctx server identity_hint")) {
1554 BIO_printf(bio_err, "error setting PSK identity hint to s_ctx\n");
1580 SSL_CTX_set_verify(s_ctx, SSL_VERIFY_NONE, verify_callback);
1582 SSL_CTX_set_srp_cb_arg(s_ctx, &srp_server_arg);
1584 SSL_CTX_set_srp_username_callback(s_ctx, ssl_srp_server_param_cb);
1599 if (!SSL_CTX_use_serverinfo_file(s_ctx, serverinfo_file)) {
1627 SSL_CTX_add_server_custom_ext(s_ctx, CUSTOM_EXT_TYPE_0,
1631 SSL_CTX_add_server_custom_ext(s_ctx, CUSTOM_EXT_TYPE_1,
1635 SSL_CTX_add_server_custom_ext(s_ctx, CUSTOM_EXT_TYPE_2,
1639 SSL_CTX_add_server_custom_ext(s_ctx, CUSTOM_EXT_TYPE_3,
1663 SSL_CTX_set_alpn_select_cb(s_ctx, cb_server_alpn, alpn_server);
1680 SSL_CTX_set_tlsext_servername_callback(s_ctx, servername_cb);
1683 s_ssl = SSL_new(s_ctx);
1750 if (s_ctx != NULL)
1751 SSL_CTX_free(s_ctx);