Checkout
ghudson
committed
on 05 Aug 05
Add authz callback support to the commit editor.

Patch by: David Anderson <david.anderson@calixo.net>

* subversion/include/svn_error_codes… Show more
Add authz callback support to the commit editor.

Patch by: David Anderson <david.anderson@calixo.net>

* subversion/include/svn_error_codes.h

    New error message.

* subversion/include/svn_repos.h

  (svn_repos_authz_access_t): Move to the begginning of file to avoid

    warnings about undeclared types.

  (svn_repos_authz_callback_t): New callback type for extended authz

    lookups.

  (svn_repos_get_commit_editor3): Rev API, add an authz callback and

    pointer.

  (svn_repos_get_commit_editor2): Deprecate.

* subversion/libsvn_repos/commit.c

  (edit_baton): New fields for authz.

  (check_authz): New internal function.

  (open_root, delete_entry, add_directory, open_directory,

   apply_textdelta, add_file, open_file, change_file_prop,

   change_dir_prop): Perform authz lookups.

* subversion/libsvn_ra_local/ra_plugin.c

  (svn_ra_local__get_commit_editor): Use the new commit editor API.

* subversion/svnserve/serve.c

  (commit): Use the new commit editor API.

* subversion/tests/libsvn_repos/repos-test.c

  (commit_authz_cb): Callback implementation for the commit editor

    authz test.

  (commit_editor_authz): New test.

Show less