Lines Matching defs:s_ctx
405 SSL_CTX *s_ctx=NULL;
716 s_ctx=SSL_CTX_new(meth);
717 if ((c_ctx == NULL) || (s_ctx == NULL))
726 SSL_CTX_set_cipher_list(s_ctx,cipher);
735 SSL_CTX_set_options(s_ctx, SSL_OP_SINGLE_DH_USE);
742 SSL_CTX_set_tmp_dh(s_ctx,dh);
773 SSL_CTX_set_tmp_ecdh(s_ctx, ecdh);
774 SSL_CTX_set_options(s_ctx, SSL_OP_SINGLE_ECDH_USE);
782 SSL_CTX_set_tmp_rsa_callback(s_ctx,tmp_rsa_cb);
785 if (!SSL_CTX_use_certificate_file(s_ctx,server_cert,SSL_FILETYPE_PEM))
789 else if (!SSL_CTX_use_PrivateKey_file(s_ctx,
805 if ( (!SSL_CTX_load_verify_locations(s_ctx,CAfile,CApath)) ||
806 (!SSL_CTX_set_default_verify_paths(s_ctx)) ||
818 SSL_CTX_set_verify(s_ctx,
821 SSL_CTX_set_cert_verify_callback(s_ctx, app_verify_callback, &app_verify_arg);
833 SSL_CTX_set_session_id_context(s_ctx, (void *)&session_id_context, sizeof session_id_context);
837 s_ssl=SSL_new(s_ctx);
899 if (s_ctx != NULL) SSL_CTX_free(s_ctx);