~ubuntu-branches/debian/sid/subversion/sid

« back to all changes in this revision

Viewing changes to subversion/libsvn_ra_svn/deprecated.c

  • Committer: Package Import Robot
  • Author(s): James McCoy
  • Date: 2015-08-07 21:32:47 UTC
  • mfrom: (0.2.15) (4.1.7 experimental)
  • Revision ID: package-import@ubuntu.com-20150807213247-ozyewtmgsr6tkewl
Tags: 1.9.0-1
* Upload to unstable
* New upstream release.
  + Security fixes
    - CVE-2015-3184: Mixed anonymous/authenticated path-based authz with
      httpd 2.4
    - CVE-2015-3187: svn_repos_trace_node_locations() reveals paths hidden
      by authz
* Add >= 2.7 requirement for python-all-dev Build-Depends, needed to run
  tests.
* Remove Build-Conflicts against ruby-test-unit.  (Closes: #791844)
* Remove patches/apache_module_dependency in favor of expressing the
  dependencies in authz_svn.load/dav_svn.load.
* Build-Depend on apache2-dev (>= 2.4.16) to ensure ap_some_authn_required()
  is available when building mod_authz_svn and Depend on apache2-bin (>=
  2.4.16) for runtime support.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
 * ====================================================================
22
22
 */
23
23
 
 
24
/* We define this here to remove any further warnings about the usage of
 
25
   deprecated functions in this file. */
 
26
#define SVN_DEPRECATED
 
27
 
24
28
#include "svn_ra_svn.h"
25
29
 
26
30
#include "private/svn_ra_svn_private.h"
232
236
{
233
237
  return svn_error_trace(svn_ra_svn__write_cmd_failure(conn, pool, err));
234
238
}
 
239
 
 
240
/* From marshal.c */
 
241
svn_ra_svn_conn_t *
 
242
svn_ra_svn_create_conn3(apr_socket_t *sock,
 
243
                        apr_file_t *in_file,
 
244
                        apr_file_t *out_file,
 
245
                        int compression_level,
 
246
                        apr_size_t zero_copy_limit,
 
247
                        apr_size_t error_check_interval,
 
248
                        apr_pool_t *pool)
 
249
{
 
250
  svn_stream_t *in_stream = NULL;
 
251
  svn_stream_t *out_stream = NULL;
 
252
 
 
253
  if (in_file)
 
254
    in_stream = svn_stream_from_aprfile2(in_file, FALSE, pool);
 
255
  if (out_file)
 
256
    out_stream = svn_stream_from_aprfile2(out_file, FALSE, pool);
 
257
 
 
258
  return svn_ra_svn_create_conn4(sock, in_stream, out_stream,
 
259
                                 compression_level, 0, 0, pool);
 
260
}
 
261
 
 
262
svn_ra_svn_conn_t *
 
263
svn_ra_svn_create_conn2(apr_socket_t *sock,
 
264
                        apr_file_t *in_file,
 
265
                        apr_file_t *out_file,
 
266
                        int compression_level,
 
267
                        apr_pool_t *pool)
 
268
{
 
269
  return svn_ra_svn_create_conn3(sock, in_file, out_file,
 
270
                                 compression_level, 0, 0, pool);
 
271
}
 
272
 
 
273
/* backward-compatible implementation using the default compression level */
 
274
svn_ra_svn_conn_t *
 
275
svn_ra_svn_create_conn(apr_socket_t *sock,
 
276
                       apr_file_t *in_file,
 
277
                       apr_file_t *out_file,
 
278
                       apr_pool_t *pool)
 
279
{
 
280
  return svn_ra_svn_create_conn3(sock, in_file, out_file,
 
281
                                 SVN_DELTA_COMPRESSION_LEVEL_DEFAULT, 0, 0,
 
282
                                 pool);
 
283
}